Skip to content

Conversation

@unekinn
Copy link
Contributor

@unekinn unekinn commented Sep 11, 2025

Summary

Implements modular font scale as in this PoC for Figma and CSS.

Custom, native CSS formula for the type of font scale described in Tim Brown's More Meaningful Typography

The formula allows setting the wanted body font size with --ds-font-scale-base and stretching or squeezing the scale with --ds-font-scale-ratio

TODO:

  • option to generate static values instead of formulas? Would be useful if someone using Designsystemet wants very specific font size values
  • detect when static values are needed

Checks

@changeset-bot
Copy link

changeset-bot bot commented Sep 11, 2025

⚠️ No Changeset found

Latest commit: cd46c38

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 11, 2025

Preview deployments for this pull request:

storybook - 25. Sep 2025 - 16:00

www - 22. Sep 2025 - 10:31

@unekinn unekinn force-pushed the feat/modular-font-size-scale branch 3 times, most recently from c9c09c3 to 9920470 Compare September 22, 2025 08:29
@unekinn unekinn force-pushed the feat/modular-font-size-scale branch from 9920470 to cd46c38 Compare September 25, 2025 13:58
@unekinn unekinn mentioned this pull request Nov 21, 2025
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