Repository navigation
docs: design tokens, warm palette and Mona Sans variable - #64934
Conversation
Move colour, font and Starlight variable definitions out of custom.css into a new tokens.css with primitive, semantic and Starlight-mapping layers. Values are unchanged apart from merging dark-mode text #f0f6fc into #f6f8fa. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kens Collapse duplicated dark/light rules into single rules that read semantic tokens, and drop the !important overrides they relied on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replace the 'Light Theme' override block and per-theme duplicates with single rules that read semantic tokens. Unify link and nav colours, fix the Firefox scrollbar using dark colours in light mode, and remove the unused .experimental-badge and .hero-preview-callout styles. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collapse per-theme duplicates into single token-driven rules, add status colour tokens, and remove dead aside border/::before rules and the !important overrides Starlight's cascade layers make unnecessary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Swap the GitHub cool greys for warm stone neutrals, flatten the page background, remove the purple landing glow, make links purple, add coral as a complementary accent token, and replace the gradient hero buttons with ink-on-paper link buttons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ze axes) Replace the static Regular/Bold files with the official v2.0.27 variable webfonts (upright + italic) so intermediate weights render properly, and include the OFL licence the fonts README already referenced. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Moves the token-layer changes made while building the landing page and site chrome down into foundations: fluid type scale, single divider colour for all hairlines, raised-surface tokens, the .aw-tone-dark scope, the softer purple ramp and the 14px --aw-text-ui size for compact chrome. Drops the unused --aw-landing-glow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Visual Regression Check
Result: Could not compare. Every request to `(host.docker.internal/redacted) returned a 403 "Access Denied" page from the sandbox proxy (squid). The screenshots show that error page, not the docs site. I did not try to bypass the proxy. Accessibility: Not assessed. The snapshots contain only the proxy error page. To fix this, allow Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "clients2.google.com"
- "host.docker.internal"See Network Configuration for more information.
|
…urs and soft shadow Co-Authored-By: Claude Opus 5.5 <[email protected]>
Visual Regression Check: errorThe sandbox proxy returned Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "clients2.google.com"
- "host.docker.internal"See Network Configuration for more information.
|
|
✅ Test Quality Sentinel completed test quality analysis. No test files were added or modified in this PR. PR #64934 contains only documentation changes (design tokens, warm palette, Mona Sans variable fonts). Test Quality Sentinel skipped.
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The homepage glow references an undefined token, and the token-layer contract has additional completeness and layering issues.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Introduces the design-token foundation for the documentation site’s new palette and variable typography.
Changes:
- Adds semantic theme, typography, status, surface, and Starlight tokens.
- Migrates site styling to the token layer.
- Replaces static Mona Sans fonts with variable upright and italic fonts.
| File | Description |
|---|---|
docs/src/styles/tokens.css |
Defines the new design-token system. |
docs/src/styles/custom.css |
Migrates site styles onto tokens. |
docs/src/components/ThemeToggle.astro |
Uses tokenized theme colors. |
docs/src/components/CustomHead.astro |
Preloads the variable font. |
docs/astro.config.mjs |
Loads tokens before custom styles. |
docs/public/fonts/README.md |
Documents variable font assets. |
docs/public/fonts/MonaSans-LICENSE.txt |
Adds the font license. |
docs/public/fonts/MonaSansVF.woff2 |
Adds the upright variable font. |
docs/public/fonts/MonaSansVF-Italic.woff2 |
Adds the italic variable font. |
docs/public/fonts/MonaSans-Regular.woff2 |
Removes the static regular font. |
docs/public/fonts/MonaSans-Bold.woff2 |
Removes the static bold font. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| linear-gradient(180deg, rgba(130, 80, 223, 0.06), transparent 38%); | ||
| background-size: 100% 100%, 100% 100%, 100% 100%; | ||
| inset: 0; | ||
| background: var(--aw-landing-glow); |
There was a problem hiding this comment.
Added separate light and dark --aw-landing-glow semantic gradients in docs/src/styles/tokens.css. Fixed in f7b32b8.
| background-color: #2ea043; | ||
| color: #ffffff; | ||
| background-color: var(--aw-color-success); | ||
| color: var(--aw-gray-0); |
There was a problem hiding this comment.
Added --aw-color-text-on-status per theme and switched the badge to use it. Fixed in f7b32b8.
| :root { | ||
| --aw-icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z'/%3E%3C/svg%3E"); | ||
| --aw-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z'/%3E%3Cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z'/%3E%3C/svg%3E"); | ||
| --aw-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E"); |
There was a problem hiding this comment.
Added the promised --aw-icon-tip, --aw-icon-note, --aw-icon-caution, and --aw-icon-danger masks in docs/src/styles/tokens.css. Fixed in f7b32b8.
|
@copilot
|
Co-authored-by: gh-aw-bot <[email protected]>
…, one dark block for :root and .aw-tone-dark, accent-rgb matches the accent, radius/motion/focus/code tokens, global focus ring uses the accent with no forced radius Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # docs/astro.config.mjs # docs/src/styles/custom.css
|
🎉 This pull request is included in a new release. Release: |


Adds a design-token layer for the docs site and moves existing styles onto it, with a warm stone neutral palette, a softer purple accent, a coral complement and Mona Sans variable fonts. Layout is unchanged; this is the palette and type shift only.
Part of a stacked series of 4: 1. foundations (this PR) → 2. readability → 3. landing → 4. chrome.
What changed
Tokens (
docs/src/styles/tokens.css)--aw-text-uitoken for compact chrome.--aw-icon-link,--aw-icon-copy,--aw-icon-checkand the aside icons.--aw-color-callout-{tip,note,caution,danger}, with callout primitives behind them.--aw-shadow-soft, a subtle shadow for raised surfaces..aw-tone-darkscope for dark surfaces inside a light page.Styles (
docs/src/styles/custom.css)Fonts
astro.config.mjs,CustomHead.astroandThemeToggle.astroupdated to match.Screenshots
Before is the base of this PR, after is this branch. Same URL, viewport and theme.
Docs page, light
Docs page, dark
Code and inline code, light
Landing page (old layout), light
Mobile (375px)
Notes for reviewers
🤖 Generated with Claude Code