The Site Theme API gives you the colors and fonts of the site's theme, which a Wix user sets in the editor. Use it to draw a component in the site's own colors, including colors that the component's settings refer to by theme color ID. The theme belongs to the whole site, so the values are the same on every page.
With the Site Theme API, you can:
It's important to note the following points before starting to code:
undefined, so handle the missing case with a fallback.color_<n>, such as color_4.font_<n>, such as font_1.To use the API, install the @wix/site-service-site-theme package:
Import any type shown in these docs from @wix/site-service-site-theme/types:
In a React component, resolve the service with the useService hook:
Last updated: 13 October 2026