font-palette
Allows you to select a specific color palette for a color font (font that has multiple colors built-in), often used for icon fonts or emojis.
It is documented as part of the CSS Fonts specification.
Syntax
/* Usage Example */
.colorful-text {
/* Selects the built-in dark palette for the color font */
font-palette: --my-dark-theme;
}
/* Syntax */
font-palette: normal;
font-palette: light;
font-palette: dark;
font-palette: palette-mix;
/* Global values */
font-palette: inherit;
font-palette: initial;
font-palette: revert;
font-palette: revert-layer;
font-palette: unset;
font-palette Browser support
Widely available
Since
2022 94% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.
101+
107+
15.4+
101+