Skip to content

Convert typography from px to rem for zoom accessibility#41

Merged
BunsDev merged 3 commits into
mainfrom
chore/rem-typography
Jul 9, 2026
Merged

Convert typography from px to rem for zoom accessibility#41
BunsDev merged 3 commits 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

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 9, 2026 6:30am
coven-landing Ready Ready Preview Jul 9, 2026 6:30am

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;
BunsDev and others added 3 commits July 9, 2026 01:13
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>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BunsDev
BunsDev force-pushed the chore/rem-typography branch from 8688d35 to 7f7edbd Compare July 9, 2026 06:30
@BunsDev
BunsDev merged commit ebf8e4c into main Jul 9, 2026
1 of 2 checks passed
@BunsDev
BunsDev deleted the chore/rem-typography branch July 9, 2026 06:30
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