Skip to content

How to use Tailwind 4? #93

@mahono

Description

@mahono

Hi,

I am new to TailwindCSS and this bundle. I waited for the version 4 support and tried to set it up.

I checked the docs on the Symfony website.

When I install the bundle, a config/symfonycasts_tailwind.yaml is not created and version 3 is downloaded on tailwind:init and the tailwind.config.js is created and the directives are added to styles/app.css

I think this is confusing if a developer wants to start a fresh Tailwind 4 project.

Now I created the config file and changed the version to 'v4.0.9'. But how do I update tailwind now?
When I execute tailwind:init again, it does not download this version.

Do I need to use npm to install the version I want?

I am a little bit lost. I created a fresh Symfony project.

Any help is appreciated. :o)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions