Skip to content

<XrThemeProvider> ​

A theme for everything inside it: a whole theme, an accent colour, or both. See Theming.

Usage ​

vue
<XrThemeProvider accent="#f43f5e">
  <XrButton>Delete</XrButton>
</XrThemeProvider>

API ​

Props ​

PropTypeDefaultDescription
accentstringOne accent colour; primary, hover, active and focus colours are derived from it (withAccent).
themeThemeTokensThe theme for everything inside it. Defaults to the surrounding theme.

MIT License