Skip to content

fix: add system-ui fallback to --font-sans for better non-Latin script rendering#28489

Open
sadeqhub wants to merge 1 commit intocalcom:mainfrom
sadeqhub:fix/font-sans-system-ui-fallback-v2
Open

fix: add system-ui fallback to --font-sans for better non-Latin script rendering#28489
sadeqhub wants to merge 1 commit intocalcom:mainfrom
sadeqhub:fix/font-sans-system-ui-fallback-v2

Conversation

@sadeqhub
Copy link

What does this PR do?

Adds system-ui as a fallback in the --font-sans CSS variable definition.

Before:

--font-sans: Inter, Inter Fallback;

After:

--font-sans: Inter, Inter Fallback, system-ui;

Why?

When Inter doesn't cover a character (e.g. Arabic, Hebrew, Thai, CJK scripts), the browser falls all the way back to the browser's default serif or sans-serif, which varies wildly across operating systems and often looks inconsistent or broken.

system-ui is the OS's native UI font — on macOS it's San Francisco, on Windows it's Segoe UI, on Android it's Roboto. It's a well-supported, intentional fallback that keeps the visual style coherent when Inter's glyph coverage runs out.

Changes

  • apps/web/app/layout.tsx — inline :root style block (app router)
  • apps/web/components/PageWrapper.tsx — inline :root style block (pages router)

Testing

  1. Set your browser or OS language to Arabic (or any non-Latin script)
  2. Visit any booking page
  3. Confirm text renders with the OS UI font instead of the browser default fallback

Checklist

  • Self-review completed
  • No new dependencies added
  • Two-line change, no functional logic affected

@sadeqhub sadeqhub requested review from a team as code owners March 18, 2026 16:46
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Mar 18, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

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

Labels

community Created by Linear-GitHub Sync size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants