Theme
Defined in: src/theme.ts:8
A named palette. Its colors back the $token style values — see the Theming guide.
Properties
Section titled “Properties”colors
Section titled “colors”colors:
object
Defined in: src/theme.ts:12
Semantic color tokens (referenced in styles as $primary, $surface, …).
Index Signature
Section titled “Index Signature”[key: string]: string | undefined
Any additional custom token.
accent
Section titled “accent”accent:
string
Tertiary accent / highlights ($accent).
attr-name?
Section titled “attr-name?”
optionalattr-name?:string
Syntax: markup attribute names.
background
Section titled “background”background:
string
App backdrop ($background).
boolean?
Section titled “boolean?”
optionalboolean?:string
Syntax: boolean literals.
border?
Section titled “border?”
optionalborder?:string
Border lines ($border).
builtin?
Section titled “builtin?”
optionalbuiltin?:string
Syntax: built-in identifiers.
comment?
Section titled “comment?”
optionalcomment?:string
Code comments (syntax).
dimmed?
Section titled “dimmed?”
optionaldimmed?:string
De-emphasized text ($dimmed).
error:
string
Error / destructive state ($error).
focus?
Section titled “focus?”
optionalfocus?:string
Focus-ring accent ($focus).
foreground
Section titled “foreground”foreground:
string
Default text ($foreground).
function?
Section titled “function?”
optionalfunction?:string
Syntax: function names.
gutter?
Section titled “gutter?”
optionalgutter?:string
Editor gutter / line numbers.
keyword?
Section titled “keyword?”
optionalkeyword?:string
Syntax: keywords.
number?
Section titled “number?”
optionalnumber?:string
Syntax: numeric literals.
operator?
Section titled “operator?”
optionaloperator?:string
Syntax: operators.
panel:
string
A second elevation above surface ($panel).
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Input placeholder text.
primary
Section titled “primary”primary:
string
Primary accent / interactive color ($primary).
property?
Section titled “property?”
optionalproperty?:string
Syntax: object properties.
punctuation?
Section titled “punctuation?”
optionalpunctuation?:string
Syntax: punctuation.
regexp?
Section titled “regexp?”
optionalregexp?:string
Syntax: regular expressions.
secondary
Section titled “secondary”secondary:
string
Secondary accent ($secondary).
selectionBg?
Section titled “selectionBg?”
optionalselectionBg?:string
Selection background ($selectionBg).
selectionFg?
Section titled “selectionFg?”
optionalselectionFg?:string
Selection foreground ($selectionFg).
shadow?
Section titled “shadow?”
optionalshadow?:string
Drop-shadow tint.
string?
Section titled “string?”
optionalstring?:string
Syntax: string literals.
success
Section titled “success”success:
string
Positive state ($success).
surface
Section titled “surface”surface:
string
Raised surface — cards, panels ($surface).
optionaltag?:string
Syntax: markup tags.
optionaltype?:string
Syntax: type names.
warning
Section titled “warning”warning:
string
Caution state ($warning).
name:
string
Defined in: src/theme.ts:10
Unique theme name passed to ThemeManager.setTheme.