Programmatically find unused TailwindCSS tokens #16297
maximilianschmitt
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I don't think such a tool exists. For automatically removing unused classes, a tool like PurgeCSS can be useful. However, it does not help in detecting unused tokens (like custom colors in I hope I answered your question! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to find unused Tailwind tokens? Kind of what Knip does for JavaScript/TypeScript?
E.g. if I have a custom color defined in Tailwind, I'd like to know if it's used anywhere or not. Does something like that exist?
If not, how could we build something like that? Maybe as a Tailwind plugin?
Beta Was this translation helpful? Give feedback.
All reactions