3 ms·
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
by conradludgate 2y 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)
- foretop_yardarm 2y agoMy favourite way too and fwiw not mutually exclusive with Tailwind (in case anyone was wondering).
- teaearlgraycold 2y agoSometimes 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.