Expand description
The built-in themes, compiled in (VAPP-92; mirrors src/themes.ts).
neutral is stock shadcn and the ROOT the others extend; exponential
is generated from the app’s design tokens; playful is the deliberately
different test theme; orange is exponential with an orange primary
(colours only, the brand reference). The generator embeds them already RESOLVED
(BUILTIN_THEME_JSON), so they are parsed once, never re-flattened.
Constants§
- BUILTIN_
THEME_ IDS - Source order = resolution order.
- BUILTIN_
THEME_ NAMES - DEFAULT_
THEME_ ID
Functions§
- builtin_
refs - The registry a host passes as
ThemeOptions::themesto extend a built-in. - builtin_
theme - A built-in, parsed once per process;
Nonefor an unknown id. - builtin_
themes - Every built-in, in source order.
- default_
theme - The default theme (
exponential). - theme_
or_ default - Round 4 (VAPP-103): the theme a host paints with, NEVER a failure: a
built-in id (a JSON string) or a theme file over the built-ins; anything
unusable (an unknown id, a bad
$schema, an unknown token, a missing value) falls back todefault_themewith the issues saying why (TSthemeOrDefault, Swift/KotlinThemeHandle.loadOrDefault).