descriptor

@font-palette-values/override-colors — CSS reference

Replaces indexed color entries in the base palette. Indices refer to palette entries, not glyph IDs. Overrides do not add entries or affect ordinary monochrome glyphs.

Formal Syntax & Structure

css syntaxcss
[ <integer [0,∞]> <color> ]#

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}@font-palette-values --editorial { font-family: DemoFont; base-palette: 0; override-colors: 0 red, 1 blue; }#a{font-family:DemoFont,serif;font-palette:--editorial}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>
CSS Reference