XDSMediaTheme@xds/core · theme

Usage

Applies a theme that adapts to the system light/dark preference via prefers-color-scheme.

Import

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

Props

PropTypeDescription
moderequired
'dark' | 'light'Surface luminance context — dark for light text on dark backgrounds, light for dark text on light backgrounds.
childrenrequired
ReactNodeContent to render in the media context.