DEV Community

Discussion on: How to Create Modern Cards using React and Tailwind

Collapse
 
optimbro profile image
Rahul

I like this approach as well. So, when we use JIT mode, it still purges unused styles, and we have the same output as we were directly using utility classes in JSX right?

Thread Thread
 
j471n profile image
Jatin Sharma

The answer is No, By default, Tailwind only removes unused classes that it generates itself, or has been explicitly wrapped in a @layer directive. It will not remove unused styles from third-party CSS.

Thread Thread
 
franciscomendes10866 profile image
Francisco Mendes

It's correct 💪

Some comments have been hidden by the post's author - find out more