Guide to defining custom properties, sRGB, HSL, OKLCH, and color-mix() in modern stylesheets.
:root { --primary: #0066ff; } .button { background-color: var(--primary); color: color-mix(in srgb, var(--primary) 80%, black); }