← 返回
内容创作

UI

Design clear, consistent, and visually polished user interfaces.
设计清晰、一致且视觉精美的用户界面。
ivangdavila
内容创作 clawhub v1.0.0 1 版本 99703.7 Key: 无需
★ 4
Stars
📥 1,939
下载
💾 106
安装
1
版本
#latest

概述

Visual Hierarchy

  • One focal point per screen—eye knows where to go first
  • Size, color, weight establish importance—primary action most prominent
  • Group related elements—proximity implies relationship
  • White space is not wasted space—breathing room aids scanning

Typography

  • Maximum 2-3 font families—more creates visual noise
  • Clear size scale: title > heading > body > caption—distinct steps, not gradual
  • Line height 1.4-1.6 for body text—too tight or loose hurts readability
  • Line length 45-75 characters—prevents eye fatigue
  • Left-align body text—centered only for short headings

Color Usage

  • Primary color for primary actions—one dominant brand color
  • Semantic colors consistent: red=error, green=success, yellow=warning
  • Don't rely on color alone—add icons, text, patterns for accessibility
  • Neutral palette for most UI—color for emphasis, not everywhere
  • Test color blindness scenarios—8% of men affected

Spacing System

  • Use consistent scale: 4px, 8px, 16px, 24px, 32px, 48px
  • Apply same spacing for same relationships—all card padding equal
  • More space around groups than within—visual grouping through proximity
  • Generous padding on touch targets—44px minimum for mobile

Alignment

  • Grid system for consistency—8px or 4px base grid
  • Align to invisible lines—elements share edges, not scattered
  • Left edge strongest for LTR—anchor content predictably
  • Optical alignment when needed—visual center differs from mathematical

Component States

  • Default, hover, active, focus, disabled—all states designed
  • Focus state visible and clear—keyboard users need this
  • Disabled looks disabled—reduced opacity, no pointer cursor
  • Loading state replaces content—not just overlay
  • Error state in context—red border, inline message

Icons

  • Consistent style throughout—don't mix outlined and filled
  • Recognizable at small sizes—simple shapes work better
  • Labels when meaning ambiguous—icon + text clearer than icon alone
  • Touch target larger than visual icon—44px tap area, 24px icon

Imagery

  • Consistent aspect ratios—don't stretch or skew
  • Fallback for failed loads—placeholder, not broken image
  • Alt text for content images—decorative images alt=""
  • Compress appropriately—quality vs file size balance

Responsive Design

  • Design for smallest screen first—enhance for larger
  • Breakpoints based on content—not arbitrary device widths
  • Touch targets larger on touch screens—hover states only on desktop
  • Consider landscape orientation—especially for tablets

Dark Mode

  • Not just color inversion—redesign depth and emphasis
  • Reduce contrast slightly—pure white on black strains eyes
  • Shadows don't work same—use lighter surfaces for elevation
  • Test all states—errors, success, charts, images
  • Respect system preference—but allow override

Motion and Animation

  • Duration 150-300ms for transitions—fast but perceptible
  • Ease-out for entering—starts fast, settles in
  • Ease-in for exiting—accelerates out of view
  • Consistent timing across similar interactions
  • Purpose: guide attention, show relationships, provide feedback

Design Tokens

  • Define tokens for colors, spacing, typography—single source of truth
  • Semantic naming: color-error not color-red
  • Enables theming and dark mode—swap token values
  • Scales with product—change once, update everywhere

Common Mistakes

  • Too many font sizes—stick to the scale
  • Inconsistent spacing—creates unpolished feel
  • Low contrast text—4.5:1 minimum for accessibility
  • Buttons that don't look clickable—affordance matters
  • Different styles for same component—cards should match cards

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 00:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,352 📥 317,835
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,299
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,430