Skip to content

Tailwind v4 has no important option support #15866

Answered by wongjn
martin-dimi asked this question in Help
Discussion options

You must be logged in to vote

You'd replace the @import "tailwindcss"; with:

@layer theme, base, components, utilities;

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

@theme {
  /* ... */
}

@layer utilities {
  #my-extension {
    @tailwind utilities;
  }
}

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@wongjn
Comment options

@martin-dimi
Comment options

@wongjn
Comment options

@michaeltravan
Comment options

@wongjn
Comment options

Answer selected by martin-dimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants