Skip to content

Glossary: React Basics

CSS custom property

Also written: CSS variable, var(--accent)

A CSS value whose name starts with `--`, read in CSS with `var(...)`. The product card sets `--accent` from a prop with an inline style, and the CSS falls back to dark brown if it isn't set.

Where the book teaches it

Related terms

Inline styleCSS Module