Skip to content

Treeshaking imported classes from processed/compiled tailwind stylesheet #14861

Closed Answered by wongjn
dvzrd asked this question in Help
Discussion options

You must be logged in to vote

You can use the CSS-native cascade layer syntax to place @imported stylesheets into a Tailwind CSS @layer:

@import './themes/dark.css' layer(base);

Replies: 1 comment 2 replies

Comment options

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

Answer selected by dvzrd
@dvzrd
Comment options

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