Skip to content
Discussion options

You must be logged in to vote

You could do something like:

@layer theme, base, components, utilities;

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

.my-unique-wrapper-class {
  @import 'tailwindcss/preflight.css' layer(base);
  @import 'tailwindcss/utilities.css' layer(utilities);
}

https://play.tailwindcss.com/cg3yy1nteV?file=css

Note, some CSS rules target :root, html, body, etc. which won't target anything most likely (such as some rules in preflight). You may find you need to copy some of these unapplicable CSS into your own rule(s).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LearnWebCode
Comment options

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