Mobile App UI/UX Design Skill for Claude Code

repository·main·Indexed 41 days ago

https://github.com/ceorkm/mobile-app-ui-design

A Claude Code skill that guides the creation of professional mobile interfaces using industry-standard principles like the 8-point grid, 60/30/10 color rule, and the Peak-End Rule. It provides a 5-step design process and industry-specific conventions for sectors including AI, Crypto, Finance, and Health. The skill supports implementation guidance for React, Tailwind CSS, Lucide React, and Recharts, focusing on mobile-first design with a 375px width baseline.

Tokens
3.5K
Snippets
2
Records
20
Agent score
57%

What's inside Mobile App UI/UX Design

  1. Use Emotional Design Principles (Peak-End Rule & Feedback)

    main

    To create engaging mobile experiences, move beyond functional feedback to emotional design:

    • Peak-End Rule: Design the experience so that users remember the most intense moment (the 'peak') and the final impression (the 'end').
    • Emotional Feedback Loops: Prioritize emotional feedback over purely functional feedback to build user connection.
    • Spotify Strategic Patterns:
      • The Trojan Horse: Hide complexity to reduce cognitive load.
      • The Vanity Mirror: Enable identity-based sharing.
      • The Comfort Trap: Use consistency as a competitive moat.
  2. Apply Visual Design Principles (Typography, Color, Spacing)

    main

    When designing the UI layer, adhere to these specific constraints to ensure professional polish:

    • Typography: Use one font family, a maximum of 4 sizes, and 2 weights. Use opacity to establish hierarchy.
    • Color System (60/30/10 Rule): Use 60% neutral colors, 30% complementary colors, and 10% accent colors.
    • Spacing (8-Point Grid): Ensure all spacing and layout dimensions are divisible by 8 or 4.
    • Shadows: Use soft shadows that are visually matched to the background colors.
    • Layout: Place primary actions within the Thumb Zone (the bottom 1/3 of the screen).
  3. Apply Typography and Color System Rules

    main

    Typography Rules

    • Use one font family (maximum of two).
    • Limit to 4 font sizes and 2 font weights.
    • Use monospace variants for large numbers (prices, stats, metrics).
    • Keep text containers under 600px wide.
    • Create hierarchy using size, weight, and opacity rather than just bolding.

    Color System (60/30/10 Rule)

    • 60% Neutral Base: White, light gray, or dark background.
    • 30% Complementary Color: Black text or dark elements.
    • 10% Brand/Accent Color: Used for CTAs, key indicators, and icons.
    • Text Hierarchy: Use opacity variations of the neutral color (100% for headings, 80% for body, 60-70% for secondary text).
    • Secondary Elements: Use the accent color at 5% opacity for secondary buttons and subtle card highlights.
    • Shadows: Match shadow colors to the background using a tinted hue; avoid pure gray/black on colored backgrounds.
  4. Implement the Peak-End Rule in user journeys

    main

    The Peak-End Rule suggests users remember an experience based on its most intense moment (the Peak) and its final impression (the End). Use this to design memorable mobile experiences.

    1. Designing the Peak

    Identify one specific spot in the core flow to create a "holy dang" moment (e.g., after a milestone or significant effort).

    • Tactics: Use badge animations, sparkles, surprise copy, or personalized briefs that build in front of the user.
    • Goal: Create a micro-animation or tag that highlights unique value tied to the user's specific action.

    2. Designing the End

    Ensure the app provides closure rather than just "falling off."

    • Tactics: Use check marks, summary cards, or affirmations (e.g., "You showed up today. That's huge.") to celebrate completion.
    • Goal: Reaffirm progress and provide a gentle nudge to return.

    3. Reducing Negative Peaks

    Mitigate stress during wait screens, error states, or long forms.

    • Tactics: Use uplifting microcopy, helpful tools, or turn delays into opportunities using loading animations and tips.
  5. Use emotional feedback loops for user actions

    main

    Instead of providing only functional feedback (e.g., a green check), provide emotional feedback to increase engagement.

    • Correct Answer: Use encouragement, cheers, or character reactions.
    • Mistake: Use gentle corrections with personality instead of a harsh red 'X'.
    • Milestone: Provide celebrations that feel proportional to the achievement.
    • Progress: Use momentum visualization like streaks, levels, or completion bars with motion.
  6. Apply Spotify's three strategic design principles

    main

    Use these three mental models to build competitive advantages in product design:

    1. The Trojan Horse (Simplicity): Hide complex technology behind familiar UI patterns. Users should interact with experiences that feel natural rather than interacting with algorithms.
    2. The Vanity Mirror (Identity): Make sharing about the user's identity, not the app. Create personal insights that allow users to express who they are (e.g., "You're a night owl" vs "You completed 25 tasks").
    3. The Comfort Trap (Consistency): Use consistent interaction logic to create predictable patterns. This builds habits and increases switching costs for competitors.
  7. Core Design Principles and Laws

    main

    The skill follows specific design laws to ensure professional, polished mobile interfaces:

    • 60/30/10 Color Rule: Use 60% neutral colors, 30% complementary colors, and 10% accent colors.
    • 8-Point Grid System: Ensure all spacing values are divisible by 8 or 4.
    • Peak-End Rule: Focus on the user's peak moment and the ending of an interaction.
    • Thumb Zone: Place primary actions within the bottom 1/3 of the screen.
    • F-Pattern: Design for natural reading and scanning orders.
    • Typography Hierarchy: Limit to a maximum of 4 sizes and 2 weights.
  8. Implement the 8-Point Grid Spacing System

    main

    All spacing values must be divisible by 8 or 4 (e.g., 8, 12, 16, 24, 32, 48, 64, 80, 96).

    Spacing Guidelines:

    • Relationship-based spacing: Place related elements closer together and unrelated elements further apart.
    • Multiplier rule: If related text elements are 16px apart, the gap to the next group should be 2× (32px).
    • Section vertical padding: Minimum 80-96px (160px for major sections on larger screens).
    • Card internal padding: 24-32px baseline.
    • Scaling: Larger text requires larger spacing.
  9. Follow the four-phase design process

    main

    Execute client or product work using this structured four-phase approach to ensure both visual and functional quality.

    Phase 1: Discovery & Inspiration

    • Understand the product problem and target audience.
    • Gather inspiration (Mobbin, Dribbble, etc.) and organize into mood boards by "vibe."
    • Present 3-5 distinct directions to stakeholders.

    Phase 2: UI Direction (Visual Only)

    • Create 3-5 mockup screens exploring visual executions.
    • Mix and match elements (e.g., button style from A, typography from B).
    • Requirement: Finalize one unified visual direction before moving to UX.

    Phase 3: UX Structure

    • Brain dump features and refine to an MVP (3-5 core screens).
    • Map screen flows using labeled boxes and arrows.
    • Create grayscale wireframes to focus on structure without visual distraction.

    Phase 4: Combine UI + UX

    • Apply the finalized visual direction to the approved wireframes.
    • Design all states: error, empty, loading, and success.
    • Ensure pixel-perfect alignment and polish.
  10. Follow the 5-step Mobile App Design Process

    main

    Use this framework to move from initial concept to a polished mobile interface:

    1. Understand Context: Define the user, their primary action, and relevant industry conventions.
    2. Structure (UX Lens): Map out user flows, MVP elements, and layout patterns like the F-pattern or the Thumb Zone.
    3. Visual Design (UI Lens): Apply visual systems including typography, the 60/30/10 color rule, and the 8-point grid.
    4. Design for Emotion: Apply the Peak-End Rule to ensure users remember the most intense moment and the final impression.
    5. Polish & Details: Add micro-interactions, state changes, and accessibility refinements.
  11. Use the Mobile App UI/UX Design skill

    main

    The skill is designed for Claude Code and automatically triggers when you request mobile-related design or implementation tasks. You can use it to:

    • Design mobile app screens or mockups.
    • Build mobile UI components.
    • Improve existing mobile app designs.
    • Create onboarding flows or mobile navigation.
    • Build interfaces using React Native, Flutter, or SwiftUI.

    Example Prompts

    • "Design a fitness app home screen"
    • "Create a banking app dashboard"
    • "Build a meditation app interface"
    • "Design a crypto wallet transaction screen"
    • "Create an onboarding flow for a health app"
    "Design a fitness app home screen"
    "Create a banking app dashboard"
    "Build a meditation app interface"
    "Design a crypto wallet transaction screen"
    "Create an onboarding flow for a health app"
  12. Follow the Mobile App UI/UX Design Process

    main

    To design professional mobile interfaces, follow this five-step sequence:

    1. Understand the Context: Identify the app type, user persona (new, returning, or power user), primary screen action, and relevant industry conventions.
    2. Structure First (UX Lens): Map user flows, identify MVP elements, and place primary actions in the thumb zone (bottom 1/3 of the screen). Use the F-pattern for layout and turn empty states into guided opportunities.
    3. Apply Visual Design (UI Lens): Implement typography, color systems, and spacing (see specific rules below).
    4. Design for Emotion (Peak-End Rule): Identify the user's 'peak' moment (e.g., completing a task) and 'end' moment (last impression). Use micro-animations, celebratory feedback, and progress affirmations to create emotional loops.
    5. Polish & Details: Add subtle glows, inner shadows, and micro-animations. Ensure all tap targets are at least 44×44pt and check contrast ratios for accessibility.