darkColors()
Sets dark mode color overrides.
darkColors(
overrides: Partial<Record<UIColor.ColorName, UIColor | string>>,
): this;
Notes
- These colors are applied on top of base colors when dark mode is active.
- If not set, the theme does not respond to dark mode preference.
Parameters
- overrides — Color name to value mapping.
Return value
The theme itself, for method chaining.
Examples
theme.darkColors({
accent: "#BB86FC",
background: "#121212",
text: "#FFFFFF",
});
Related
class WebTheme
A class that represents a complete visual theme configuration.
