|
|
|
|
|
by alskdjflaskjdhf
1557 days ago
|
|
On the other hand, I find Svelte's handling of this half-baked, as there's no way to pass scoped classes to a component, only to a HTML element. [1] In fact, I find this so frustrating that I have actually given up on Svelte's CSS scoping entirely and I use Tailwind instead, which also solves the same problem by almost [2] completely disregarding the cascade altogether. [1] Why would you want to do this? Well, what about layout? And what if you have a component that wraps or otherwise behaves like an HTML element? [2] Of course Tailwind supports modifiers, which do cascade, but everything is still local to a single element. |
|