Repository navigation
Description
Overview
packages/desktop-app/src/lib/design/components/diagnostic-panel.svelte implements a completely separate, hardcoded dark IDE-style color scheme with no connection to ../nodespace-docs/DESIGN.md's token system and no light/dark theme switching at all. Separately, packages/desktop-app/src/lib/styles/noderef.css has hardcoded color literals beyond the per-node-type accents already covered by the node-color unification issue, including a hardcoded print-media block. Both are grouped here as the remaining hardcoded-color cleanup not already covered by the modals or sync-pills issues.
Problem Statement
diagnostic-panel.svelte: hardcodes an entire dark IDE-style palette — #1e1e1e, #3fb950, #f85149, #58a6ff (and likely more in the same block) — with zero light/dark theme awareness. Every other surface in the app respects the user's theme choice via app.css tokens; this component is a fixed dark palette regardless of the app's actual theme setting.
noderef.css (remaining items beyond the per-node-type accents already covered by the node-color unification issue): a hardcoded #000/#999 pair inside a @media print block, plus any other stray hex literals in the file not already addressed by that issue.
Proposed Solution
- Rework
diagnostic-panel.svelteto use the standardapp.csstoken set instead of its own palette, so it participates in light/dark theme switching like every other component. If the panel's intent is specifically to look like a code/log console (a deliberate design choice distinct from the rest of the app chrome), that choice should be confirmed against DESIGN.md or via a design decision before this issue closes — flag this explicitly for the implementer to check rather than assuming a straight token swap is correct, since a monospace diagnostic/log view is a plausible exception case worth confirming rather than silently "fixing" - Replace the
#000/#999print-media literals innoderef.csswith the appropriate token equivalents (print stylesheets can still reference the same CSS custom properties as screen styles, since custom properties are inherited/cascaded the same way)
Acceptance Criteria
-
diagnostic-panel.svelte's color values are either (a) replaced withapp.csstokens and confirmed to respond correctly to light/dark theme switching, or (b) confirmed via a design decision that this component is an intentional token-system exception (e.g., a fixed-dark diagnostic console), with that decision recorded in the PR description -
noderef.css's@media printblock no longer hardcodes#000/#999— uses token references instead - Any other stray hex/rgba literals remaining in
noderef.cssafter the node-color unification issue (Unify node-type accent colors to a single primary-based system #2590) lands are removed in favor of tokens - No new Stylelint violations for these files once Add Stylelint enforcement for design tokens, shadows, and transitions in Svelte components #2589 lands
- Code passes
bun run quality:fix - Tests pass (
bun run test:all)
Technical Specifications
Reference Files
- Token source of truth:
packages/desktop-app/src/app.css - Design spec:
../nodespace-docs/DESIGN.md - Files to fix:
packages/desktop-app/src/lib/design/components/diagnostic-panel.svelte,packages/desktop-app/src/lib/styles/noderef.css(the@media printblock specifically; the per-node-type accent hex values in this same file are handled by Unify node-type accent colors to a single primary-based system #2590, not this issue — coordinate to avoid duplicate edits)
Implementation Details
- This issue should be sequenced after or alongside Unify node-type accent colors to a single primary-based system #2590 (node-color unification) since both touch
noderef.css— check Unify node-type accent colors to a single primary-based system #2590's status before starting to avoid merge conflicts on the same file
Dependencies
- Unify node-type accent colors to a single primary-based system #2590 (node-color unification touches the same file,
noderef.css— coordinate to avoid conflicting edits) - Add Stylelint enforcement for design tokens, shadows, and transitions in Svelte components #2589 (Stylelint enforcement — provides the regression check for this fix; not a hard blocker to start)
Related Issues
- Replace hardcoded shadows and colors in modal/toast/banner components with design tokens #2591 (modals hardcoded colors/shadows — sibling remediation issue)
- Replace hardcoded status colors and phantom CSS variables in diagnostic-panel and invitations-inbox with design tokens #2592 (sync/pro pills hardcoded colors — sibling remediation issue)
Activity
mstomar125 commentedon Sep 17, 2026
Frontend baseline: 249 test files passed, 5134 tests passed.