XDSTheme@xds/core · theme

Usage

Wraps a subtree with a specific XDS theme. Use at the app root or around sections that need a different visual treatment.

Import

ts
import {XDSTheme} from '@xds/core/theme'

Props

PropTypeDescription
themerequired
XDSDefinedThemeTheme created by defineTheme().
childrenrequired
ReactNodeContent to render with the theme.
mode
'light' | 'dark' | 'system' (default: 'system')Color mode — system follows OS preference.