Hacker News new | ask | show | jobs
by conradludgate 580 days ago
I prefer scoped css, eg svelte or react with CSS modules. This allows one to closely pair the styles with the component, but still separate out the styling from the html (I cannot stand tailwind/inline syles)
1 comments

My favourite way too and fwiw not mutually exclusive with Tailwind (in case anyone was wondering).
Sometimes it’s necessary when using tailwind (I often use traditional CSS for animations). What’s the hip way to have CSS specific to a component? I remember StyledComponents from years ago. I wasn’t as much into front end then.