dashboard: light/dark mode toggle (warm parchment + deep amber)#1535
Open
AlexCheema wants to merge 2 commits intomainfrom
Open
dashboard: light/dark mode toggle (warm parchment + deep amber)#1535AlexCheema wants to merge 2 commits intomainfrom
AlexCheema wants to merge 2 commits intomainfrom
Conversation
Contributor
Author
Adds a theme system to the EXO dashboard with a "Mission Control, Dawn Shift" light mode — warm parchment backgrounds (oklch(0.97 0.015 80)) and deep amber/brass accents (oklch(0.50 0.14 65)) that feel premium rather than cold. Changes: - dashboard/src/lib/stores/theme.svelte.ts: new Svelte 5 rune store, persists choice to localStorage under 'exo-theme' - dashboard/src/app.html: FOUC prevention — html starts as class="dark", inline script reads localStorage and switches to class="light" before first paint - dashboard/src/routes/+layout.svelte: calls theme.init() on mount to sync rune state with the DOM class - dashboard/src/lib/components/HeaderNav.svelte: sun/moon toggle button in the right nav area - dashboard/src/app.css: full html.light palette + utility overrides (scrollbar, logo filter, graph links, scanlines, etc.) No new npm dependencies — avoids mode-watcher entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…logyGraph Port v1's component-level theme color mappings into v2's architecture: - ModelCard: import theme store, add derived `tc` color object with light/dark variants for SVG strokes, fills, labels, and scanlines - TopologyGraph: import theme store, add derived `themeColors` object with 20+ D3 color properties (device cases, screens, wires, labels, GPU chips, shadows, highlights); re-render graph on theme change All hardcoded dark-mode-only colors (#FFD700, #4B5563, #0a0a0a, etc.) replaced with theme-reactive values using v2's warm parchment palette. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19a21e9 to
ab427f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds a light/dark mode toggle to the EXO dashboard with an original "Mission Control, Dawn Shift" aesthetic.
Light mode palette — warm parchment + deep amber/brass:
oklch(0.97 0.015 80)— warm near-white, like aged paperoklch(0.92 0.012 80)— aged creamoklch(0.83 0.009 78)— warm taupeoklch(0.50 0.14 65)— deep amber/brass (readable on light)oklch(0.13 0.015 75)— warm near-blackDark mode unchanged — same command-center blacks and bright yellow.
Implementation
theme.svelte.ts— 28-line Svelte 5 rune store, nomode-watcherdependencyhtmlstarts asclass="dark", inline script readslocalStorageand switches before first painthtml.lightCSS class approach (not:not(.dark)) for explicit, clean overrideslocalStorageunder keyexo-themeFiles changed
dashboard/src/lib/stores/theme.svelte.ts(new)dashboard/src/app.htmldashboard/src/routes/+layout.sveltedashboard/src/lib/components/HeaderNav.sveltedashboard/src/app.cssTest plan
🤖 Generated with Claude Code