Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
CSS

CSS Variables

Store reusable values with `--custom-properties`.

CSS Variables — a practical guide to CSS custom properties variables with clear examples you can reuse in real projects.

CSS Tutorial Series (54/109). Prefer one article? Read the complete CSS tutorial.

Short description

Variables unlock theming (light/dark) and consistent design tokens.

Variables

:root {
  --brand: #0f766e;
  --space: 1rem;
}
.btn { background: var(--brand); padding: var(--space); }

Leave a reply

Your email address will not be published. Required fields are marked *