uxui-components-buttons-cards
Installation
SKILL.md
Core UI Components — Buttons, Touch Targets, Segmented Controls, Icons & Cards
Overview
Provides exact structural anatomy, pixel dimensions, hierarchy rules, and interactive state matrices for the most frequently used UI components so they never look "junior" or break usability.
For all 14 unabridged lessons, read module-05-core-components.md.
1. Ultimate Button System Specification
A. Sizes, Padding & Typography (2:1 Horizontal-to-Vertical Rule)
| Size Tier | Height | Vertical × Horizontal Padding | Font Size / Line-Height / Weight | Icon Size & Gap | Typical Use Case |
|---|---|---|---|---|---|
Small (S) |
32–40px |
8–10px × 14–16px |
12–14px / 20px / Semibold 600 |
16px, gap 6px |
Dense tables, toolbars, card secondary actions |
Medium (M) |
44–48px |
12px × 20–24px |
15–16px / 24px / Semibold 600 |
20–24px, gap 8px |
Standard web & mobile primary/secondary CTAs |
Large (L) |
52–56px |
14–16px × 24–32px |
16–17px / 24px / Semibold 600 |
24px, gap 8px |
Mobile bottom CTAs (343px full-width), Marketing Hero |