Methodology
CUBE CSS
A CSS methodology oriented towards simplicity, pragmatism, and consistency — designed to work with the browser, not against it.
What is CUBE CSS?
CUBE stands for Composition Utility Block Exception — four layers that build on each other, each with a clear and limited responsibility.
The methodology was created by Andy Bell and is designed to embrace the browser's natural cascade rather than fighting it.
The four layers
The core idea
Rather than treating CSS as a problem to be solved with ever-increasing specificity, CUBE CSS treats the cascade as a feature. Each layer has a defined role:
- Global CSS — resets, custom properties, base type scale
- Composition — layout primitives, flexbox/grid wrappers
- Utility — single-purpose design-token classes
- Block — component-specific rules, kept small
- Exception — state variants via data attributes
The browser is hinted with flexible rules. It fills in the gaps. Specificity stays low. Overrides stay readable.
How it compares
CUBE CSS differs from BEM, SMACSS, and utility-first approaches by keeping specificity intentionally low and letting the cascade do its job.