WeCodeAcademy

CSS Variables

Custom properties store a value once so you can reuse it. Define them with --name and read them with var(--name).

Examplehtml
Open in editor »

Change --brand once and everything that uses it updates.

Quick check

How do you read a variable called `--brand`?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.