Skip to content

Convert typography from px to rem for zoom accessibility#41

Open
BunsDev wants to merge 1 commit into
mainfrom
chore/rem-typography
Open

Convert typography from px to rem for zoom accessibility#41
BunsDev wants to merge 1 commit into
mainfrom
chore/rem-typography

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 7, 2026

Copy link
Copy Markdown
Member

Fresh re-application of the px→rem typography conversion (originally ec467c7 on the now-deleted feat/section-overhaul-compare stack, which never landed via PRs #32#36).

  • Converts all 125 font-size px values to rem (÷16), including inside clamp() — vw midpoints preserved
  • Now also covers Compare.astro, which the original commit intentionally skipped while the compare redesign was in flight
  • Structural dimensions (padding, gaps, borders) stay px
  • Verified: pnpm build + npm run check pass

Browser font-size preferences now scale all type (values verified
identical at 16px root). Structural dimensions stay px. Fresh pass off
current main covering all sections, including Compare.astro which was
skipped in the original in-flight conversion.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 7, 2026 11:33
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
coven Ready Ready Preview Jul 7, 2026 11:33am
coven-landing Ready Ready Preview Jul 7, 2026 11:33am

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.

Pull request overview

This PR updates the landing site’s typography to use rem instead of px for font-size, improving accessibility by allowing text to scale with users’ default font settings while keeping non-typographic layout dimensions in px.

Changes:

  • Converted font-size values from px to rem across global styles and key Astro components/pages (including clamp() endpoints).
  • Extended the conversion to Compare.astro (previously excluded).
  • Updated responsive typography overrides (media queries) to match the new rem sizing.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/styles/global.css Converts global typography to rem (including clamp() endpoints) and updates responsive font sizing.
src/pages/terms.astro Converts terms page typography font-size values to rem.
src/pages/privacy.astro Converts privacy page typography font-size values to rem (including table text).
src/components/Testimonial.astro Converts trust strip typography font-size values to rem, including a mobile override.
src/components/HowItWorks.astro Converts rail label/status typography font-size values to rem.
src/components/Compare.astro Converts compare UI typography font-size values to rem throughout headings, pills, and details.
src/components/Architecture.astro Converts architecture diagram/tooltip typography font-size values to rem, including responsive tooltip sizing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/styles/global.css
Comment on lines 765 to 768
font-family: var(--mono);
font-size: 9.5px; font-weight: 600;
font-size: 0.59375rem; font-weight: 600;
line-height: 14px;
letter-spacing: 0.14em; text-transform: uppercase;
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.

2 participants