Repository navigation
chore(gui): remove dead/shadowing CSS and sweep tokens - #254
Merged
Merged
Conversation
The redesign left React-era global CSS that shadowed the scoped shell, plus several dead or duplicate tokens. - Delete the .menubar*/.statusbar* blocks from layout.css. MenuBar.svelte and StatusBar.svelte already own these via scoped <style> with proper tokens; the globals only leaked untokenized magic spacing (padding: 0 1rem, gap: 0.5rem, padding-right: 1.5rem, margin-right: 1rem). Also removes the duplicate .statusbar__dirty. Only the .error-boundary group stays global. - Collapse the duplicate status name pairs to one canonical token each: drop --color-success-green / --color-error-red / --color-warning-orange (identical to --color-success / --color-error / --color-warning) and point the --status-* aliases at the canonical names. Keep the genuinely distinct shades still in use (--color-error-red-light, --color-warning-orange-hover, --color-warning-yellow) and --color-success-green-hover is dropped (unused). - Remove dead tokens --color-blue-500 / --color-slate-500 (0 uses) from all three theme blocks, and the unused --panel-header-height / --layer-row-height. - Add --rail-width / --rail-width-right and consume them in PrepareWorkspace and MachineWorkspace (left rail standardized to 300px across both), and --dot-size consumed by the status dots in ConnectionSection (was 8px) and StatusBar (was 7px). Part of #246. Closes #248.
Closed
6 tasks
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.
Closes #248. Part of epic #246 (post-redesign audit follow-ups). Blocker.
Problem
The redesign left React-era global CSS that shadowed the scoped shell components, plus dead/duplicate tokens — the copy-by-hand drift the consolidation pass existed to remove.
layout.css:2-67re-declared.menubar*/.statusbar*thatMenuBar.svelte/StatusBar.sveltealready define in scoped<style>. Declarations present only in the global rule leaked untokenized magic spacing into the new rhythm..statusbar__dirty; dead tokens; unused dimension tokens; magic rail widths and 7px-vs-8px dots.Fix
.menubar*/.statusbar*blocks fromlayout.css(verified both classes are owned by the scoped components). Only.error-boundarystays global.--color-success-green/-error-red/-warning-orangeremoved;--status-*aliases repointed). Kept the distinct shades still used (-red-light,-orange-hover,-warning-yellow); dropped unused--color-success-green-hover.--color-blue-500/--color-slate-500(all 3 theme blocks) and unused--panel-header-height/--layer-row-height.--rail-width/--rail-width-right(left rail standardized to 300px across Prepare and Machine — Machine was 320px) and--dot-size(consumed by both status dots).Verification
lint:css,lint:css:vars(all token refs resolve),check:svelte(0 errors),tsc, 316/316 tests ✓