Skip to content

docs: design tokens, warm palette and Mona Sans variable - #64934

Merged
MaggieAppleton merged 12 commits into
mainfrom
design/1-foundations
Oct 2, 2026
Merged

MaggieAppleton merged 12 commits into
mainfrom
design/1-foundations

Conversation

@MaggieAppleton

@MaggieAppleton MaggieAppleton commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

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)

  • Warm stone neutrals, a softer purple accent ramp and a coral complement (light-theme coral darkened to 5.2:1 text contrast).
  • Fluid type scale, one divider colour, raised-surface tokens and a 14px --aw-text-ui token for compact chrome.
  • Icon mask tokens: --aw-icon-link, --aw-icon-copy, --aw-icon-check and the aside icons.
  • Readable light-mode status colours, built on new green-7, amber-7, red-6 and blue-6 primitives.
  • Callout colour tokens --aw-color-callout-{tip,note,caution,danger}, with callout primitives behind them.
  • --aw-shadow-soft, a subtle shadow for raised surfaces.
  • .aw-tone-dark scope for dark surfaces inside a light page.

Styles (docs/src/styles/custom.css)

  • Page background, glow, header, content, links, nav, hero, sidebar, TOC, pagination, asides, buttons, hr, kbd, focus, video and theme toggle now read from tokens (net about 1,000 fewer lines).

Fonts

  • Replaced the static Mona Sans Regular/Bold with the variable fonts (weight, width and optical-size axes), plus the licence file and README update. astro.config.mjs, CustomHead.astro and ThemeToggle.astro updated to match.

Screenshots

Before is the base of this PR, after is this branch. Same URL, viewport and theme.

Docs page, light

Before After
Before: overview, light After: overview, light

Docs page, dark

Before After
Before: overview, dark After: overview, dark

Code and inline code, light

Before After
Before: frontmatter reference, light After: frontmatter reference, light

Landing page (old layout), light

Before After
Before: landing, light After: landing, light

Mobile (375px)

Before After
Before: overview, mobile After: overview, mobile

Notes for reviewers

  • Later PRs in the stack (readability, landing, chrome) consume these tokens, including the icon masks, status and callout colours, soft shadow and UI text size, so some tokens are not used yet in this PR.
  • The landing page keeps its old layout here; the rebuild is in PR 3.
  • The mobile screenshot shows the paragraph under "What is an agentic workflow?" splitting after the link. It looks like a pre-existing rendering quirk, not something this PR introduces.
  • Mona Sans variable files are larger (about 300 KB each) than the old static files (about 50 KB each).

🤖 Generated with Claude Code

MaggieAppleton and others added 9 commits October 2, 2026 06:59
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]>
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]>
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]>
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression Check

Page Viewport Status
/gh-aw/ Mobile 375×812 error
/gh-aw/ Tablet 768×1024 error
/gh-aw/ Desktop 1440×900 error

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 host.docker.internal:4321 through the firewall for this workflow.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • clients2.google.com
  • host.docker.internal

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "clients2.google.com"
    - "host.docker.internal"

See Network Configuration for more information.

Generated by 👁️ Visual Regression Checker for #64934 · copilot · auto · 11.4 AIC · ⌖ 5.65 AIC · ⊞ 7.6K · ◷

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression Check: error

The sandbox proxy returned 403 Access Denied for `(host.docker.internal/redacted) so mobile (375x812), tablet (768x1024) and desktop (1440x900) screenshots all failed, and accessibility snapshots captured only the proxy error page. The firewall allowlist appears to exclude the docs server host; I did not bypass it. The workflow network/proxy-bypass settings need a fix.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • clients2.google.com
  • host.docker.internal

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "clients2.google.com"
    - "host.docker.internal"

See Network Configuration for more information.

Generated by 👁️ Visual Regression Checker for #64934 · copilot · auto · 16.3 AIC · ⌖ 7.48 AIC · ⊞ 7.6K · ◷

@MaggieAppleton
MaggieAppleton marked this pull request as ready for review October 2, 2026 09:16
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:17
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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.

🧪 Test quality analysis by Test Quality Sentinel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Medium severity · 2 Low severity

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.

Comment thread docs/src/styles/custom.css Outdated
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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added separate light and dark --aw-landing-glow semantic gradients in docs/src/styles/tokens.css. Fixed in f7b32b8.

Comment thread docs/src/styles/custom.css Outdated
background-color: #2ea043;
color: #ffffff;
background-color: var(--aw-color-success);
color: var(--aw-gray-0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added --aw-color-text-on-status per theme and switched the badge to use it. Fixed in f7b32b8.

Comment on lines +365 to +368
: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");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot
Quick triage nudge: please refresh this branch if needed, review any outstanding feedback/checks, and run the skill to move this PR toward merge readiness.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 12.3 AIC · ⌖ 8.68 AIC · ⊞ 9.7K · ◷
Comment /souschef to run again

…, 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]>
@MaggieAppleton
MaggieAppleton merged commit 360b7a1 into main Oct 2, 2026
9 checks passed
@MaggieAppleton
MaggieAppleton deleted the design/1-foundations branch October 2, 2026 17:01
MaggieAppleton added a commit that referenced this pull request Oct 2, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	docs/astro.config.mjs
#	docs/src/styles/custom.css
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.90.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants