Skip to content

v4 config conversion for prefix and important, selector strategy #2144

Open
@cdock1029

Description

@cdock1029

In v3 config you could use selector strategy for important:

https://v3.tailwindcss.com/docs/configuration#selector-strategy

module.exports = {
  important: '#app',
}

How do you do this in v4?

Also, v4 docs show how to do prefix options and important in new config:

@import "tailwindcss" important;
@import "tailwindcss" prefix(tw);

But how do you do this if you are customizing the import? Where does it go?

@layer theme, base, components, utilities;

@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);

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