UI/UX Design

v2026.09.24

This skill should be used when the user asks about "UI design", "UX design", "user interface", "user experience", "wireframes", "mockups", "design patterns", "design system", "component design", "layout", or mentions UI/UX decisions.

GitHub
安装命令
npx skhub add eyadsibai/ui-ux-design
Markdown
SKILL.md

UI/UX Design

Guidance for user interface and user experience design decisions.

Core Principles

Visual Hierarchy

Establish clear importance levels:

  1. Size: Larger elements draw attention first
  2. Color: Contrast guides the eye
  3. Spacing: White space creates groupings
  4. Position: Top-left reads first (in LTR languages)

Consistency

  • Use consistent spacing scale (4px, 8px, 16px, 24px, 32px, 48px)
  • Maintain consistent component patterns
  • Follow platform conventions (Material, iOS, Web)

Feedback

Every action needs feedback:

  • Immediate: Button press states
  • Progress: Loading indicators
  • Completion: Success/error messages

Layout Patterns

Card Layout

┌─────────────────┐
│     Image       │
├─────────────────┤
│ Title           │
│ Description     │
│ [Action Button] │
└─────────────────┘

Use for: Collections, products, articles

List Layout

┌──┬──────────────┐
│##│ Title        │
│  │ Subtitle     │
└──┴──────────────┘

Use for: Settings, navigation, data tables

Dashboard Layout

┌────────┬────────┬────────┐
│ Metric │ Metric │ Metric │
├────────┴────────┴────────┤
│      Main Chart          │
├─────────────┬────────────┤
│   Table     │  Activity  │
└─────────────┴────────────┘

Component Design

Buttons

TypeUse Case
PrimaryMain action (1 per view)
SecondaryAlternative actions
Tertiary/GhostLow-emphasis actions
DestructiveDelete, remove actions

Forms

  • Label above input (not placeholder-only)
  • Show validation inline
  • Group related fields
  • Mark optional fields, not required
  • Provide helpful error messages

Navigation

  • Top nav: Global, persistent
  • Side nav: Complex apps, many sections
  • Bottom nav: Mobile, 3-5 items max
  • Breadcrumbs: Deep hierarchies

Responsive Design

Breakpoints

/* Mobile first */
/* Default: Mobile (< 640px) */
@media (min-width: 640px)  { /* Tablet */ }
@media (min-width: 1024px) { /* Desktop */ }
@media (min-width: 1280px) { /* Large desktop */ }

Adaptation Strategies

  • Stack: Columns become rows on mobile
  • Hide: Show/hide elements by importance
  • Resize: Proportional scaling
  • Reflow: Different layouts per breakpoint

Color Usage

Semantic Colors

ColorMeaning
BluePrimary actions, links
GreenSuccess, positive
Yellow/OrangeWarning, attention
RedError, destructive
GrayNeutral, disabled

Contrast Requirements

  • Text on background: 4.5:1 minimum (WCAG AA)
  • Large text: 3:1 minimum
  • Interactive elements: 3:1 minimum

Typography

Scale

xs:  12px  - Labels, captions
sm:  14px  - Body small
base: 16px - Body default
lg:  18px  - Body large
xl:  20px  - Heading small
2xl: 24px  - Heading medium
3xl: 30px  - Heading large
4xl: 36px  - Display

Line Height

  • Headings: 1.2 - 1.3
  • Body text: 1.5 - 1.6
  • UI elements: 1.0 - 1.25

UX Patterns

Empty States

Show when no data:

  • Friendly illustration
  • Explain what goes here
  • Provide action to add first item

Loading States

  • Skeleton screens > spinners
  • Progressive loading
  • Optimistic UI when safe

Error Handling

  • Explain what went wrong
  • Suggest how to fix
  • Provide recovery action
  • Don't blame the user

Design Checklist

  • Clear visual hierarchy
  • Consistent spacing and alignment
  • Responsive across devices
  • Accessible color contrast
  • Clear interactive states
  • Helpful error messages
  • Loading feedback
  • Empty state design
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

plugins/ltk-design/skills/ui-ux

默认分支

master

最新提交

f8e8569

Tree SHA

8bcd589