@font-palette-values

An at-rule that lets you define your own custom color palettes for a color font (like an icon font or emoji font) by overriding its default colors.

/* Usage Example */
@font-palette-values --my-palette {
  font-family: ';MyColorFont';
  base-palette: 0;
  override-colors: 0 #ef4444, 1 #3b82f6;
}
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC