@jimka/typescript-ui / core / Theme
Interface: Theme
Defined in: src/typescript/lib/core/Theme.ts:17
Defines the full set of design tokens that make up a UI theme.
Background tokens (e.g. button.bg, button.pressed.bg, toggle.selected.bg) accept any CSS background-image value such as a gradient, or any CSS background-color value such as a plain colour. The framework applies the same variable to both background-color and background-image, so CSS's "invalid at computed-value time" rule routes automatically: a plain colour takes effect via background-color; a gradient via background-image.
Properties
accordion
accordion: {
header: {
background: string;
border: string;
color: string;
};
indicator: {
color: string;
};
panel: {
border: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:206
header
header: {
background: string;
border: string;
color: string;
};header.background
background: string;header.border
border: string;header.color
color: string;indicator
indicator: {
color: string;
};indicator.color
color: string;panel
panel: {
border: string;
};panel.border
border: string;autoComplete
autoComplete: {
background: string;
border: string;
item: {
disabledColor: string;
highlightBackground: string;
highlightColor: string;
hoverBackground: string;
};
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:231
background
background: string;border
border: string;item
item: {
disabledColor: string;
highlightBackground: string;
highlightColor: string;
hoverBackground: string;
};item.disabledColor
disabledColor: string;item.highlightBackground
highlightBackground: string;item.highlightColor
highlightColor: string;item.hoverBackground
hoverBackground: string;shadow
shadow: string;body
body: {
background: string;
};Defined in: src/typescript/lib/core/Theme.ts:36
background
background: string;border
border: {
color: string;
radius: string;
};Defined in: src/typescript/lib/core/Theme.ts:40
color
color: string;radius
radius: string;button
button: {
background: string;
border: string;
font: {
size: string;
};
hover: {
background: string;
foreground: string;
shadow: string;
};
padding: string;
pressed: {
background: string;
foreground: string;
shadow: string;
};
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:45
background
background: string;border
border: string;font
font: {
size: string;
};font.size
size: string;hover
hover: {
background: string;
foreground: string;
shadow: string;
};hover.background
background: string;hover.foreground
foreground: string;hover.shadow
shadow: string;padding
padding: string;pressed
pressed: {
background: string;
foreground: string;
shadow: string;
};pressed.background
background: string;pressed.foreground
foreground: string;pressed.shadow
shadow: string;shadow
shadow: string;colorScheme
colorScheme: string;Defined in: src/typescript/lib/core/Theme.ts:18
contextMenu
contextMenu: {
background: string;
border: string;
item: {
disabledColor: string;
hoverBackground: string;
};
separatorColor: string;
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:128
background
background: string;border
border: string;item
item: {
disabledColor: string;
hoverBackground: string;
};item.disabledColor
disabledColor: string;item.hoverBackground
hoverBackground: string;separatorColor
separatorColor: string;shadow
shadow: string;dialog
dialog: {
backdrop: {
background: string;
};
border: string;
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:198
backdrop
backdrop: {
background: string;
};backdrop.background
background: string;border
border: string;shadow
shadow: string;dropdown
dropdown: {
fade: {
duration: string;
translate: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:243
fade
fade: {
duration: string;
translate: string;
};fade.duration
duration: string;fade.translate
translate: string;font
font: {
family: string;
lineHeight: number;
size: string;
};Defined in: src/typescript/lib/core/Theme.ts:20
family
family: string;lineHeight
lineHeight: number;Unitless multiplier of the current font size. CSS treats a unitless line-height as "this many times the element's own font-size", so the value scales automatically when the font size changes. Typical UI values are around 1.2 (compact) to 1.5 (loose).
size
size: string;glyph
glyph: {
beatDuration: string;
pulseDuration: string;
spinDuration: string;
};Defined in: src/typescript/lib/core/Theme.ts:274
beatDuration
beatDuration: string;pulseDuration
pulseDuration: string;spinDuration
spinDuration: string;gutter
gutter: {
background: string;
};Defined in: src/typescript/lib/core/Theme.ts:76
background
background: string;header
header: {
font: {
size: string;
};
padding: number;
};Defined in: src/typescript/lib/core/Theme.ts:94
font
font: {
size: string;
};font.size
size: string;padding
padding: number;input
input: {
background: string;
};Defined in: src/typescript/lib/core/Theme.ts:72
background
background: string;menuBar
menuBar: {
background: string;
border: string;
button: {
background: string;
foreground: string;
hoverBackground: string;
};
item: {
disabledColor: string;
hoverBackground: string;
shortcutColor: string;
};
panel: {
background: string;
border: string;
minWidth: string;
shadow: string;
};
separatorColor: string;
};Defined in: src/typescript/lib/core/Theme.ts:139
background
background: string;border
border: string;button
button: {
background: string;
foreground: string;
hoverBackground: string;
};button.background
background: string;button.foreground
foreground: string;button.hoverBackground
hoverBackground: string;item
item: {
disabledColor: string;
hoverBackground: string;
shortcutColor: string;
};item.disabledColor
disabledColor: string;item.hoverBackground
hoverBackground: string;item.shortcutColor
shortcutColor: string;panel
panel: {
background: string;
border: string;
minWidth: string;
shadow: string;
};panel.background
background: string;panel.border
border: string;panel.minWidth
minWidth: string;panel.shadow
shadow: string;separatorColor
separatorColor: string;notification
notification: {
error: {
background: string;
border: string;
};
info: {
background: string;
border: string;
};
shadow: string;
success: {
background: string;
border: string;
};
warning: {
background: string;
border: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:178
error
error: {
background: string;
border: string;
};error.background
background: string;error.border
border: string;info
info: {
background: string;
border: string;
};info.background
background: string;info.border
border: string;shadow
shadow: string;success
success: {
background: string;
border: string;
};success.background
background: string;success.border
border: string;warning
warning: {
background: string;
border: string;
};warning.background
background: string;warning.border
border: string;popover
popover: {
arrowSize: string;
background: string;
border: string;
color: string;
padding: string;
radius: string;
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:168
arrowSize
arrowSize: string;background
background: string;border
border: string;color
color: string;padding
padding: string;radius
radius: string;shadow
shadow: string;progressBar
progressBar: {
fill: {
background: string;
};
indeterminate: {
background: string;
};
track: {
background: string;
borderRadius: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:255
fill
fill: {
background: string;
};fill.background
background: string;indeterminate
indeterminate: {
background: string;
};indeterminate.background
background: string;track
track: {
background: string;
borderRadius: string;
};track.background
background: string;track.borderRadius
borderRadius: string;progressSpinner
progressSpinner: {
backdrop: string;
color: string;
size: string;
};Defined in: src/typescript/lib/core/Theme.ts:268
backdrop
backdrop: string;color
color: string;size
size: string;spinner
spinner: {
buttonWidth: string;
dividerColor: string;
};Defined in: src/typescript/lib/core/Theme.ts:250
buttonWidth
buttonWidth: string;dividerColor
dividerColor: string;tab
tab: {
button: {
background: string;
};
toolbar: {
background: string;
border: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:80
button
button: {
background: string;
};button.background
background: string;toolbar
toolbar: {
background: string;
border: string;
};toolbar.background
background: string;toolbar.border
border: string;table
table: {
cell: {
background: string;
border: string;
color: string;
editorBorderColor: string;
height: string;
padding: number;
};
header: {
border: string;
font: {
size: string;
};
glyph: {
color: string;
gap: string;
};
};
row: {
dirty: string;
new: string;
selected: string;
selectedBorder: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:101
cell
cell: {
background: string;
border: string;
color: string;
editorBorderColor: string;
height: string;
padding: number;
};cell.background
background: string;cell.border
border: string;cell.color
color: string;cell.editorBorderColor
editorBorderColor: string;cell.height
height: string;cell.padding
padding: number;header
header: {
border: string;
font: {
size: string;
};
glyph: {
color: string;
gap: string;
};
};header.border
border: string;header.font
font: {
size: string;
};header.font.size
size: string;header.glyph
glyph: {
color: string;
gap: string;
};header.glyph.color
color: string;header.glyph.gap
gap: string;row
row: {
dirty: string;
new: string;
selected: string;
selectedBorder: string;
};row.dirty
dirty: string;row.new
new: string;row.selected
selected: string;row.selectedBorder
selectedBorder: string;text
text: {
color: string;
};Defined in: src/typescript/lib/core/Theme.ts:32
color
color: string;toggle
toggle: {
selected: {
background: string;
shadow: string;
};
};Defined in: src/typescript/lib/core/Theme.ts:65
selected
selected: {
background: string;
shadow: string;
};selected.background
background: string;selected.shadow
shadow: string;tooltip
tooltip: {
background: string;
border: string;
color: string;
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:161
background
background: string;border
border: string;color
color: string;shadow
shadow: string;validation
validation: {
error: {
border: string;
tooltip: {
background: string;
border: string;
color: string;
};
};
};Defined in: src/typescript/lib/core/Theme.ts:220
error
error: {
border: string;
tooltip: {
background: string;
border: string;
color: string;
};
};error.border
border: string;error.tooltip
tooltip: {
background: string;
border: string;
color: string;
};error.tooltip.background
background: string;error.tooltip.border
border: string;error.tooltip.color
color: string;window
window: {
shadow: string;
};Defined in: src/typescript/lib/core/Theme.ts:90
shadow
shadow: string;