Replies: 1 comment
-
The "Headwind" VSC extension sorts and removes duplicates. I'm not aware of any other tools. Sounds like this could be added to Headwind, or possibly as a plugin for something like |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
It would be nice to have a set of tools to help improve the usage of tailwindcss utility classes. I'm more interested a tool to help extract component classes and would use it by itself, but can think of additional applications in analyzing utility class usage.
Extracting component classes
With all the scanning and analysis of tailwindcss, it would be great if you could analyze the code and provide a report which might suggest areas to extract component classes. For example, using the HTML from https://v1.tailwindcss.com/docs/extracting-components
It could report areas of 2+(configurable?) groupings of classes
If this was sorted by count it would give a valuable info for refactoring classes. Perhaps it could report the top 5 (again configurable?)
Identifying invalid or unnecessary class sets
This report might look like:
Individual linting rules could be built up for this.
Do any tools for any of the above already exist?
Beta Was this translation helpful? Give feedback.
All reactions