Repository navigation
fix: site-tokens - Clean font family names and add the accent and monospace roles - #4014
Conversation
Names drop weight and style suffixes, turn underscores into spaces and are title-cased; the exact CSS stack is kept in the variable description. The proposal now has heading, body, accent and monospace, each marked live or default. figma-to-block-theme uses a declared stack as the fontFamily. Fixes GIT-2761 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 5 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. |
Action backgrounds take the anchor step when the anchor came from button fills, with hover one step darker. A default that fails its contrast pair moves to the nearest passing step and is recorded; failing live colours are listed with a passing alternative. Fixes GIT-2762 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a Before you start section: npm ci in the .github checkout, and npx puppeteer browsers install chrome if the launch fails (npm 11 blocks Puppeteer's install script). site-to-figma-components has the same note; figma-to-block-theme only needs npm ci. Fixes GIT-2763 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…61-site-tokens-font-roles # Conflicts: # skills/figma-to-block-theme/scripts/__tests__/figma-variables-to-theme-json.test.ts # skills/site-to-design-tokens/references/target-structure.md
…a third family With two families there is no accent variable, preset or Figma script entry, and the report says so. Monospace keeps its default. figma-to-block-theme writes only the roles that exist. Relates to GIT-2761 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…site-tokens-action-colours
…-2763-site-tokens-setup-notes
|
The accent font role is now created only when the site uses a third family. With two families there is no accent variable, preset or Figma script entry, and the report says "no accent font: the site uses two families". Monospace keeps its default. |
…61-site-tokens-font-roles # Conflicts: # skills/figma-to-block-theme/scripts/__tests__/figma-variables-to-theme-json.test.ts
…site-tokens-action-colours
…-2763-site-tokens-setup-notes
…61-site-tokens-font-roles # Conflicts: # skills/site-to-design-tokens/references/proposal-review.md
Live TSP writes Moret on 88 links and moret everywhere else, so the proposal added Moret as an accent. CSS family names are not case-sensitive; roles are now picked by lower-case name and named after the most common spelling. Refs GIT-2761. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…site-tokens-action-colours # Conflicts: # skills/site-to-design-tokens/SKILL.md
…-2763-site-tokens-setup-notes
…61-site-tokens-font-roles
…site-tokens-action-colours
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-2763-site-tokens-setup-notes
|
Updated after scaffold end-to-end test run 2 on live TSP (9 Nov). TSP should get no accent, but three things produced one:
Live TSP now gives Moret and Argesta Display, no accent, and default monospace. The test fixture's accent (Caveat) went from 4 to 8 elements so it stays above the minimum. |
The declared CSS stack starts with the live site's own @font-face name (moret, argesta_displayregular), which the theme's fontFace entries don't declare, so the fonts would not load. Keep the stack's fallbacks and lead with the family name instead. Refs GIT-2770 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…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
…layout-widths fix: figma-tokens - Map content and wide width to settings.layout
…monospace-stack fix: figma-tokens - Keep the declared system monospace stack
…font-stacks fix: figma-tokens - Build font stacks from the clean family name, not the raw @font-face name
…pacing-min-order fix: site-tokens - Keep spacing minimums in order
…ction-text-pairing fix: site-tokens - Pair the primary button text with the fill of the same buttons
…rawl-redirects fix: site-tokens - Record redirects in the crawl and skip pages that land on the same URL
…-setup-notes chore: site-tokens - Say which dependencies and browser the scripts need
…ction-colours fix: site-tokens - Use live action colours and pick passing defaults for semantic tokens
44c845e
into
fix/git-2760-site-tokens-content-width
Bugfix Pull Request
Linked issues
Fixes #4007
Linear: GIT-2761
Context
@font-facenames and only two font roles, so the export did not match the scaffold's four role slugs.site-to-design-tokens,figma-to-block-theme(scaffold end-to-end test, finding S4). Stacked on fix: site-tokens - Measure the content width from the text column, and allow an override #4013.Reproduction
headingMoret,bodyArgesta Display, plusaccentandmonospace. Got "headings moret, body argesta_displayregular" and no other roles.Root Cause
Fix Summary
regular,bold,italic), underscores to spaces, lower-case words title-cased. The stack stays exact.heading,body,accent,monospace) as Figma variablesFont-Families/Primary,Secondary,TertiaryandMonospace, each with the exact CSS stack in its description.accentcomes from a third family when the site uses one, else it defaults to the heading font (flagged for the reviewer).monospaceis live when a monospace stack is used, else the system stack. The report marks each role live or default.figma-to-block-themeuses aCSS stack:line in the variable description as thefontFamilywhen its first family matches the value.target-structure.md,proposal-review.mdandtokens-typography.mdupdated.Verification
tsc --noEmitclean for both, ESLint no errorsRisk & Rollback
typography.familiesinproposal.jsonchanges from strings to objects, so old proposal files need a re-run.Changelog
Added
Changed
Fixed
site-to-design-tokenscleans font names (argesta_displayregularbecomes Argesta Display), keeps the exact CSS stack, and outputs theheading,body,accentandmonospaceroles, marking each as live or default.figma-to-block-themeuses the stack. (#4007)Removed
Checklist (Global DoD / PR)
🤖 Generated with Claude Code