Skip to content

Custom layers #18610

Answered by wongjn
o-t-w asked this question in Help
Jul 25, 2025 · 2 comments
Discussion options

You must be logged in to vote

Breakout the @import "tailwindcss"; statement into its constiuent parts. This allows you to add your custom layer:

@layer theme, base, my-custom-layer, components, utilities;

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by o-t-w
Comment options

You must be logged in to vote
0 replies
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