Make the dashboard follow the light/dark color scheme - #13
Merged
Merged
Conversation
The dashboard page always rendered light, with every color a hardcoded hex in inline styles, and React Flow v11 has no dark mode of its own (colorMode is v12+). Every color in static/index.html is now a CSS custom property defined once as a light-dark(<light>, <dark>) pair under color-scheme: light dark. Light values are the previous hexes, so light mode is unchanged. Inline styles reference the tokens as "var(--...)" strings (including GROUP_COLORS and SELECTED_EDGE_COLOR), so a prefers-color-scheme change repaints in CSS alone: no matchMedia listener, no re-render, no dagre relayout. React Flow's stylesheet colors (edges, handles, controls, minimap, attribution) are overridden in the same <style>. The minimap node fill, mask, and background dots are SVG presentation attributes in v11, so they're themed by CSS rules: MiniMap uses nodeClassName (minimap-node--<group>) instead of nodeColor. Arrowheads get their color via defaultMarkerColor="var(--edge)", which v11 applies as an inline style where var() resolves. Bumps the shared workspace version to 0.4.2 across every package and the workspace root, including the exact-pinned tkati-core dependency. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
No description provided.