Skip to content

Rework diagnostic-panel dark IDE theme and remaining noderef.css literals onto design tokens #2593

Closed

Description

@malibio

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.svelte to use the standard app.css token 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/#999 print-media literals in noderef.css with 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 with app.css tokens 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 print block no longer hardcodes #000/#999 — uses token references instead
  • Any other stray hex/rgba literals remaining in noderef.css after 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 print block 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

Dependencies

Related Issues

Activity

  1. mstomar125 commented on Sep 17, 2026

    @mstomar125
    Contributor

    Frontend baseline: 249 test files passed, 5134 tests passed.

  2. self-assigned this
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions