DEV Community

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

Collapse
 
rjitsu profile image
Rishav Jadon

Is there a way we could write the styles in html and generate the css file seperately and clean the html from class names?

Collapse
 
franciscomendes10866 profile image
Francisco Mendes

If I understand your question correctly, I think my answer would be to use css-in-js, if you want to use it with Tailwind there is a library called twin.

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