01-establish-visual-hi…
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors
$ npx -y skills add gnurio/refactoring-ui-plugin --skill 02-apply-typography-scale --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/02-apply-typography-scaleContext preview
The summary Claude sees to decide when to auto-load this skill.
Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors
name: apply-typography-scale description: Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors domain: ui-design skill-type: generative version: 1.0.0 prerequisites: - 01-establish-visual-hierarchy dependencies: [] input: - content_structure: array - base_size: number (default 16) - context: marketing | application | content output: - type_scale: array of sizes - weight_assignments: object - color_assignments: object
Create clear typographic hierarchy using a hand-crafted set of font sizes, weights, and colors.
1. **Hand-crafted, not mathematical** — Avoid modular scales with fractional pixels 2. **Use px or rem, never em** — Prevents compounding issues 3. **Minimum 25% jumps** — 16px → 20px (25%), not 16px → 18px (12.5%) 4. **Two weights only** — 400/500 normal, 600/700 bold 5. **Never < 400 for UI** — Too hard to read at small sizes
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:**
| 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.
Ten structured AI skills for evaluating and improving UI designs — covering visual hierarchy, typography, color, spacing, buttons, clutter, empty states, shadows, contrast, and grouping.
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Create comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades
Use systematic spacing with 25% minimum jumps, start with excess whitespace
Create clear primary/secondary/tertiary action distinctions
Remove unnecessary borders, backgrounds, shadows, decorations