Theme types
Theme identifiers, appearance patches, and catalogue types.
import type { ChartTheme } from "@sixtyfold/themes";Use the public entry point shown above.
ChartThemeId
A stable identifier for one public chart appearance preset.
type ChartThemeId = (typeof PUBLIC_THEME_IDS)[number]ChartThemePreset
A deeply immutable, content-neutral line and stock appearance preset.
type ChartThemePreset = DeepReadonly<{
/** Stable catalog identifier. */
id: ChartThemeId;
/** Human-readable English display name. */
label: string;
/** Recommended surrounding-page color scheme. */
colorScheme: "dark" | "light";
/** Line-chart appearance and repeating per-series visual patches. */
line: {
/** Content-neutral patch for `LineChart.updateAppearance`. */
appearance: DeepPartial<LineAppearanceOptions>;
/** Repeating visual patches for `LineChart.updateSeriesAppearance`. */
series: DeepPartial<SeriesAppearanceOptions>[];
};
/** Stock-chart appearance patch. */
stock: {
/** Content-neutral patch for `StockChart.updateAppearance`. */
appearance: DeepPartial<StockAppearanceOptions>;
};
}>LineThemePreset
A line-only view of one recursively frozen public theme preset.
type LineThemePreset = DeepReadonly<{
id: ChartThemeId;
label: string;
colorScheme: "dark" | "light";
line: {
appearance: DeepPartial<LineAppearanceOptions>;
series: DeepPartial<SeriesAppearanceOptions>[];
};
}>StockThemePreset
A stock-only view of one recursively frozen public theme preset.
type StockThemePreset = DeepReadonly<{
id: ChartThemeId;
label: string;
colorScheme: "dark" | "light";
stock: {
appearance: DeepPartial<StockAppearanceOptions>;
};
}>