Repository navigation
chore(ui): delete dead theme CSS and Studio's aliases, and name the dark ink-surface colours - #948
Merged
Merged
Conversation
…ark ink-surface colours
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Previews:
|
This branch was successfully deployed
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.

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-inkcomment (.docs-codeblock/.copy-btnno longer exist).Usage grep (
git grepover every app, package, committed HTML/MD/TS/TSX/JS, excluding theme.css itself):sk-btnsk-risesk-drawsk-spinsk-section__headsk-section__lead--checkercode-bgDynamic 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 buildssk-btn*,sk-riseorsk-section__*. The keptsk-section/sk-section__title/sk-pill*/sk-shell/sk-iconrules are still used.Studio aliases
Deleted the
:rootalias block inapps/studio/src/styles/app.cssand replaced uses:--mauve→--accent(14),--mauve-soft→--accent-wash(2),--muted-ink→--ink-3(4);--code-bghad no use. Studio's dark palette overrides these tokens onhtml: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.#25211c×2--ink-surface#3f3931×3--ink-line#403a31--ink-line#403a31→#3f3931(one shade)#d8d1c2--on-ink#d8d1c2×3--on-ink#8c8474--on-ink-muted#b8b0a1--on-ink-muted#b8b0a1→#8c8474(dimmer; 4.3:1 on#25211c, icon-only)#6c6559--on-ink-muted#6c6559→#8c8474(brighter; 4.8:1 on ink)Seven distinct values had to fit four tokens.
#6c6559is a button's only visible boundary; mapping it to--ink-linewould drop it to 1.6:1, so it joins the muted text tone instead.Proof
pnpm ci:localpasses. Browser check (primary): Icons detail and selection bar, Web footer and code blocks, Studio chat, Editor top bar on the PR previews.