Skip to content

chore: Update font and line heights to latest design #8464

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devongovett
Copy link
Member

Setup for new adobe-clean-spectrum-vf font. Line heights are now calculated based on the font size, linearly interpolating between 1.3 and 1.15 as the font size grows. I did this with a calc rather than hard coding each line height for each font size and desktop/mobile scale. Font sizes are also now calculated based on the logarithmic scale, with an --s2-font-size-base variable controlling the base font size (14 on desktop, 17 on mobile).

@rspbot
Copy link

rspbot commented Jun 27, 2025

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants