Limited support Use with care and confirm browser support before shipping it to all users.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
animation computed
Experimental
121
121
121

The palette-mix() CSS function can be used to create a new font-palette value by blending together two font-palette values by specified percentages and color interpolation methods.

121
121
121
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
@font-palette-values --dark {
  font-family: "Color Font";
  base-palette: 1;
}
.heading {
  font-palette: --light;
  transition: font-palette 0.5s;
}
.dark .heading { font-palette: --dark; }

Live demo

Light palette

CSS lightpalette demo.

PreviewFullscreen

Dark palette

CSS darkpalette demo.

PreviewFullscreen

transition

CSS transition demo.

PreviewFullscreen

Use cases

  • Refine text rhythm

    Use font-palette animation to make long-form reading or dense interface copy easier to scan and understand.

  • Support language nuances

    Apply font-palette animation when different writing systems or typographic conventions need more deliberate control.

Cautions

  • Test font-palette animation in the browsers you support, especially if it changes layout, text handling, or interaction behavior.
  • Plan a fallback or acceptable degradation path when support is still limited.

Accessibility

  • Check readability with zoom, narrow screens, and mixed-language content so text remains understandable.