Custom properties

CSS variables defined with -- and read with var().

CSS

Also called: CSS variables, var()

Example

:root { --deep: #0B3940; }
.on-deep { background: var(--deep); }
← CSS Grid Updated 2026-11-26 Flexbox →