at-rule
@font-palette-values — CSS reference
Declares a named palette for a color font family. Base palette chooses the starting palette; override-colors replaces indexed entries. Apply with font-palette. Only compatible color glyphs are affected.
Formal Syntax & Structure
css syntaxcss
@font-palette-values <dashed-ident> { font-family: <family-name>#; base-palette: 0; override-colors: 0 red; } (example)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>