Skip to content

GUI: remove dead/shadowing global CSS + honest token sweep #248

Closed

Description

@CameronBrooks11

Part of #246. Blocker. Dead and shadowing CSS reintroduces the copy-by-hand duplication the redesign existed to remove, and tokens lie or go unused.

Findings (verified)

  • [HIGH] Stale React-era global classes shadow the scoped shell. src/styles/layout.css:2-67 still defines .menubar, .menubar__brand/__menu/__dropdown, .statusbar, .statusbar__* — the scoped MenuBar/StatusBar components also define these via their own <style>. Declarations present only in the global rule silently leak (padding: 0 1rem, gap: 0.5rem, padding-right: 1.5rem, margin-right: 1rem, font-weights), injecting untokenized magic into the new rhythm. Two prior cleanup commits (0466142, 6da0fc3) missed this.
  • [LOW] Duplicate .statusbar__dirty / statusbar rules in layout.css:63 and scoped StatusBar.svelte — style the dirty marker in one place only.
  • [LOW] Dead / redundant color tokens tokens.css:103-105 — unused --color-blue-500 / --color-slate-500; duplicate success/error/warning name pairs (keep --status-* as the semantic layer).
  • [LOW] Unused dimension tokens tokens.css:149-150 — --panel-header-height / --layer-row-height defined but never used; panel headers hardcode 1.75rem. Either consume them or delete.
  • [LOW] Hardcoded rail widths shell/PrepareWorkspace.svelte:60-68 (and peers) — fixed inspector/console widths repeated as px; introduce --rail-width / --rail-width-right.
  • [LOW] Status-dot magic sizes ConnectionSection.svelte:98-99 (8px) vs StatusBar (7px) — standardize on one --dot-size token.

Acceptance

  • Delete the .menubar*/.statusbar* blocks from layout.css (keep .error-boundary); confirm the shell renders identically (the scoped components own these with tokens).
  • Remove the duplicate .statusbar__dirty block.
  • Remove dead tokens; consume or delete the unused dimension tokens; add --rail-width/--dot-size tokens and reference them.
  • Full gate (lint:css, lint:css:vars, check:svelte, test) + visual diff of menubar/statusbar before/after.

Activity

  1. added
    gui
    on Jun 27, 2026
  2. added a commit that references this issue on Jun 27, 2026
    d1a249b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions