3 ms·
If you're using Svelte, you don't really need Tailwind (but are obviously free to use it), especially if you're using your own components. Svelte's styling is
by slantyyz 5y ago
If you're using Svelte, you don't really need Tailwind (but are obviously free to use it), especially if you're using your own components.
Svelte's styling is already pretty atomic as it is.
With Svelte, I use a small global reset, and a global file containing native CSS variables (which I reuse across multiple projects).
Most of my Svelte CSS is component specific (and in most cases, no classes are even necessary) and they can be themed by simply referring to the CSS variables in my global variable file.
- docmars 5y agoNice! This reminds me of Pollen: https://www.pollen.style/ https://www.pollen.style/
- slantyyz 5y agoYes, it's very similar to that. I looked at Pollen a while back to see if there were any ideas I missed, but while Pollen has a different approach to variable naming, it was very similar to what I do.