Direct link to the article Theming With Variables: Globals and Locals

Theming With Variables: Globals and Locals

Setting CSS variables to theme a design system can be tricky: if they are too scoped, the system will lose consistency. If they are too global, you lose granularity.

Maybe we can fix both issues. I’d like to try to boil design system variables down to two types: Global and Component variables. Global variables will give us consistency across components. Component variables will give us granularity and isolation. Let me show you how to do it by taking a fairly simple component as an example.

Avatar of Andrés Galante
Andrés Galante on (Updated on )
Direct link to the article Using Conic Gradients and CSS Variables to Create a Doughnut Chart Output for a Range Input

Using Conic Gradients and CSS Variables to Create a Doughnut Chart Output for a Range Input

I recently came across this Pen and my first thought was that it could all be done with just three elements: a wrapper, a range input and an output. On the CSS side, this involves using a conic-gradient() with …

Avatar of Ana Tudor
Ana Tudor on