One way to work with Custom Properties is to think of them as design tokens. Colors, spacings, fonts, and whatnot. You set them at the root of the page
Sometimes, a Billion Laughs Aren't so Funny — Improving CSS Variables in WebKit | Widen Engineering
As part of Widen's commitment to contributing back to the open-source community, we have sponsored work to improve the CSS variables implementation in WebKit...
Here's a fun idea from James Stanley: a CSS file (that presumably updates daily) containing CSS custom properties for "seasonal" colors (e.g. spring is
What Can You Put in a CSS Variable? / Coder's Block
CSS variables (also know as CSS custom properties) can hold all sorts of things. Some of these things were not obvious to me, which is why I decided to write...
Building Robust Layouts With Container Units — Smashing Magazine
When inspecting most other grids in DevTools, you’ll notice that column widths are dependent on their parent element. This article will help you understand how to overcome these limitations using CSS variables and how you can start building with container units.
How to quickly prototype apps with CSS Grid and CSS Variables
CSS Grid and CSS Variables are both huge wins for front-end developers. The former makes it dead simple to create website layouts, while the latter brings the power of variables to your stylesheets. In this tutorial, I’ll show you how to utilize them together in order to quickly prototype