Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see the plain CSS of all tailwind classes

I need plain CSS of all tailwind classes. I want to convert both (custom and tailwind classes) into inline CSS. I've found some tools online that convert external CSS to inline CSS if provided with an external stylesheet (they fetch class details from the stylesheet and add their classes as inline CSS). I'm able to convert my custom classes into inline CSS this way but am not able to do so for tailwind CSS as there is no plain CSS for tailwind classes available.

like image 846
Fuaad Avatar asked Dec 05 '25 23:12

Fuaad


1 Answers

When you run the build command for the app, tailwind generates a minified .css file in the build directory. There you can find all the individual classes generated by the tailwind config.

PS: Make sure you are not using the jit compiler otherwise it will only generate the classes which you have used in your src files.

Hope this is what you wanted.

like image 101
inflame Avatar answered Dec 07 '25 13:12

inflame



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!