Integrating CSS Cascade Layers To An Existing Project

September 18, 2025

Cascade layers are now well supported in evergreen browsers and provide a mechanism to help manage the complexity of specificity, cascade, and inheritance that we often use !important, increasingly elaborate selectors, Or some flavour of CSS-in-JS to otherwise deal with.

But a lot of our work is with established codebases where incorporating cascade layers can be challenging.

Here Victor Ayomipo Looks at how we can go about refactoring our CSS to incorporate cascade layers.