Repository navigation
refactor(spacing): tokenize arbitrary odd-pixel drift, preserve dense micro-scale (audit #14) - #87
Merged
Merged
Conversation
… micro-scale (web-design audit #14) The audit framed 7/9/11/13px as drift to snap to the 8pt grid. On inspection that premise is partly wrong: compact chips/pills/tags run on a deliberate dense-UI micro-scale (2/5/6/10px, Attio/Linear-class) where 8pt snapping would bloat tight elements. So #14 is executed surgically: - Tokenize only the arbitrary odd-pixel values (7->--space-2, 9->--space-2, 11->--space-3, 13->--space-3), value-side of spacing props only (padding/margin/gap). 127 replacements, shorthand position preserved. - Preserve the intentional dense micro-scale (2/5/6/10) and >=2px snaps (14/18/22). - Exclude negative offsets (-7px avatar overlap; -var() is invalid CSS) and decimals. - No new tokens (would be unused) -- reuse the existing scale only. Build-clean; tokens resolve (--space-2=8px, --space-3=12px); dense surfaces visually unchanged (live-verified ?mode=memory, zero console errors). Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
HomenShum
added a commit
that referenced
this pull request
Jun 29, 2026
…PRs #71-#87) The demo-room-mobile baseline was last captured 2026-06-16 (6a86863), before the entire web-design audit program landed (~15 styles/layout commits). It was failing on a cumulative vertical reflow, not a functional break: actual render verified correct (all surfaces present, mask region intact). Desktop + blank-room already passed. Regenerated against the current served build; full design-baseline green (3/3). Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Web-design audit #14 — spacing, resolved with a correction to the audit's own premise
The audit framed
7/9/11/13/22pxas "drift to snap to the 8pt grid." On inspection that premise is partly wrong: the compact chips/pills/tags run on a deliberate dense-UI micro-scale (2/5/6/10px, Attio/Linear-class) where 8pt snapping would bloat tight elements — a regression, not a fix.So #14 was executed surgically:
--space-2, 9 to--space-2, 11 to--space-3, 13 to--space-3), value-side of spacing properties only (padding/margin/gap families) — 127 replacements, shorthand position preserved.-7pxavatar overlap —-var()is invalid CSS) and decimals.Verification:
vite buildpasses (22.49s, valid CSS); tokens resolve live (--space-2=8px,--space-3=12px); dense surfaces visually unchanged in?mode=memory; zero console errors. Audit doc updated with the resolution log — all 20 items now shipped.🤖 Generated with Claude Code