Brand
Used for prominent surfaces and actions.
Name repeated colours once, then use those names throughout the page.
:root { --color-brand: #176b73; } .button { background: var(--color-brand); }
:root makes the palette available throughout the document.var(--color-brand) reads the stored value.Used for prominent surfaces and actions.
Used behind readable content.
Used sparingly to draw attention.
Declare roles on :root, then read them with var().
:root {
--color-brand: #176b73;
--color-surface: #ffffff;
--color-text: #1f2933;
}
.button {
background: var(--color-brand);
}