Tsallaka zuwa abun ciki
Justice Tech School

Custom Properties (Variables)Premium

A custom property is a name starting with two dashes, such as --brand: #0f766e;. Declare it on :root to make it global, then read it with var(--brand). A second argument gives a fallback: var(--gap, 8px).

This is a Premium lesson

All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.