Feature - Typography Mapper tool#721
Open
markmead wants to merge 16 commits into
Open
Conversation
Adds /tools/typography-mapper — a browser-based tool for mapping Figma px values (font-size + line-height) to Tailwind CSS classes. Includes live text preview, type scale visualisation, nearest Tailwind size cards, ratio badge, and a Tailwind v4 @theme config block for arbitrary values. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace text-gray-400/500 with text-gray-600 throughout (project rule) - Add ARIA live regions to config and nearest card copy buttons - Extract shared copyTextToClipboard helper, remove duplicated timer logic - Fix buildThemeConfig to use pxToRem() and direct pixel ratio for line-height - Simplify buildScaleTrackItems to use indexOf instead of findIndex - Remove overflow-hidden wrapper from preview text Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add CSS transitions using @starting-style for enter/exit animations on the skeleton, result, config, and nearest containers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…onents Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…page section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperui | fbc4562 | Commit Preview URL Branch Preview URL |
Jun 18 2026, 08:03 AM |
…/inline-flex conflict Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…config deduplication Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/tools/typography-mapper— enter font size, line height, and optional letter spacing from a design handoff to get the exact Tailwind CSS class or an arbitrary value fallback with a ready-to-paste@theme {}config blockstablestatus colour changed to green to distinguish fromupdated(blue)mb-4removed fromStatusBadgeon tool pages to fix double-spacing againstspace-y-6Test plan
/tools/typography-mapper— enter values that map to exact tokens, confirm config shows with comment and no Copy button@theme {}block is populatedStatusBadgecolours:stable= green,updated= blue,fresh= green🤖 Generated with Claude Code