Theme registry: the base modes and the defaults. Accents (the swatch presets)
are defined in presets.js from Phase 4; this file holds the base-mode config
the provider and picker share.
- Description:
Theme registry: the base modes and the defaults. Accents (the swatch presets) are defined in
presets.jsfrom Phase 4; this file holds the base-mode config the provider and picker share.
- Source:
Members
(static, constant) DEFAULT_MODE
- Description:
Shipped default base — System (auto dark/light). (Default accent lives in presets.js.)
- Source:
Shipped default base — System (auto dark/light). (Default accent lives in presets.js.)
(static, constant) RESOLVED_MODES
- Description:
The resolved bases a theme can actually render as (system resolves to one).
- Source:
The resolved bases a theme can actually render as (system resolves to one).
(static, constant) THEME_MODES
- Description:
The three base modes the user can pick.
systemfollows the OS.
- Source:
The three base modes the user can pick. system follows the OS.
Methods
(static) normalizeMode()
- Description:
Normalize any stored/incoming value to a valid mode.
- Source: