parseThemeOverrides
此内容尚不支持你的语言。
parseThemeOverrides(
colors?):ThemeOverrides|undefined
Defined in: ui/theme/tokens.ts:116
Parse a JSON-transportable color override map (role → #rrggbb[aa] hex — the
shape project manifests and shipped game configs carry) into ThemeOverrides.
Unknown roles and malformed hex are dropped; undefined when nothing valid remains.
The ONE config→overrides converter shared by the editor and every shipped host.
Parameters
Section titled “Parameters”colors?
Section titled “colors?”Record<string, string>
Returns
Section titled “Returns”ThemeOverrides | undefined