Skip to content
Discussion options

You must be logged in to vote

What you are experiencing is the default automatic source detection, but you can disable it, in src/style.css:

 @layer theme, base, components, utilities;
 @import "tailwindcss/theme.css" layer(theme);
-@import "tailwindcss/utilities.css" layer(utilities);
+@import "tailwindcss/utilities.css" layer(utilities) source(none);

 @source "../src";

Also, I've just seen you could simplify your @source too:

-@source "../src";
+@source "./";

Replies: 3 comments 1 reply

Comment options

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

Answer selected by libondev
Comment options

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

This discussion was converted from issue #17802 on April 27, 2025 14:14.