Styling
Tailwind CSS / CSS Modules / styled-components
Tailwind CSS
Just add class names to style things, with no jumping between files. It also pairs well with shadcn/ui
Compare the result
We built the same thing with each library. Try them out.
Compare the code
Edit the code and the preview on the right updates.
Comparison
As of September 2026
Features
Style elements by lining up class names (like p-4 or text-lg)
Best for
You want to build fast. You use shadcn/ui
CSS Modules
Official site ↗Features
Write plain CSS in a separate file for each component. Class names never clash with others
Best for
You're comfortable with CSS and want to write it as-is
styled-components
Official site ↗Features
Write CSS inside JavaScript to create components that come with their own styles
Best for
Working on a project that already uses it (for new projects, the other two are better)