Skip to content
Discussion options

You must be logged in to vote

As per the documentation, the prefix() should come after layer():

--- a/src/style.css
+++ b/src/style.css
@@ -1,4 +1,4 @@
-@import "tailwindcss/theme.css" prefix(twa) source(none) layer(custom);
-@import "tailwindcss/utilities.css" prefix(twa) source(none) layer(custom);
+@import "tailwindcss/theme.css" layer(custom) prefix(twa) source(none);
+@import "tailwindcss/utilities.css" layer(custom) prefix(twa) source(none);
 
 @source './';

You'd also need a @layer rule before as well, like:

+@layer foo, bar, custom, baz;
+
 @import "tailwindcss/theme.css" layer(custom) prefix(twa) source(none);
 @import "tailwindcss/utilities.css" layer(custom) prefix(twa) source(none);

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@radubrehar
Comment options

@wongjn
Comment options

wongjn Nov 5, 2025
Collaborator

@radubrehar
Comment options

@RobinMalfait
Comment options

@radubrehar
Comment options

Answer selected by radubrehar
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
Converted from issue

This discussion was converted from issue #19266 on November 05, 2025 12:35.