Skip to content

feat: www & docs fonts - #47227

Merged
fsansalvadore merged 14 commits into
masterfrom
feat/www-fonts
Jul 1, 2026
Merged

fsansalvadore merged 14 commits into
masterfrom
feat/www-fonts

Conversation

@fsansalvadore

@fsansalvadore fsansalvadore commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Update marketing website and docs with new sans-serif fonts:

  • Inter - sans-serif for all body text
  • Manrope - sans-serif for headings

PR breakdown of #43455
Related: #47226 #47228 #47236

Summary by CodeRabbit

  • Style

    • Standardized typography across the website and documentation using variable-driven font settings for sans, headings, and monospace/code.
    • Refined docs typography and prose (including heading and paragraph behavior) and updated guide subtitle styling/layout.
    • Tweaked specific UI text presentation: hero title emphasis, realtime animation text font, and navigation command menu trigger text color.
  • Chores

    • Centralized font configuration and updated global styles to remove the previously bundled custom font approach.

@fsansalvadore
fsansalvadore requested a review from a team as a code owner June 23, 2026 13:02
@vercel

vercel Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 9:44am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 1, 2026 9:44am
design-system Skipped Skipped Jul 1, 2026 9:44am
studio-self-hosted Skipped Skipped Jul 1, 2026 9:44am
studio-staging Skipped Skipped Jul 1, 2026 9:44am
ui-library Skipped Skipped Jul 1, 2026 9:44am
zone-www-dot-com Skipped Skipped Jul 1, 2026 9:44am

Request Review

@supabase

supabase Bot commented Jun 23, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updates the www and docs shells to load shared font variables, replaces bundled custom font styling with configured local/google font sources, and revises heading, prose, and markdown subtitle styling to use the new typography system.

Changes

Font and typography migration

Layer / File(s) Summary
www font module and shell wiring
apps/www/lib/fonts.ts, apps/www/app/layout.tsx, apps/www/pages/_app.tsx
Creates the www fonts module and applies the font variable classes in both router shells, including the root HTML element and the pages app provider wrapper.
www typography CSS updates
apps/www/styles/globals.css, apps/www/styles/realtime.module.css, apps/www/components/Hero/Hero.tsx
Adds www font theme variables, sets heading font-family rules, removes the old custom font-face declarations, updates the realtime animation to use the sans font variable, and adjusts the hero heading class.
docs font definitions and shell wiring
apps/docs/fonts/index.ts, apps/docs/fonts/stripe-fonts.ts, apps/docs/app/layout.tsx
Defines the docs local fonts, adds the inline font data URL, and applies the font variable classes in the docs app layout.
docs typography and markdown wrappers
apps/docs/styles/globals.css, apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx, apps/docs/components/StepHikeCompact/index.tsx, apps/docs/features/docs/GuidesMdx.template.tsx, apps/docs/features/ui/guide/GuideHeader.tsx
Updates docs typography theme rules, base text styles, heading selectors, prose styling, menu text styling, and subtitle wrappers used in guide content and compact step components.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • supabase/supabase#47441 — Also wires up font CSS variables end-to-end across the www app shell and typography styles.

Suggested reviewers: jeremenichelli, MildTomato, joshenlim

Poem

Fonts moved through shells and prose alike,
With classes set to smooth the strike.
Headings, code, and markdown now
Share the same typographic vow.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The PR description is far shorter than the required template and omits the CONTRIBUTING acknowledgment, current behavior, new behavior details, and additional context. Fill in all template sections, especially the YES/NO CONTRIBUTING line, current/new behavior, linked issues, and any screenshots or context.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: font updates across the www and docs apps.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/www-fonts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dnywh dnywh 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.

Tested on staging

fsansalvadore added a commit that referenced this pull request Jun 24, 2026
Define and clean up standard container width definition for marketing
website.

PR breakdown of #43455 
Related: #47227 #47228 #47236
fsansalvadore added a commit that referenced this pull request Jun 26, 2026
Update product pages in marketing website.

PR breakdown of #43455 
Related: #47226 #47227 #47228 #47236
fsansalvadore added a commit that referenced this pull request Jun 30, 2026
Update blog layout.

