Import
import type { WrColor, WrThemeMode, WrResolvedTheme } from 'ngwr/theme';WrColor
The palette union behind every [color] input. Values map 1:1 to the --wr-color-* custom properties, so a custom palette automatically flows into components.
const accent: WrColor = 'primary';API
| Name | Description | Type | Default |
|---|---|---|---|
WrColor | Palette names accepted by every [color] input. | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'light' | 'medium' | 'dark' | — |
WrThemeMode | What the consumer asks WrTheme for — auto follows the OS. | 'light' | 'dark' | 'auto' | — |
WrResolvedTheme | What is actually applied to the DOM after resolving auto. | 'light' | 'dark' | — |