CSS & Frontend

CSS Custom Property

/siː es es ˈkʌstəm ˈprɒpəti/

Definition

A CSS variable (--property-name: value) that holds reusable values and can be updated dynamically via JavaScript.

Example in context

"We use --color-primary as a CSS variable — dark mode just reassigns it, no extra selectors needed."

Related terms

Practice this term

Master CSS Custom Property in context by working through exercises in the CSS & Frontend module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.