Function: createTheme()
function createTheme(partial, opts?): RasdTheme;
Defined in: resolve.ts:442
Authors a theme by merging partial onto its parent, eagerly.
The returned document is fully merged and self-contained — it never needs its
parents again at runtime, which is what makes a tenant theme cacheable in
storage.kv and safe to resolve offline (docs/12 §2.1, §10). extends is
kept for provenance only.
Throws RASD_THEME_INVALID (bad id or malformed/incomplete tokens) or
RASD_THEME_EXTENDS (unknown parent, id/object mismatch, cycle, depth > 8).
Parameters
| Parameter | Type |
|---|---|
partial | DeepPartial<RasdTheme> & object |
opts | CreateThemeOptions |