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
Brad Frost Tweeted recently about a color variable naming problem, and rather than write a 69-Tweet thread about how I think about these sorts of problems, I figured I'd do a quick write-up on Tokenizing & Contextualizing in style code variables.
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...
Theming With Variables: Globals and Locals | CSS-Tricks
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.
Do CSS Custom Properties Beat Sass Loops? | CSS-Tricks
I reckon that a lot of our uses of Sass maps can be replaced with CSS Custom properties – but hear me out for a sec. When designing components we often
Using css custom properties for color and theming - griffa.dev
I'm by no means a designer, but with a bit of research into color contrast and accessibility, making I was able to build out a design that I was happy with.
CSS variables (AKA custom properties) have been supported in web browsers for almost four years. I like to use them depending on the project and the situatio...
A Strategy Guide To CSS Custom Properties - MadeByMike
Dynamic properties provide opportunities for new creative ideas, but also the potential to add complexity to CSS. To get the most out of them, we might need a strategy for how to write and structure CSS with custom properties.
Using Custom Property "Stacks" to Tame the Cascade | CSS-Tricks
Since the inception of CSS in 1994, the cascade and inheritance have defined how we design on the web. Both are powerful features but, as authors, we've
Using Custom Property "Stacks" to Tame the Cascade | CSS-Tricks
Since the inception of CSS in 1994, the cascade and inheritance have defined how we design on the web. Both are powerful features but, as authors, we've
How to Get All Custom Properties on a Page in JavaScript | CSS-Tricks
We can use JavaScript to get the value of a CSS custom property. Robin wrote up a detailed explanation about this in Get a CSS Custom Property Value with
Getting JavaScript to Talk to CSS and Sass | CSS-Tricks
JavaScript and CSS have lived beside one another for upwards of 20 years. And yet it’s been remarkably tough to share data between them. There have been
In diesem Artikel möchte ich dir einen Einstieg in Custom Properties, auch bekannt als CSS Variablen geben. Wie funktionieren sie? Was sind die Vor- und Nachteile gegenüber Sass-Variablen? Und was musst du bei der Verwendung beachten?
A Strategy Guide To CSS Custom Properties — Smashing Magazine
Dynamic properties provide opportunities for new creative ideas, but also the potential to add complexity to CSS. To get the most out of them, we might need a strategy for how we write and structure CSS with custom properties.
How to create better themes with CSS variables - LogRocket Blog
CSS variables let you define values for reuse throughout a CSS file , opening the door to more efficient theming capabilities — no preprocessors necessary.