The CSS @layer at-rule

April 30, 2025

Screenshot of a blog post titled “The CSS @layer at-rule,” introducing the topic and explaining its usefulness for modularizing CSS without a build system.

I’ve been giving a lot of thought to how to make CSS files modular in the UI library without requiring any sort of build system.Today I want to talk about how the CSS @layer at-rule makes this a lot easier! Let’s dig in…

Source: The CSS @layer at-rule | Go Make Things

Quick quiz–how long has Cascade Layers been widely available? Even I was surprised it has been in all evergreen browsers since early 2022.

But it feels like they are underutilised (guilty as charged here too).

Here Chris Ferdinandi gets you tried with cascade layers.

We also have some talks here at Conffab on the topic.