Site Theme Properties

colors

Type: SiteColors (read-only)

Site's theme colors, keyed by theme color ID.

Use it to resolve a theme color ID, such as color_4, to its color value.

The host fills colors and colorsMap from the same list of theme colors, so colors['color_<n>'] is the same value as colorsMap[n], counting from color_0.

Don't change the object's entries. Every component on the page reads the same object, so a change shows in all of them, and the site doesn't save it.

Example

Copy

colorsMap

Type: ColorsMap (read-only)

Site's theme colors, in order.

The host fills colorsMap and colors from the same list of theme colors, so entry n is the theme color with ID color_<n>.

Don't change the array, for example by sorting it in place. Every component on the page reads the same array, so a change shows in all of them, and the site doesn't save it.

Example

Copy

fonts

Type: SiteFonts (read-only)

Site's theme fonts, keyed by theme font ID.

Don't change the object's entries. Every component on the page reads the same object, so a change shows in all of them, and the site doesn't save it.

Example

Copy

Last updated: 21 October 2026

Did this help?