Repository navigation
fix: figma-tokens - Keep the declared system monospace stack - #4033
ZaredRogers merged 8 commits into
Conversation
The monospace variable is named Monospace and its declared stack starts with ui-monospace, so the name check failed and the mapper wrote "Monospace, sans-serif". A generic family names no font of its own, so keep its declared stack, and fall back to monospace for that role. Refs GIT-2771 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 44 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. |
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
|
This pull request is merged. |
…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>
Merge Protections🔴 2 of 2 protections blocking · waiting on ⛓️ dependency
🔴 ⛓️ Depends-On RequirementsWaiting for
This rule is failing.Requirement based on the presence of `Depends-On` in the body of the pull request
🔴 🚦 Auto-queueThis rule is failing.When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
…-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
…layout-widths fix: figma-tokens - Map content and wide width to settings.layout
5b77b17
into
fix/git-2770-figma-tokens-font-stacks
Bugfix Pull Request
Linked issues
Fixes #4029
Linear: GIT-2771
Context
figma-to-block-themeTokens mode, the monospace family. Found in scaffold end-to-end test run 2, step 3b (finding M2). Stacked on fix: figma-tokens - Build font stacks from the clean family name, not the raw @font-face name #4032 (GIT-2770), on fix: site-tokens - Keep spacing minimums in order #4024.Reproduction
ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace. GotMonospace, sans-serif.Root Cause
ui-monospace, so the name check failed and the mapper fell back to the name plussans-serif.Fix Summary
monospacerole falls back tomonospacerather thansans-serif.Verification
tsc --noEmitclean"Fira Code", monospaceRisk & Rollback
Changelog
Fixed
figma-to-block-themekeeps the declared system stack for a generic family such as Monospace. (Fixes fix: figma-tokens - Keep the declared system monospace stack #4029)🤖 Generated with Claude Code