/refactoring-ui-skills:apply-typography-scalefrom refactoring-ui-skills
Creates typographic hierarchy with hand-crafted font sizes, weights, and colors. Provides recommended scales for marketing vs. application contexts, line-height rules, and common failure modes.
Ships in refactoring-ui-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create clear typographic hierarchy using a hand-crafted set of font sizes, weights, and colors.
Hero: 48-60px, weight 700, line-height 1.1
H1: 36-40px, weight 700, line-height 1.2
H2: 28-32px, weight 600, line-height 1.3
Body: 16-18px, weight 400, line-height 1.6
Small: 14px, weight 400, line-height 1.6
Caption: 12px, weight 400, line-height 1.5
H1: 30-36px, weight 700
H2: 24px, weight 600
H3: 20px, weight 600
H4: 16px, weight 600
Body: 14-16px, weight 400
Small: 12-13px, weight 400
Inverse proportion to size:
em sizing compounds unpredictably in nested elements| Failure | Example | Fix |
|---|---|---|
| Em units | 1.25em parent, 0.875em child = 17.5px | Use px or rem |
| Micro-steps | 16px, 18px, 20px | 16px, 20px, 28px |
| Weight 300 | Light body text | Minimum 400 |
| Long lines | 100+ characters | Constrain to 35em |
| Uniform line-height | 1.5 for all | Vary by size |
See examples/typography-scale/ for scale implementations.
references/hand-crafted-scales.mdreferences/avoid-em-units.mdreferences/line-height-proportion.mdWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gnurio/refactoring-ui-plugin --plugin refactoring-ui-skills11 skills in this plugin
/establish-visual-hierarchyDetermine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies/build-color-paletteCreate comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades/apply-consistent-spacingUse systematic spacing with 25% minimum jumps, start with excess whitespace/design-button-hierarchyCreate clear primary/secondary/tertiary action distinctionsOther plugins' skills for the same job