Hacker News new | ask | show | jobs
by SebastianKra 327 days ago
(I didn't say to not use classes)

Depends on the conventions of the project. Tailwind is acceptable (shadcn is a great starting point), but if I write them from scratch, I use css modules.

You don't write component styles that often so the context switching and repetition don't matter, and css modules are close to the standard while still being locally scoped.