@jsvision/core / ThemeColors
Interface: ThemeColors
Defined in: color/aliases.ts:25
The 16 semantic color aliases a generated theme is built from.
Each token is a Color (hex, a named ANSI-16 color, or 'default') and carries a fixed meaning — the four groups are text, surface, accent, line, and status. rolesFromAliases maps every one of the 63 UI roles onto its nearest token by purpose, so changing (say) accent re-colors every focus/selection surface at once.
This is a type — it has no runtime footprint and is exempt from the @example doc rule; build a value with createTheme (or an object literal) instead.
Properties
accent
readonlyaccent:Color
Defined in: color/aliases.ts:48
The brand/focus color — focused rows, the default button, selected menu/tab fills.
accentMuted
readonlyaccentMuted:Color
Defined in: color/aliases.ts:50
A dimmer/pressed step of accent — a focused button face, an inactive tab.
background
readonlybackground:Color
Defined in: color/aliases.ts:38
The base backdrop — the desktop field behind all windows.
backgroundRaised
readonlybackgroundRaised:Color
Defined in: color/aliases.ts:40
A raised surface — window/dialog interiors, menus, list bodies; sits above background.
backgroundSelected
readonlybackgroundSelected:Color
Defined in: color/aliases.ts:44
A selected-but-unfocused row's fill — a quiet highlight distinct from the accent focus fill.
backgroundSunken
readonlybackgroundSunken:Color
Defined in: color/aliases.ts:42
A sunken surface — the well of an input/editor field, visually recessed below backgroundRaised.
border
readonlyborder:Color
Defined in: color/aliases.ts:54
Frame and border lines on an active surface.
borderMuted
readonlyborderMuted:Color
Defined in: color/aliases.ts:56
Dimmed border lines — an inactive window frame, an inter-column divider.
danger
readonlydanger:Color
Defined in: color/aliases.ts:60
Danger / destructive signal — the default red hotkey accent, error emphasis.
foreground
readonlyforeground:Color
Defined in: color/aliases.ts:28
Primary body text — the default readable foreground on a normal surface.
foregroundDisabled
readonlyforegroundDisabled:Color
Defined in: color/aliases.ts:32
Disabled text — a greyed control's label; deliberately low-contrast.
foregroundMuted
readonlyforegroundMuted:Color
Defined in: color/aliases.ts:30
De-emphasized text — captions, dividers, inactive titles; sits on the same surfaces as foreground.
foregroundOnAccent
readonlyforegroundOnAccent:Color
Defined in: color/aliases.ts:34
Text drawn on the accent fill — a button caption, a focused row; must contrast the accent.
info
readonlyinfo:Color
Defined in: color/aliases.ts:66
Informational signal — a "today" marker, a neutral highlight.
success
readonlysuccess:Color
Defined in: color/aliases.ts:64
Success / positive signal — a completed action, a drag-in-progress indicator.
warning
readonlywarning:Color
Defined in: color/aliases.ts:62
Warning / attention signal — the default yellow shortcut accent.