Skip to content

chore(ui): delete dead theme CSS and Studio's aliases, and name the dark ink-surface colours - #948

Merged
anandpant merged 1 commit into
mainfrom
q51-theme-dead-css
Dec 6, 2026
Merged

anandpant merged 1 commit into
mainfrom
q51-theme-dead-css

Conversation

@anandpant

@anandpant anandpant commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Q51 (pass-4 #4, #5). CSS only; no behaviour outside styling.

Deleted from packages/editor-surface/src/theme.css

.sk-btn (+ :hover, :active, :focus-visible, --primary, --primary:hover, --accent, --ghost, --ghost:hover), .sk-rise, @keyframes sk-rise/sk-draw/sk-spin, .sk-section__head, .sk-section__lead, --checker, and the stale --code-ink comment (.docs-codeblock/.copy-btn no longer exist).

Usage grep (git grep over every app, package, committed HTML/MD/TS/TSX/JS, excluding theme.css itself):

name other references
sk-btn none
sk-rise none
sk-draw none
sk-spin none
sk-section__head none
sk-section__lead none
--checker none
code-bg only its own Studio definition

Dynamic class names: the only sk- template string in TSX is `sk-pill__dot ${meta.dot}` (apps/editor/src/components/workspace-top-bar.tsx:42); no code builds sk-btn*, sk-rise or sk-section__*. The kept sk-section/sk-section__title/sk-pill*/sk-shell/sk-icon rules are still used.

Studio aliases

Deleted the :root alias block in apps/studio/src/styles/app.css and replaced uses: --mauve → --accent (14), --mauve-soft → --accent-wash (2), --muted-ink → --ink-3 (4); --code-bg had no use. Studio's dark palette overrides these tokens on html:root, the same element the aliases were declared on, so resolved colours are identical in light and dark.

New theme tokens for dark ink surfaces

--ink-surface: #25211c, --ink-line: #3f3931, --on-ink: #d8d1c2, --on-ink-muted: #8c8474, used on all 13 hand-copied lines.

where old new token value change
Icons dark preview bg (card + detail), plate on light surface #25211c ×2 --ink-surface none
Icons dark preview border, details hover bg, pack strip dark border #3f3931 ×3 --ink-line none
Icons selection bar border #403a31 --ink-line #403a31 → #3f3931 (one shade)
Icons selection bar count text #d8d1c2 --on-ink none
Web footer text, footer links, footer GitHub link #d8d1c2 ×3 --on-ink none
Web footer base line #8c8474 --on-ink-muted none
Icons card details icon on dark preview #b8b0a1 --on-ink-muted #b8b0a1 → #8c8474 (dimmer; 4.3:1 on #25211c, icon-only)
Icons selection bar button border #6c6559 --on-ink-muted #6c6559 → #8c8474 (brighter; 4.8:1 on ink)

Seven distinct values had to fit four tokens. #6c6559 is a button's only visible boundary; mapping it to --ink-line would drop it to 1.6:1, so it joins the muted text tone instead.

Proof

pnpm ci:local passes. Browser check (primary): Icons detail and selection bar, Web footer and code blocks, Studio chat, Editor top bar on the PR previews.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@anandpant anandpant added the preview Deploy PR previews for the affected apps label Dec 6, 2026
@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Previews: deleted

Workflow run

@anandpant
anandpant merged commit 43bab16 into main Dec 6, 2026
12 checks passed
@anandpant
anandpant deleted the q51-theme-dead-css branch December 6, 2026 07:22

This branch was successfully deployed

1 active deployment
staging — 77519c40 Deployed Dec 6, 2026 by anandpant via cleanup-preview #2242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Deploy PR previews for the affected apps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant