font-palette
The font-palette property specifies which color palette to use for fonts.
Formal Syntax
normal | light | dark | <palette-identifier> | <palette-mix()>
JavaScript Access
// Access via element.style
element.style.fontPalette = 'normal';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| font-palette | 101 | 107 | 15.4 | 101 |
| animation_computed | 121 | — | — | 121 |
| dark | 101 | 107 | 15.4 | 101 |
| light | 101 | 107 | 15.4 | 101 |
| normal | 101 | 107 | 15.4 | 101 |
| palette-mix_function | 121 | — | — | 121 |
Related Properties
- font
- font-family
- font-feature-settings
- font-kerning
- font-language-override
- font-optical-sizing
- font-size
- font-size-adjust
- font-style
- font-synthesis
- font-synthesis-small-caps
- font-synthesis-style
- font-synthesis-weight
- font-variant
- font-variant-alternates
- font-variant-caps
- font-variant-east-asian
- font-variant-emoji
- font-variant-ligatures
- font-variant-numeric
- font-variant-position
- font-variation-settings
- font-weight
- font-synthesis-position 🧪
- font-width 🧪
- font-stretch 🗑️