Skip to content

Theme

Defined in: src/theme.ts:8

A named palette. Its colors back the $token style values — see the Theming guide.

colors: object

Defined in: src/theme.ts:12

Semantic color tokens (referenced in styles as $primary, $surface, …).

[key: string]: string | undefined

Any additional custom token.

accent: string

Tertiary accent / highlights ($accent).

optional attr-name?: string

Syntax: markup attribute names.

background: string

App backdrop ($background).

optional boolean?: string

Syntax: boolean literals.

optional border?: string

Border lines ($border).

optional builtin?: string

Syntax: built-in identifiers.

optional comment?: string

Code comments (syntax).

optional dimmed?: string

De-emphasized text ($dimmed).

error: string

Error / destructive state ($error).

optional focus?: string

Focus-ring accent ($focus).

foreground: string

Default text ($foreground).

optional function?: string

Syntax: function names.

optional gutter?: string

Editor gutter / line numbers.

optional keyword?: string

Syntax: keywords.

optional number?: string

Syntax: numeric literals.

optional operator?: string

Syntax: operators.

panel: string

A second elevation above surface ($panel).

optional placeholder?: string

Input placeholder text.

primary: string

Primary accent / interactive color ($primary).

optional property?: string

Syntax: object properties.

optional punctuation?: string

Syntax: punctuation.

optional regexp?: string

Syntax: regular expressions.

secondary: string

Secondary accent ($secondary).

optional selectionBg?: string

Selection background ($selectionBg).

optional selectionFg?: string

Selection foreground ($selectionFg).

optional shadow?: string

Drop-shadow tint.

optional string?: string

Syntax: string literals.

success: string

Positive state ($success).

surface: string

Raised surface — cards, panels ($surface).

optional tag?: string

Syntax: markup tags.

optional type?: string

Syntax: type names.

warning: string

Caution state ($warning).


name: string

Defined in: src/theme.ts:10

Unique theme name passed to ThemeManager.setTheme.