Skip to content

Update - Typography mapper line height, font weight and text transform options#727

Open
markmead wants to merge 1 commit into
mainfrom
feature/typography-mapper-options
Open

Update - Typography mapper line height, font weight and text transform options#727
markmead wants to merge 1 commit into
mainfrom
feature/typography-mapper-options

Conversation

@markmead

Copy link
Copy Markdown
Owner

Summary

Enhances the Typography Mapper tool with several mapping and control improvements.

  • leading-none for line height 1 — when line height equals font size, maps to leading-none / <font-size>/none instead of an arbitrary value, with an "Exact" breakdown badge and a clarified match description.
  • Letter spacing badge granularity — adds a Very Tight tier (<= -0.05em) so values like -0.1em no longer mislabel as just Tight; positive side made symmetric (Very Wide).
  • Font Weight control — new select that always drives the Preview, and emits --text-<name>--font-weight: <weight>; into the @theme config when a custom class name is set.
  • Text Transform control — new select that affects the Preview only (Tailwind has no --text-*--text-transform token), placed in the Preview panel header to make its display-only scope clear.
  • Slightly widened the top input controls.

Test plan

  • Set font size and line height equal → class shows text-…/none, breakdown shows leading-none
  • Enter letter spacing -10 → badge reads "Very Tight"
  • Change Font Weight with a custom class name set → --text-<name>--font-weight appears in config
  • Change Text Transform → only the Preview updates, never the class/config

🤖 Generated with Claude Code

…m options

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
hyperui cdc3397 Commit Preview URL

Branch Preview URL
Jun 20 2026, 08:12 PM

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