DEV Community


Discussion on: Tailwind + React: Setup and Design Patterns

romeerez profile image
Roman Kushyn • Edited

I'm really enjoying using tailwind, it's the best.
Only one dissapointing thing: after changing custom classes, btn for example, I have to recompile output css, I wish it to be automated.

Isn't there a plug-n-play solution to watch for changes in tailwind style?

rfitz profile image
Ryan Fitzgerald Author

I agree, Tailwind is great! PostCSS is what generates the Tailwind CSS output, so you can change the script to include the --watch flag which should handle what you're looking for. With that enabled, it'll watch for changes to input file and re-generate as they happen.