Skip to content

docs: Update typography examples to use default instead of base#85

Merged
alexgrozav merged 4 commits intomainfrom
alexgrozav/typography-default-size
Jan 18, 2026
Merged

docs: Update typography examples to use default instead of base#85
alexgrozav merged 4 commits intomainfrom
alexgrozav/typography-default-size

Conversation

@alexgrozav
Copy link
Contributor

Summary

Updated typography utility documentation to use the default key instead of base when defining font sizes. The default key generates the base variable name without a suffix (e.g., fontSize instead of fontSizeBase, and CSS variable --font-size instead of --font-size--base).

Changes

  • Updated useFontSize examples to use default: '1rem'
  • Fixed variable destructuring (fontSize instead of fontSizeBase)
  • Updated CSS variable names and utility class references
  • Added clarification note to the knowledge base about default key behavior

Testing

Documentation only - no functional code changes.

🤖 Generated with Claude Code

…ont size

Changed useFontSize config from 'base' key to 'default' key, which generates
the base variable name without suffix (fontSize instead of fontSizeBase, and
--font-size CSS variable). Updated all examples and added clarification to
the knowledge base.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Jan 18, 2026

⚠️ No Changeset found

Latest commit: 50755e0

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

@vercel
Copy link

vercel bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
app-styleframe-dev-production Ready Ready Preview, Comment Jan 18, 2026 3:41pm
styleframe-dev-production Ready Ready Preview, Comment Jan 18, 2026 3:41pm
styleframe-storybook Error Error Jan 18, 2026 3:41pm

Request Review

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
The default key generates utility class _font-size not _font-size:default.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
…mple

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexgrozav alexgrozav merged commit f7683b0 into main Jan 18, 2026
11 of 12 checks passed
@alexgrozav alexgrozav deleted the alexgrozav/typography-default-size branch January 18, 2026 15:56
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