Repository navigation
fix: site-tokens - Measure the content width from the text column, and allow an override - #4013
Conversation
…w an override The crawler records running-text paragraph widths in the main column and the kind of page. The proposer uses single posts and pages, adds --layout content=<px>,wide=<px> and a reviewer decision when the content width is under 480px. Fixes GIT-2760 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
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. |
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>
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>
…760-site-tokens-content-width
…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
|
Merged the radius naming change from #4011 (bare size names in the Radius collection) into this branch. |
…760-site-tokens-content-width
…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
Refs GIT-2768. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s first On live TSP the terms page's 26 full-width paragraphs set the content width to 1200px. Each page now votes with its most common text width, blog posts win when the crawl has any, the median vote is used, and a width within 10% of the wide width becomes a reviewer decision. Refs GIT-2760. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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
…67-site-tokens-crawl-redirects
…2765-site-tokens-action-text-pairing
…git-2766-site-tokens-spacing-min-order
… the accent On live TSP, one blog link styled with font-family: a became the accent. A third family now needs at least 2% of the text elements (and at least 5) to take the accent role. Refs GIT-2761. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…site-tokens-action-colours
…-2763-site-tokens-setup-notes
…67-site-tokens-crawl-redirects
…git-2766-site-tokens-spacing-min-order
…2765-site-tokens-action-text-pairing
|
Updated after scaffold end-to-end test run 2 on live TSP (9 Nov). The content width came out at 1200px: the terms page's 26 full-width paragraphs outvoted everything else.
Live TSP now gives 848px, the blog column. Docs and the changelog entry are updated to match. |
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
…ont-roles fix: site-tokens - Clean font family names and add the accent and monospace roles
435a824
into
fix/git-2759-site-tokens-spacing-ladder
Bugfix Pull Request
Linked issues
Fixes #4006
Fixes #4021 (removes the committed
propose-tokens.ts.bak, GIT-2768)Linear: GIT-2760
Context
site-to-design-tokens(scaffold end-to-end test, finding S3). Stacked on fix: site-tokens - Use the whole spacing ladder before dropping a value #4012.Reproduction
Root Cause
propose-tokens.tshad no override either.Fix Summary
pelements (80 or more characters, in the main column, outside nav, footer, aside, lists and figures) and whether each page is a single or a listing.--layout content=<px>,wide=<px>overrides either width.SKILL.md,crawling.mdandproposal-review.mdsay to include a long text page and how to override.Verification
tsc --noEmitclean, ESLint no errors--layoutvalues are refused with a messageRisk & Rollback
Changelog
Added
Changed
Fixed
site-to-design-tokensmeasures the content width from running text on single posts and pages, takes--layout content=<px>,wide=<px>to override either width, and asks the reviewer to confirm a content width under 480px. (#4006)Removed
Checklist (Global DoD / PR)
🤖 Generated with Claude Code