@font-palette-values
Widely availableSince 202296% of users
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.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since November 2022. Widely available since May 2025.
The old way and the modern waySee the snippet: Color font palettes without multiple font files →
Old way 13 lines
/* separate font files per theme */
@font-face {
font-family: "BrandBlue";
src: url("brand-blue.woff2") format("woff2");
}
@font-face {
font-family: "BrandGrey";
src: url("brand-grey.woff2") format("woff2");
}
.logo { font-family: "BrandBlue", fantasy; }
@media (prefers-color-scheme: dark) {
.logo { font-family: "BrandGrey", fantasy; }
}Modern 10 lines
@font-palette-values --brand {
font-family: "Nabla";
base-palette: 2;
override-colors: 0 #38bdf8, 1 #0f172a;
}
.logo {
font-family: "Nabla", fantasy;
font-palette: --brand;
}
/* one color font, custom palette, no second file */See how modern your own CSS is.Check your CSS →
Quick example
@font-palette-values --my-palette {
font-family: 'MyColorFont';
base-palette: 0;
override-colors: 0 #ef4444, 1 #3b82f6;
}@font-palette-values browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage96%of people can use this4% use a browser without it.
Browsers
101+
107+
15.4+
101+Mobile
101+Android
107+Android
15.4+iOS