Path: blob/main/files/en-us/web/css/@font-palette-values/base-palette/index.md
6537 views
------{{CSSRef}}
The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used.
Syntax
The base-palette descriptor is specified using a zero-based index of the font-maker created palettes.
Values
<index>: Specifies the index of the pre-defined palette to use.
Formal definition
{{cssinfo}}
Formal syntax
{{csssyntax}}
Examples
Changing the default palette in a font
Using the Rocher Color Font, this example shows two instances of switching the default palette in the font to an alternate palette created by the font-maker.
HTML
CSS
Result

Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{cssxref("@font-palette-values/", "@font-palette-values")}}
{{cssxref("@font-palette-values/font-family", "font-family")}} descriptor
{{cssxref("@font-palette-values/override-colors", "override-colors")}} descriptor
{{cssxref("font-palette/", "font-palette")}} property