Repository navigation
fix: figma-tokens - Map content and wide width to settings.layout - #4034
Conversation
The Layout collection's --wp--custom--layout--content-size and wide-size variables landed in settings.custom.layout with no unit, and settings.layout was never set, so the theme kept the scaffold's widths. Map them, and core's --wp--style--global-- names, to contentSize and wideSize in px. Refs GIT-2772 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export created brand, primary, cta, neutral, and figma-to-block-theme keeps the Figma order, so the theme palette was out of convention. Create neutral, primary, brand, cta instead. Refs GIT-2773 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 seconds. View limit details
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This pull request is merged. |
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
…resets The scan walked node_modules, vendor, build and .agents, so on a scaffold-generated theme it took over 2 minutes and its report was almost all false hits. Skip those folders (with --exclude for more), add border-radius to the preset types, suggest the nearest step for bare numeric ladders, and add unit tests. Refs GIT-2774 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eScript Agent tooling is TypeScript with Jest tests beside the script. Replace find_orphaned_presets.py and its unittest tests with find-orphaned-presets.ts (registry loader, slug suggester and scanner classes, file system injected) and Jest tests at 80% thresholds. Add npm run test:theme-orphaned-refs. Behaviour matches the previous commit. Refs GIT-2774 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-skip-dependencies fix: orphaned-refs - Skip dependency, build and agent folders when scanning a theme
…alette-order fix: site-tokens - Export the palette ramps in the LightSpeed order
958d605
into
fix/git-2771-figma-tokens-monospace-stack
Bugfix Pull Request
Linked issues
Fixes #4030
Linear: GIT-2772
Context
figma-to-block-themeTokens mode, the Layout collection. Found in scaffold end-to-end test run 2, step 3b (finding M3). Stacked on fix: figma-tokens - Keep the declared system monospace stack #4033 (GIT-2771), on fix: figma-tokens - Build font stacks from the clean family name, not the raw @font-face name #4032 and fix: site-tokens - Keep spacing minimums in order #4024.Reproduction
settings.layoutwithcontentSize: 848pxandwideSize: 1232px. Got nosettings.layout, andsettings.custom.layoutwith unitless"848"and"1232".Root Cause
--wp--custom--layout--content-sizeandwide-sizeas ordinary custom properties, and had no layout target.Fix Summary
--wp--style--global--content-sizeandwide-size, now map tosettings.layout.contentSizeandwideSize. Numbers become px, and strings keep their unit. A custom value that aliases a width refers to core's variable. The report counts layout values.tokens-spacing.mddocuments it.Verification
tsc --noEmitcleansettings.layout, and nothing insettings.custom.layoutRisk & Rollback
Changelog
Fixed
figma-to-block-thememaps the content and wide width variables tosettings.layoutin px. (Fixes fix: figma-tokens - Map content and wide width to settings.layout #4030)🤖 Generated with Claude Code