export const themeNames = [ "imperial-gold", "midnight-electric", "crimson-ops", "emerald-matrix", "arctic", "amethyst", "copper-industrial", "polar-mono", ] as const; export type ThemeName = typeof themeNames[number]; export const defaultTheme: ThemeName = "imperial-gold"; export const themeStorageKey = "otf-theme"; export const glowStorageKey = "otf-reduced-glow"; export const contrastStorageKey = "otf-high-contrast"; export const colorVisionStorageKey = "otf-color-safe"; export const themeLabels: Record = { "imperial-gold": "Imperial Gold", "midnight-electric": "Midnight Electric", "crimson-ops": "Crimson Ops", "emerald-matrix": "Emerald Matrix", arctic: "Arctic", amethyst: "Amethyst", "copper-industrial": "Copper Industrial", "polar-mono": "Polar Mono", }; export function isThemeName(value: unknown): value is ThemeName { return typeof value === "string" && themeNames.includes(value as ThemeName); } export interface ThemeTokens { background: string; surface: string; surfaceElevated: string; textPrimary: string; textSecondary: string; textMuted: string; grid: string; gridInactive: string; gridActive: string; occupant: string; connector: string; focus: string; selection: string; hover: string; inspectorBackground: string; inspectorBorder: string; signalAmbient: string; signalOrigin: string; signalPath: string; signalReceiving: string; signalBroadcast: string; signalResolved: string; } export const themeTokenProperties: Record = { background: "--theme-background", surface: "--theme-surface", surfaceElevated: "--theme-surface-elevated", textPrimary: "--theme-text-primary", textSecondary: "--theme-text-secondary", textMuted: "--theme-text-muted", grid: "--theme-grid", gridInactive: "--theme-grid-inactive", gridActive: "--theme-grid-active", occupant: "--theme-occupant", connector: "--theme-connector", focus: "--theme-focus", selection: "--theme-selection", hover: "--theme-hover", inspectorBackground: "--theme-inspector-background", inspectorBorder: "--theme-inspector-border", signalAmbient: "--theme-signal-ambient", signalOrigin: "--theme-signal-origin", signalPath: "--theme-signal-path", signalReceiving: "--theme-signal-receiving", signalBroadcast: "--theme-signal-broadcast", signalResolved: "--theme-signal-resolved", };