Hacker News new | ask | show | jobs
by esafak 37 days ago
Why did Svelte affect your stance towards Tailwind?
2 comments

Presumably because you just put the styles in the component.
Yes and Svelte automatically namespaces them, so there's no collisions.
Maybe Svelte does it much better, but there were tonnes of scope-css-to-react-component approaches before Tailwind too.
Svelte namespaces styles to the component and also has some lint checks for unused selectors.