Interface: TableThemeSpec
Defined in: packages/sdvtables/src/themes/registry.ts:235
One registry theme resolved in one mode, as Python's table_theme_spec returns it (its TableThemeSpec, with
dark_policy as darkPolicy): the surveyed fonts and sizes, the palette complete (a key the theme omits takes the
shared default), and the structure with every {key} in its border strings taken from the palette.
Properties
category
readonlycategory:string
Defined in: packages/sdvtables/src/themes/registry.ts:241
"journal", "library", "finance", "news", "sports", "gov" or "periodical".
darkPolicy
readonlydarkPolicy:string
Defined in: packages/sdvtables/src/themes/registry.ts:269
"native" (the site has a dark mode), "derived" (sdv's own dark palette) or "none" (light only).
fonts
readonlyfonts:object
Defined in: packages/sdvtables/src/themes/registry.ts:243
The faces (Google Fonts families) and their weights.
body
readonlybody:string
bodyWeight
readonlybodyWeight:number
label
readonlylabel:string
labelWeight
readonlylabelWeight:number
numeric
readonlynumeric:string
subtitle
readonlysubtitle:string
subtitleItalic
readonlysubtitleItalic:boolean
title
readonlytitle:string
titleWeight
readonlytitleWeight:number
id
readonlyid:string
Defined in: packages/sdvtables/src/themes/registry.ts:237
The registry id, e.g. "datagolf".
palette
readonlypalette:Readonly<Record<TableThemePaletteKey,string>>
Defined in: packages/sdvtables/src/themes/registry.ts:265
The mode's colours, complete: a key the theme omits takes the shared default.
sizes
readonlysizes:object
Defined in: packages/sdvtables/src/themes/registry.ts:255
Font sizes and cell padding, in px.
body
readonlybody:number
label
readonlylabel:number
padX
readonlypadX:number
padY
readonlypadY:number
source
readonlysource:number
subtitle
readonlysubtitle:number
title
readonlytitle:number
source
readonlysource:string
Defined in: packages/sdvtables/src/themes/registry.ts:239
The surveyed source's name, e.g. "DataGolf".
structure
readonlystructure:Readonly<Record<string,unknown>>
Defined in: packages/sdvtables/src/themes/registry.ts:267
Rules, borders, stripes, heat and the rest, as the registry has them, border strings substituted.