How do I get a list of all tailwind classes/utilities in development? #10379
Replies: 8 comments 15 replies
-
This would not really be possible for v3 – there's an infinite amount of classes possible (due to the arbitrary features) and even without these, if you really wanted every single class possible, you would need to generate every possible combination of the variants, (like Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Is possible to generate list of classes starting from a "tailwind.config.js" file, so "content" and "safelist" ? something like:
edited Then I used these regex pattern to generate a string for every possible case. |
Beta Was this translation helpful? Give feedback.
-
This might help: https://gist.github.com/cvan/4cfe619af1da57bafd65122ef6e5936a |
Beta Was this translation helpful? Give feedback.
-
is there any solutions |
Beta Was this translation helpful? Give feedback.
-
hey there 👋🏼
hope this was helpful 😁 |
Beta Was this translation helpful? Give feedback.
-
Hi folks! You can obtain all the information from Tailwind libraries, you just need to dig in a little. Please check this out: https://stackblitz.com/edit/tailwind-language-server-wb3afz?file=README.md,index.js 🤩 |
Beta Was this translation helpful? Give feedback.
-
Most of the people use tailwind-config-viewer on their local machine. I uploaded this on https://tailwind-config-viewer.onrender.com/. You can find all classes with examples there. |
Beta Was this translation helpful? Give feedback.
-
Hello! I am leaving a comment because it seems to be a similar topic to #12653. If you need a list of variants, you can refer to this document. If you need a list of classnames without variants, try the following steps:
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a tool around Tailwind.
What I need is a list/object of all available Tailwind classes in dev mode, so I can parse it and do some stuff with it.
I looked in
node_modules/tailwindcss
and also tried to see how the vscode extension does it, but I feel lost. Can someone please point me in the right direction?Beta Was this translation helpful? Give feedback.
All reactions