Back to skills
SKILL.md
Uxui Components Buttons Cards
ASecurityDesign and code production-ready UI Buttons, Touch Targets (Thumb Zone), Segmented Controls, Icons, Cards, and core interactive components with exact pixel anatomy and 6 interactive states. Use when building component libraries, buttons, action bars, segmented tabs, icon systems, or card grids in React, Tailwind, CSS, or Figma.
- 3 stars
- 0 votes
- 0 copies
- 4 views
- Added December 1, 2026
Works with
Security analysis
100/100npx -y skills add BlackOwl242/uxui-studio --skill uxui-components-buttons-cards --agent claude-codeAre you the author of Uxui Components Buttons Cards?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackowl242-uxui-components-buttons-cards)---
name: uxui-components-buttons-cards
description: >-
Design and code production-ready UI Buttons, Touch Targets (Thumb Zone), Segmented Controls, Icons, Cards, and core interactive components with exact pixel anatomy and 6 interactive states. Use when building component libraries, buttons, action bars, segmented tabs, icon systems, or card grids in React, Tailwind, CSS, or Figma.
---
# 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](./references/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 |
### B. Hierarchy & Placement Rules
1. **One Filled Button Per View**: Only the single most important action gets the solid **Filled Primary** style.
2. **Use Style, Not Size, for Hierarchy**: Secondary (`Outline / Tonal Surface`) and Tertiary (`Ghost / Text Link`) buttons paired beside a Primary button must share the **same height** (`e.g., 48px`), differentiated by fill/border weight rather than shrinking secondary buttons into awkward mismatched heights.
3. **Action Placement**:
- Side-by-side horizontal dialog/form footer: `[Cancel (Left)]` · `[Primary Action (Right)]`.
- Stacked mobile bottom buttons: Primary Filled on **top** (or pinned above Home Indicator), Secondary/Cancel **below**.
4. **Corner Radius**: Sharp/Editorial `0–4px` · Modern SaaS/App `8–12px` · Friendly Pill `9999px` (`>= 40px`). Match input/card radius family across the entire product!
5. **Mandatory 6 Interactive States**: `Default` · `Hover` (subtle brightness/elevation shift) · `Active / Pressed` (`scale(0.98)` or darker shade) · `Focused` (`2px` offset focus ring) · `Loading / Progress` (inline spinner, lock width, disable double-submit) · `Disabled` (`40–50%` opacity or muted surface, `cursor-not-allowed` — prefer explaining *why* or keeping enabled with validation feedback when clearer).
6. **Button UX Copywriting**:
- **Start with an action verb + object** (`Create project`, `Export CSV`, `Delete account`), `1–2` words (`<= 3` max), **strictly 1 line** (`whitespace-nowrap`), `Sentence case` or `Title Case`.
- **Ban `"OK"`, `"Yes"`, `"No"`, `"Submit"`**: In destructive dialogs, match the heading verb (`Delete 4 files?` -> `[Cancel]` `[Delete files]` in semantic danger red).
---
## 2. Touch Targets & Thumb Zone (`44×44pt` / `48×48dp`)
- **Invisible Hit-Area Expansion**: Even when a visual icon (`close X`, `more ...`, `bookmark`) is `16–24px`, wrap its clickable `<button>` hit-box to **`>= 44×44px`** (`48×48px` ideal) using invisible padding (`p-2.5` / `min-h-11 min-w-11`), with **`>= 8px` dead-space gap** between adjacent tap targets so thumbs never mis-tap!
- **Mobile Thumb Zone**: Place frequent/primary actions in the bottom `40%` easy-reach arc; move rare/destructive controls (Sign Out, Delete) to top corners or secondary sheets.
---
## 3. Segmented Control Architecture (`Height = Icon + 2 × Padding`)
- Use for `2–5` mutually exclusive view switches (`1D/1W/1M/1Y`, `Monthly/Yearly -40%`, `Overview/Analytics`).
- **Equal Segment Widths** (on mobile full-width controls) or consistent horizontal padding (`6px` internal gap across all sizes):
- `24px` (`12px` icon + `6px` pad) · `28px` (`16px` icon + `6px` pad) · `32px` (`20px` icon + `6px` pad) · `40px` (`20px` icon + `10px` pad) · `48px` (`24px` icon + `12px` pad).
- Highlight active state clearly via an elevated white pill (`shadow-sm` on neutral track) or solid brand pill.
---
## 4. Six Laws of Senior Iconography
1. **One Icon Grid Size**: Design/render sibling icons on a uniform `20×20px` or `24×24px` bounding box (`16px` for micro badges).
2. **One Stroke Weight & Corner Cap**: Never mix `1.5px` rounded line icons (`Lucide` / `Iconsax`) with `2.5px` sharp or filled icons from another pack.
3. **Simplify at Small Sizes (`<= 16px`)**: Drop intricate interior lines that blur into mud at `16px`.
4. **Always Pair Navigation/Unfamiliar Icons with Text Labels**: Only universal icons (`Search`, `Close X`, `Play`, `Back`) can stand alone safely (with `aria-label` + tooltip).
5. **Outline = Inactive, Filled = Active (`On`)**: Use filled icon variants + bold label on active tab bar items.
6. **Optical Centering Over Mathematical Bounding Box**: Shift play triangles `1–2px` right inside circular buttons so visual center of mass aligns to the human eye!
---
## 5. Clean UI Card Rules ("Why Your Cards Look Junior")
1. **Limit Card Content to `3–4` Data Points**: Image/Icon + Title + 1–2 metadata lines + 1 clear action (or make the entire card clickable and drop the redundant `"Read more"` button!).
2. **Concentric Image Padding** (`R_inner = R_outer - P`) OR **Full-Bleed Top Image** (`overflow-hidden` clipping top corners cleanly) — never mix cramped `4px` margins with mismatched sharp image corners.
3. **Hairline Border Over Heavy Drop Shadow**: Prefer `1px solid #E5E7EB` (light) / `rgba(255,255,255,0.08)` (dark) or ultra-soft diffused ambient shadow (`0 4px 20px rgba(0,0,0,0.04)`) instead of dark, muddy `0 4px 8px rgba(0,0,0,0.25)` shadows.
Attribution
Related skills
View all in design →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.