Skip to content

feat: custom font size and type - #3649

Merged
JammingBen merged 1 commit into
mainfrom
feat/custom-font-size-type
Oct 12, 2026
Merged

JammingBen merged 1 commit into
mainfrom
feat/custom-font-size-type

Conversation

@JammingBen

Copy link
Copy Markdown
Member

Add support for new designTokens in theme.json:

  • fontSize: root font size (e.g. 0.875rem), scales all rem-based sizes
  • fontSource: URL of a font file, registered under the first entry of fontFamily

The font source is meant for font files served from the same origin, not for external fonts (e.g. via CDN). It needs to be a variable font, otherwise bold text renders at regular weight.

New designTokens in theme.json:
- fontSize: root font size (e.g. 0.875rem), scales all rem-based sizes
- fontSource: URL of a font file, registered under the first entry of
  fontFamily

The font source is meant for font files served from the same origin, not
for external fonts (e.g. via CDN). It needs to be a variable font,
otherwise bold text renders at regular weight.

@AlexAndBear AlexAndBear left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JammingBen
JammingBen merged commit 0083f44 into main Oct 12, 2026
32 checks passed
@JammingBen
JammingBen deleted the feat/custom-font-size-type branch October 12, 2026 12:28
openclouders pushed a commit that referenced this pull request Oct 12, 2026
@openclouders openclouders mentioned this pull request Oct 12, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants