Skip to content
Discussion options

You must be logged in to vote

I assume in the example project, that UI kit gets installed into node_modules. This is significant since Tailwind's automatic source detection will not scan code in node_modules. This means Tailwind won't scan for class names in files in node_modules/ui-kit, hence the difference in the output CSS rules.

To workaround this, consider explicitly registering the UI kit's files that contain Tailwind class names like:

/* [UI-KIT] contents of src/theme.css */@source "../dist";

Replies: 1 comment 1 reply

Comment options

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

Answer selected by SaturnRingz
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