You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
diagram: component-library CSS modules hardcode light colors with no dark-mode overrides #709
The component library CSS modules under src/diagram/components/*.module.css hardcode light-theme colors (#fff backgrounds, rgba(0, 0, 0, ...) text/borders) with no [data-theme="dark"] variants, while src/diagram/theme.css defines a full set of dark-mode design tokens and some feature-level CSS (Editor, ModuleDetails) already ships dark rules.
Latent today because the editor chrome isn't dark-themed in the shipping app. But any future dark-theming effort (the root CLAUDE.md lists dark mode as supported via [data-theme="dark"]) will leave menus, dialogs, drawers, text fields, autocompletes, buttons, and cards rendering as bright white boxes against a dark surface -- an inconsistent, broken-looking UI. The infrastructure (tokens) already exists; the library modules just don't consume it.
Component(s) affected
src/diagram/components/ -- the 16 *.module.css files listed above.
Possible approach
Migrate the library modules off hardcoded literals onto the theme.css custom properties (CSS variables), which already carry correct light/dark values. This is a mechanical sweep: replace #fff / rgba(0,0,0,...) with the corresponding var(--...) token. No per-component dark rules needed once the tokens are used, since theme.css already redefines them under [data-theme="dark"].
How discovered
Identified during UI/theming review of the diagram component library.
Activity