Skip to content

EditorThemeDef beta ​

Interface of @v12-engine/editor

ts
export interface EditorThemeDef

A theme of the game's own for its editor, picked in the editor's settings with its own (EditorOptions.themes): values of the interface's variables (Tokens: accent, panel, radius...) over one of the editor's themes, or worked out from that theme's values

Members ​

base ​

ts
base?: EditorTheme;

The editor's theme it is made over: dark when left out

id ​

ts
id: string;

What it is kept and set by (editor.setPrefs({ theme: id })): not one of the editor's own (dark, light...)

label ​

ts
label: string;

What the settings call it

tokens ​

ts
tokens: Partial<Tokens> | ((base: Readonly<Tokens>) => Partial<Tokens>);

Its values, over the base's; or a function of the base's values