Skip to content

Theme

Scoped Silver UI theme provider backed by CSS custom properties.

Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme {...args}>
<ThemePreview>
<ComponentPreview />
</ThemePreview>
</Theme>
Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme
tokens={{
colors: {
primary: 'purple-500',
primaryActive: 'purple-700',
primaryHover: 'purple-600',
primarySubtle: 'purple-100',
},
}}>
<ThemePreview>
<ComponentPreview />
</ThemePreview>
</Theme>
Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme themes={neutralTheme.themes}>
<ThemePreview>
<ComponentPreview previewBadgeColor="neutral" />
</ThemePreview>
</Theme>
Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme themes={materialTheme.themes}>
<ThemePreview>
<ComponentPreview />
</ThemePreview>
</Theme>
Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme themes={nordTheme.themes}>
<ThemePreview>
<ComponentPreview />
</ThemePreview>
</Theme>
Workspace settings

A scoped theme updates Silver UI tokens for every component below.

Preview
Theme preview
Alerts, buttons, inputs, badges, and toggles all resolve through semantic tokens.
NeutralReadyReviewBlocked
Use themed semantic tokens for interactive controls.
<Theme themes={solarizedTheme.themes}>
<ThemePreview>
<ComponentPreview />
</ThemePreview>
</Theme>

Scoped Silver UI theme provider backed by CSS custom properties.

PropTypeDefaultDescription
asElementType'div'HTML element type to render.
childrenReactNodeTheme content.
data-testidstringTest ID applied to the root element.
mode"dark" | "light" | "system"'system'Theme mode. 'system' follows the OS prefers-color-scheme (rendering data-theme="system"), while 'light' / 'dark' pin the theme explicitly and always win over the OS preference.
refRef<HTMLElement>Ref forwarded to the root element.
themesThemeModeTokensFriendly token overrides mapped to Silver CSS custom properties.
tokensThemeTokensFriendly token overrides applied in every mode.