Skip to content

revert(text): restore Atkinson Hyperlegible Next as sans-serif default - #38

Merged
winlp4ever merged 2 commits into
mainfrom
revert/sans-serif-atkinson
Aug 7, 2026
Merged

revert(text): restore Atkinson Hyperlegible Next as sans-serif default#38
winlp4ever merged 2 commits into
mainfrom
revert/sans-serif-atkinson

Conversation

@winlp4ever

Copy link
Copy Markdown
Owner

After testing the Hanken Grotesk default from #37, Atkinson Hyperlegible Next reads with more character, so this restores it as the built-in sans-serif stack.

Changes

  • packages/core/src/text/defaults.tsDEFAULT_FONT_STACKS['sans-serif'] back to Atkinson Hyperlegible Next (generic fallbacks unchanged).
  • examples/playground/index.html — Google Fonts <link> loads Atkinson again.
  • packages/core/tests/font-config.test.ts — default-stack assertions updated.

What's not reverted

The configureFonts() runtime API from #37 stays. Only the default face changes — anyone who prefers Hanken Grotesk can still opt in:

configureFonts({ family: { 'sans-serif': '"Hanken Grotesk", system-ui, sans-serif' } })

(That's still the illustrative example in the docs.)

Full core suite (359 unit), lint, typecheck pass.

…fault

Hanken Grotesk (#37) read as flatter in practice — Atkinson Hyperlegible
Next has more character, so restore it as the built-in sans-serif stack.
The configureFonts() API from #37 stays; only the default face changes,
so anyone who wants Hanken Grotesk can still opt in via configureFonts.
Playground font link + the default-stack test updated to match.
…ples

Revert #38 removed Hanken Grotesk from the codebase; the override examples
in the README + configureFonts/FontConfig doc-comments still referenced it,
which read as a stray leftover. Use Inter as a neutral example font.
@winlp4ever
winlp4ever merged commit bc283e9 into main Aug 7, 2026
4 checks passed
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.

1 participant