!important and CSS Custom Properties – Frontend Masters Blog

The `!important` part doesn't become part of the value, the whole declaration is treated as !important;

From the archives:

Custom Properties: Questioning “:root”:

https://meiert.com/blog/questioning-root/

#css #customproperties #selectors

Custom Properties: Questioning “:root” · Jens Oliver Meiert

For custom properties (aka CSS variables) we got into the habit of declaring variables in a rule with a <code>:root</code> selector. Yet unless you’re working in an environment in which style sheets serve several document types (and roots), question this use of <code>:root</code>.

#Development #Pitfalls
CSS custom properties with !important · When you spot the declaration gets !important https://ilo.im/169jcs

_____
#CssDeclarations #Specificity #CustomProperties #WebDev #Frontend #CSS

!important and CSS Custom Properties – Frontend Masters Blog

The `!important` part doesn't become part of the value, the whole declaration is treated as !important;

Happy 2026

...

#Development #Explorations
Thoughts on native CSS mixins · What they might mean for front-end developers https://ilo.im/1693wl

_____
#CssMixins #CssFunctions #CustomProperties #Sass #W3C #WebStandards #Browser #WebDev #Frontend #CSS

Thoughts on Native CSS Mixins – Frontend Masters Blog

There are no browser implementations of mixins yet, nor a fleshed out spec. So perhaps now is the best time to try to understand and opine.

It Is OK to Say “CSS Variables” Instead of (or Alongside) “Custom Properties”, by @kizu:

https://blog.kizu.dev/css-variables/

#css #variables #customproperties #terminology

It is OK to Say “CSS Variables” Instead of (or Alongside) “Custom Properties”

TPAC 2025 just ended, and I am positively tired. Attending it remotely, my sleep schedule is chaotic right now. I have many ideas for CSS-related posts in my list of ideas for November, but almost all of them require at least some amount of research and crafting demos. Well! I found one note that I wanted to expand on, and which sounds tiny enough to be able to finish it in my altered state.

It is OK to Say “CSS Variables” Instead of (or Alongside) “Custom Properties”

TPAC 2025 just ended, and I am positively tired. Attending it remotely, my sleep schedule is chaotic right now. I have many ideas for CSS-related posts in my list of ideas for November, but almost all of them require at least some amount of research and crafting demos. Well! I found one note that I wanted to expand on, and which sounds tiny enough to be able to finish it in my altered state.

Shuffling a CSS grid using custom properties | Christian Heilmann