Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(dashboard): add theme type definitions

Lum1104eff6f473b122
diff --git a/understand-anything-plugin/packages/dashboard/src/themes/types.ts b/understand-anything-plugin/packages/dashboard/src/themes/types.ts
new file mode 100644
index 00000000..2d095905
--- /dev/null
+++ b/understand-anything-plugin/packages/dashboard/src/themes/types.ts
@@ -0,0 +1,33 @@
+export type PresetId =
+ | "dark-gold"
+ | "dark-ocean"
+ | "dark-forest"
+ | "dark-rose"
+ | "light-minimal";
+
+export interface AccentSwatch {
+ id: string;
+ name: string;
+ accent: string;
+ accentDim: string;
+ accentBright: string;
+}
+
+export interface ThemePreset {
+ id: PresetId;
+ name: string;
+ isDark: boolean;
+ colors: Record<string, string>;
+ accentSwatches: AccentSwatch[];
+ defaultAccentId: string;
+}
+
+export interface ThemeConfig {
+ presetId: PresetId;
+ accentId: string;
+}
+
+export const DEFAULT_THEME_CONFIG: ThemeConfig = {
+ presetId: "dark-gold",
+ accentId: "gold",
+};