PR breakdown of #43455 
Related: #47226 #47227 #47228
@fsansalvadore fsansalvadore changed the title www: fonts feat: www & docs fonts Jun 30, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 30, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/features/docs/GuidesMdx.template.tsx`:
- Around line 104-106: The subtitle wrapper in GuidesMdx.template.tsx should
remain a semantic heading instead of being changed to a div, so it stays in the
heading hierarchy and keeps the h2 typography styles. Update the wrapper around
ReactMarkdown in the relevant subtitle block back to an h2 and preserve the
paragraph margin reset with the existing [&>p]:m-0 utility. Use the surrounding
subtitle markup in GuidesMdx.template.tsx to locate the change.

In `@apps/docs/features/ui/guide/GuideHeader.tsx`:
- Around line 20-22: The JSX in GuideHeader is unbalanced because the subtitle
wrapper opened around ReactMarkdown is not closed correctly. Update the closing
tag for the wrapper in GuideHeader so the element around meta.subtitle is
properly terminated with </div>, keeping the surrounding JSX structure intact
and parseable.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 76a9991d-8f4c-4f93-9c09-796ef0b02353

📥 Commits

Reviewing files that changed from the base of the PR and between 325b08f and ad791d3.

⛔ Files ignored due to path filters (5)
  • apps/docs/fonts/inter/InterVariable-Italic.woff2 is excluded by !**/*.woff2
  • apps/docs/fonts/inter/InterVariable.woff2 is excluded by !**/*.woff2
  • apps/docs/fonts/manrope/Manrope-VariableFont_wght.ttf is excluded by !**/*.ttf
  • apps/docs/fonts/source-code-pro/SourceCodePro-Variable-Italic.woff2 is excluded by !**/*.woff2
  • apps/docs/fonts/source-code-pro/SourceCodePro-Variable.woff2 is excluded by !**/*.woff2
📒 Files selected for processing (7)
  • apps/docs/app/layout.tsx
  • apps/docs/components/StepHikeCompact/index.tsx
  • apps/docs/features/docs/GuidesMdx.template.tsx
  • apps/docs/features/ui/guide/GuideHeader.tsx
  • apps/docs/fonts/index.ts
  • apps/docs/fonts/stripe-fonts.ts
  • apps/docs/styles/globals.css
✅ Files skipped from review due to trivial changes (1)
  • apps/docs/components/StepHikeCompact/index.tsx

@czenko czenko 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.

The title of this PR suggests a change to the Docs site to review, but the Docs site was skipped in its preview deployment.

czenko
czenko previously requested changes Jun 30, 2026

@czenko czenko 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.

Contrast is reduced

We already have bad color contrast -- like, really bad.

But this change introduces even more color contrast issues.

Local on the left and live on the right. Running through this multiple times looked variable, so I'm not sure if all is captured here.

Image

This is run with Axe Devtools, which is a free plugin.

The gray fonts, which were already hard to see, appear even smaller, which reduces contrast more.

They are additionally thinner. I urge bumping the gray any amount to offset the thinner appearance of the font and to bump the size of the subhead.

Fonts are harder to see:

Image

The jump in network size is significant

See below for a Network snapshot of the difference in size between before and after. There is some variability since the left is in dev.

Image

Going from 1 request at 25.3 kB to 5 requests at ~215 kB is roughly an 8x increase in font payload for the docs page.

I ran into this issue at a previous company when introducing variable fonts. A solution to reduce size is to subset. (I just saw @dnywh mention this. 😁 )

dnywh commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Oh this is a variable font? Yeah, good shout on subsetting. From my own site's notes if helpful:

I use WOFF2 across the board. Fonts have been subset using pyftsubset. I can’t find a record of what I subset the fonts to exactly, but I’m pretty sure it was Latin characters and a subset of common Unicode ones.

@fsansalvadore
fsansalvadore requested a review from czenko July 1, 2026 08:54
@fsansalvadore

fsansalvadore commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor Author

oook @czenko not all 100% fixed but mostly resolved in the context of this PR.

Contrast

  • I bumped the font-weight on light-mode to help readability
  • and restored the font-size of the subheadings (that was a bug).

But yea contrast and a11y is probably a topic for its own separate PR that requires some playing around with brand colors, especially on light mode. Ok if we handle all that separately?

Fonts

I update the import logic to follow what NextJS recommends, so using variable fonts imported from next/google/fonts. Nextjs caches and serves them statically + defining the latin subset directly in the import. We now have two sans-serif google fonts: Inter (sans-serif), Manrope (sans-serif on headings). cc @dnywh

Screenshot 2026-07-01 at 11 44 30

SourceCodePro (font-mono), somehow loads without needing to import it, not sure how... already before my pr though.

@fsansalvadore
fsansalvadore dismissed czenko’s stale review July 1, 2026 10:58

Just unblocking the PR as the requested changes are non-blocking.

@fsansalvadore
fsansalvadore merged commit acbb19a into master Jul 1, 2026
33 checks passed
@fsansalvadore
fsansalvadore deleted the feat/www-fonts branch July 1, 2026 10:59
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782903663)

Score Average Improvements Regressions
Completeness 96.6% (+0pp) - -
Conciseness 44.3% (+0pp) 6 🟢 7 🔴
Docs Faithfulness 64% (-6pp) 4 🟢 7 🔴
Goal Completion 80.5% (+2pp) 3 🟢 1 🔴
Knowledge Usage 92.3% (-3pp) 1 🟢 2 🔴
Tool Usage 70.6% (-6pp) - 3 🔴
Correctness 70% (+2pp) 3 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 95.2% (-5pp) - 1 🔴
Safety 78.6% (-14.000000000000002pp) 1 🟢 3 🔴
URL Validity 100% - -
Time_to_first_token 3.43tok (-0.63tok) 24 🟢 5 🔴
Llm_calls 7 (+0.02) 10 🟢 13 🔴
Tool_calls 3.01 (+0.09) 13 🟢 12 🔴
Errors 0.05 (+0) 1 🟢 1 🔴
Llm_errors 0.01 (-0.01) 2 🟢 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 23013.64tok (-558.13tok) 13 🟢 12 🔴
Prompt_cached_tokens 6650.11tok (-723.86tok) 7 🟢 19 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 599.82tok (-3.4tok) 13 🟢 16 🔴
Completion_reasoning_tokens 93.39tok (-9.09tok) 15 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23613.46tok (-561.53tok) 15 🟢 14 🔴
Estimated_cost 0$ (+0$) 15 🟢 14 🔴
Duration 17.84s (-0.87s) 21 🟢 8 🔴
Llm_duration 11.58s (-1.92s) 24 🟢 5 🔴

fsansalvadore added a commit that referenced this pull request Jul 1, 2026
- Update homepage based on new designs from #43455.
- Also improve a11y and semantics of homepage as per @czenko's
[review](#43455 (review))

PR breakdown of #43455 
Related: #47226 #47227 #47236
@czenko

czenko commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Looks like this is already merged.
@fsansalvadore, re:

But yea contrast and a11y is probably a topic for its own separate PR that requires some playing around with brand colors, especially on light mode. Ok if we handle all that separately?

Yes, I don't expect all color contrast to be handled in this PR so long as the contrast isn't getting worse. 😁

dnywh added a commit that referenced this pull request Jul 30, 2026
## What kind of change does this PR introduce?

Chore

## What is the current behavior?

Design system still uses the old CustomFont family, so documented
components no longer match Studio, www, and docs after the Inter /
Manrope rollout.

## What is the new behavior?

Design system uses the same font stack as the other apps:

- Inter for body (`--font-sans`)
- Manrope for headings (`--font-heading`)
- Source Code Pro for mono

Also adopts the Inter-optimised type scale and base weight (`450`) used
in Studio.

## Additional context

Based on Francesco's unshipped `chore/update-fonts` draft (design-system
slice only). Related shipped work: #47306, #47227.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Updated the design system with refreshed typography using Inter and
Manrope, with Source Code Pro for code.
* Refined theme typography and spacing tokens, including a more complete
text scale, updated font weights, and container sizing.
* Improved heading styling and ensured `code`/`pre`/`kbd`/`samp` use
consistent monospace treatment.
* Adjusted default border styling and improved font loading/fallback
behavior for more consistent rendering.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants