Source-named themes: list and resolve
{
"all themes": 122,
"sports themes with a dark mode": 35,
"first three": [
{
"id": "baseball-prospectus",
"source": "Baseball Prospectus",
"category": "sports",
"darkPolicy": "derived"
},
{
"id": "baseball-reference",
"source": "Baseball-Reference",
"category": "sports",
"darkPolicy": "derived"
},
{
"id": "baseball-savant",
"source": "Baseball Savant",
"category": "sports",
"darkPolicy": "derived"
}
],
"datagolf dark colour tokens": {
"bg": "#141414",
"text": "#cdcdcd",
"accent": "#3d9970",
"rule": "#373737"
},
"datagolf fonts": [
"Fira Sans"
]
}import { listTableThemes, registryTheme } from "@sportsdataverse/sdvtables";
// 122 themes named after the table they are styled on. Filter by category, or by dark support.
const sportsDark = listTableThemes({ category: "sports", mode: "dark" });
const datagolf = registryTheme({ name: "datagolf", density: "comfortable", options: { mode: "dark" } });
const { bg, text, accent, rule } = datagolf.tokens;
{
"all themes": listTableThemes().length,
"sports themes with a dark mode": sportsDark.length,
"first three": sportsDark.slice(0, 3),
"datagolf dark colour tokens": { bg, text, accent, rule },
"datagolf fonts": datagolf.fonts.map((f) => f.family),
};
Tags: theme · listTableThemes · registryTheme. All sdvtables examples.