Skip to content

refactor(design): snap primitive spacing to --space-* token scale (audit #14, primitives) - #82

Merged
HomenShum merged 1 commit into
mainfrom
claude/brave-einstein-e177ab
Jun 29, 2026
Merged

HomenShum merged 1 commit into
mainfrom
claude/brave-einstein-e177ab

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

Tokenizes the named primitives (.r-btn, .r-modal(+backdrop), .r-room-field/.r-text-input, .r-input-stack): gap/padding 7/11/13/20/22px → var(--space-2/3/5/6) so a global density change is a one-line edit. Values equivalent or ±1px (visual no-op). Verified: .r-btn → gap 8px/padding 8px 12px, no console errors; build clean. The ~70-site long-tail (incl. irregular 9/10/14px) stays for a dedicated codemod. See docs/design/SURFACE_WEB_DESIGN_AUDIT.md.

🤖 Generated with Claude Code

… (audit #14, primitives)

Tokenize the named primitives the audit calls out (.r-btn, .r-modal, .r-modal-backdrop,
.r-room-field + .r-text-input, .r-input-stack): gap/padding 7/11/13/20/22px -> var(--space-2/3/5/6)
so a global density change becomes a one-line token edit. Values are equivalent or +/-1px (visual no-op).

Verified: .r-btn resolves to gap 8px / padding 8px 12px; buttons render; no console errors; build clean.
The long-tail ~70 micro-spacing sites (incl. irregular 9/10/14px) remain for a dedicated codemod.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@vercel

vercel Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
noderoom Ready Ready Preview, Comment Jun 29, 2026 2:56am

Request Review

@HomenShum
HomenShum merged commit f885c75 into main Jun 29, 2026
2 of 5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 754a3c4f Deployed Jun 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant