Skip to main content

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​

readonly category: string

Defined in: packages/sdvtables/src/themes/registry.ts:241

"journal", "library", "finance", "news", "sports", "gov" or "periodical".


darkPolicy​

readonly darkPolicy: 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​

readonly fonts: object

Defined in: packages/sdvtables/src/themes/registry.ts:243

The faces (Google Fonts families) and their weights.

body​

readonly body: string

bodyWeight​

readonly bodyWeight: number

label​

readonly label: string

labelWeight​

readonly labelWeight: number

numeric​

readonly numeric: string

subtitle​

readonly subtitle: string

subtitleItalic​

readonly subtitleItalic: boolean

title​

readonly title: string

titleWeight​

readonly titleWeight: number


id​

readonly id: string

Defined in: packages/sdvtables/src/themes/registry.ts:237

The registry id, e.g. "datagolf".


palette​

readonly palette: 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​

readonly sizes: object

Defined in: packages/sdvtables/src/themes/registry.ts:255

Font sizes and cell padding, in px.

body​

readonly body: number

label​

readonly label: number

padX​

readonly padX: number

padY​

readonly padY: number

source​

readonly source: number

subtitle​

readonly subtitle: number

title​

readonly title: number


source​

readonly source: string

Defined in: packages/sdvtables/src/themes/registry.ts:239

The surveyed source's name, e.g. "DataGolf".


structure​

readonly structure: 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.