made with Svelte

Svelte CSS Vars

Reactive CSS Variables in Svelte

Visit Site

Description

Reactive CSS Variables in Svelte

"Ever wanted to have reactive CSS variables in Svelte? What if I told you there's a way?

svelte-css-vars exposes a svelte action which receives an object of properties that should be treated as CSS custom properties, updating them on the fly whenever some of its values change."


Creator

Christian Kaisermann
@kiwistian


Social Media Links

Svelte Stack Router Svelte Router bridging the Gap between Native & Web Apps
icon-eye-dark Created with Sketch. 287
Svelte Utils Component Collection
icon-eye-dark Created with Sketch. 1.849
Svelte Loadable Dynamically load a Svelte component
icon-eye-dark Created with Sketch. 2.437
Weโ€™re hosting on Digital Ocean! ๐Ÿ’™ Try it today and get a free $100 credit.
Houdini "Disappearing" Svelte GraphQL Client
icon-eye-dark Created with Sketch. 640