Fritz Stelluto

Setting CSS values dynamically in Svelte

If you are used to React’s Styled Components, assigning CSS values dynamically in Svelte can be baffling at first.

This is at least 6 years old and 3 major versions ago, and probably well obsolete by now.