AgentSkillsCN

Mobile UX Core

适用于触控优先界面的通用移动用户体验设计原则。严格规范触控目标、安全区域,以及专为移动端打造的交互模式。

SKILL.md
--- frontmatter
name: Mobile UX Core
description: Universal mobile UX principles for touch-first interfaces. Enforces touch targets, safe areas, and mobile-specific interaction patterns.
metadata:
  labels: [mobile, ux, design, accessibility, cross-platform]
  triggers:
    files:
      [
        '**/*_page.dart',
        '**/*_screen.dart',
        '**/*_view.dart',
        '**/*.swift',
        '**/*Activity.kt',
        '**/*Screen.tsx',
      ]
    keywords: [mobile, responsive, SafeArea, touch, gesture, viewport]

Mobile UX Core

Priority: P0 (CRITICAL)

Universal UX principles for mobile applications.

Guidelines

  • Touch Targets: Min 44x44pt (iOS) / 48x48dp (Android). Add padding if needed.
  • Safe Areas: Wrap content in SafeArea/WindowInsets. Avoid notches.
  • Interactions: Use active states (no hover). Haptic feedback (short).
  • Typography: Min 16sp body. Line height 1.5x.
  • Keyboards: Auto-scroll inputs. Set InputType (email/number) & Action.

Code Examples

dart
// ✅ Correct Target
IconButton(icon: Icon(Icons.close), padding: EdgeInsets.all(12))

// ❌ Too Small
Icon(Icons.close, size: 16)

Anti-Patterns

  • No Hover Effects: Mobile has no cursor. Use pressed states.
  • No Tiny Targets: All clickable elements ≥44pt.
  • No Fixed Bottom: Account for Home Indicator & Keyboard.
  • No OS Mix: Use Material (Android) & Cupertino (iOS) conventions.

Related Topics

mobile-accessibility | mobile-performance | flutter-design-system | react-native-dls