ui-design-patterns

manutej/luxor-claude-marketplace · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/manutej/luxor-claude-marketplace --skill ui-design-patterns
0 commentsdiscussion
summary

$22

skill.md

UI Design Patterns

A comprehensive guide to common user interface design patterns, component patterns, interaction patterns, and accessibility best practices for building modern web and mobile applications.

When to Use This Skill

Use this skill when you need to:

  • Design User Interfaces: Create intuitive and user-friendly interface designs
  • Implement UI Components: Build reusable interface components following established patterns
  • Solve UX Problems: Address common user experience challenges with proven solutions
  • Ensure Accessibility: Make interfaces accessible to all users including those with disabilities
  • Build Design Systems: Create consistent component libraries and design systems
  • Review Interfaces: Evaluate existing interfaces for usability and best practices
  • Prototype Interactions: Design and implement interactive UI behaviors
  • Optimize Navigation: Structure information architecture and navigation flows
  • Handle Form Design: Create effective forms with proper validation and feedback
  • Display Data: Present complex data in clear, scannable formats
  • Provide Feedback: Communicate system state and user actions effectively
  • Responsive Design: Adapt interfaces for different screen sizes and devices

Core Concepts

UI Patterns

UI patterns are reusable solutions to common design problems. They provide:

  • Consistency: Users recognize familiar patterns across applications
  • Efficiency: Proven solutions save design and development time
  • Usability: Patterns are tested and refined through widespread use
  • Communication: Shared vocabulary for designers and developers
  • Accessibility: Established patterns often include accessibility considerations

Design Systems

A design system is a collection of reusable components, patterns, and guidelines:

  • Component Library: Reusable UI building blocks
  • Design Tokens: Variables for colors, spacing, typography
  • Usage Guidelines: When and how to use each component
  • Accessibility Standards: WCAG compliance requirements
  • Code Examples: Implementation references
  • Documentation: Comprehensive guides and principles

Atomic Design Methodology

Breaking interfaces into atomic units:

  • Atoms: Basic building blocks (buttons, inputs, labels)
  • Molecules: Simple combinations of atoms (search field with button)
  • Organisms: Complex components (headers, forms, cards)
  • Templates: Page-level layouts
  • Pages: Specific instances with real content

Navigation Patterns

1. Tabs Pattern

Organize content into multiple panels shown one at a time.

When to Use:

  • Related content categories at the same hierarchy level
  • Limited number of sections (3-7 tabs ideal)
  • User needs to switch between views frequently
  • Screen space is limited

Anatomy:

[Tab 1] [Tab 2] [Tab 3]
─────────────────────────
Content for active tab

Best Practices:

  • Highlight active tab clearly
  • Keep tab labels short and descriptive
  • Maintain state when switching tabs
  • Use icons + text for clarity
  • Ensure keyboard navigation works
  • Consider mobile alternatives (dropdown, segmented control)

Accessibility:

  • Use ARIA role="tablist", role="tab", role="tabpanel"
  • Implement arrow key navigation
  • Set aria-selected and aria-controls
  • Ensure tab panels are focusable

Example HTML:

<div role="tablist" aria-label="Content sections">
  <button role="tab" aria-selected="true" aria-controls="panel-1" id="tab-1">
    Overview
  </button>
  <button role="tab" aria-selected="false" aria-controls="panel-2" id="tab-2">
    Details
  </button>
  <button role="tab" aria-selected="false" aria-controls="panel-3" id="tab-3">
    Settings
  </button>
</div>

<div role="tabpanel" id="panel-1" aria-labelledby="tab-1">
  Overview content...
</div>

2. Accordion Pattern

Vertically stacked sections with expand/collapse functionality.

When to Use:

  • Long pages with distinct sections
  • Progressive disclosure of information
  • FAQ sections
  • Settings panels
  • Limited screen space

Types:

  • Single Expand: Only one panel open at a time
  • Multi Expand: Multiple panels can be open simultaneously
  • Nested: Accordions within accordions

Best Practices:

  • Use clear, descriptive headers
  • Provide visual indicators (chevron, +/-)
  • Consider default state (collapsed vs first open)
  • Animate transitions smoothly (200-300ms)
  • Maintain content when collapsed
  • Allow keyboard control

Accessibility:

  • Use <button> for headers
  • Set aria-expanded attribute
  • Use aria-controls to link header and panel
  • Ensure keyboard navigation (Enter, Space, Arrow keys)
  • Provide proper heading hierarchy

Example Structure:

<div class="accordion">
  <h3>
    <button aria-expanded="false" aria-controls="section-1">
      Section Title
      <span class="icon" aria-hidden="true"></span>
    </button>
  </h3>
  <div id="section-1" hidden>
    <p>Section content...</p>
  </div>
</div>

3. Breadcrumbs Pattern

Show user's location in site hierarchy.

When to Use:

  • Deep site hierarchies (3+ levels)
  • E-commerce category navigation
  • Documentation sites
  • Multi-step processes

Best Practices:

  • Show current location clearly
  • Make previous levels clickable
  • Use appropriate separators (>, /, →)
  • Keep labels concise
  • Consider mobile truncation
  • Place at top of page

Accessibility:

  • Use <nav> with aria-label="Breadcrumb"
  • Mark current page with aria-current="page"
  • Provide sufficient color contrast
  • Ensure keyboard navigation

Example:

<nav aria-label="Breadcrumb">
  <ol>
    <li><a href="/">Home</a></li>
    <li><a href="/products">Products</a></li>
    <li><a href="/products/electronics">Electronics</a></li>
    <li aria-current="page">Laptops</li>
  </ol>
</nav>

4. Pagination Pattern

Navigate through large sets of content split across pages.

Types:

  • Numbered: Show page numbers (1, 2, 3...)
  • Load More: Button to load additional content
  • Infinite Scroll: Automatically load as user scrolls
  • Prev/Next: Simple navigation between pages

When to Use:

  • Search results
  • Product listings
  • Blog archives
  • Data tables

Best Practices:

  • Show current page clearly
  • Provide Previous/Next controls
  • Include First/Last page links
  • Show total page count or results
  • Use ellipsis for skipped pages (1 ... 5 6 7 ... 20)
  • Maintain scroll position appropriately
  • Consider load time and performance

Accessibility:

  • Use <nav> with aria-label="Pagination"
  • Mark current page with aria-current="page"
  • Disable non-functional links properly
  • Provide text alternatives for icon-only controls

5. Menu Patterns

Dropdown Menu

Reveals additional options on click or hover.

Best Practices:

  • Prefer click over hover for mobile compatibility
  • Add small delay before closing on hover
  • Indicate submenu with arrow icon
  • Keep menu depths shallow (2-3 levels max)
  • Position intelligently to avoid viewport overflow

Mega Menu

Large dropdown showing multiple columns and categories.

When to Use:

  • E-commerce sites with many categories
  • Sites with complex information architecture
  • When standard dropdown feels cramped

Best Practices:

  • Use grid layout for organization
  • Include visual elements (icons, images)
  • Group related items
  • Provide clear visual hierarchy
  • Close on outside click or Esc key

Hamburger Menu

Collapsible menu for mobile navigation.

Best Practices:

  • Use recognizable icon (three horizontal lines)
  • Provide label for clarity ("Menu")
  • Animate opening/closing
  • Disable body scroll when open
  • Include close button in menu
  • Consider alternatives for better discoverability

Accessibility:

  • Use proper ARIA roles and states
  • Support keyboard navigation
  • Announce menu state to screen readers
  • Ensure focus management

Form Patterns

1. Input Validation Pattern

Provide feedback on user input correctness.

Validation Types:

  • Required Fields: Must be completed
  • Format Validation: Email, phone, URL patterns
  • Length Validation: Min/max characters
  • Range Validation: Numeric ranges
  • Custom Rules: Business logic validation

Timing:

  • On Submit: Traditional approach, all errors at once
  • On Blur: Validate when leaving field
  • On Change: Real-time validation as typing
  • Hybrid: Combine ap
how to use ui-design-patterns

How to use ui-design-patterns on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add ui-design-patterns
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/manutej/luxor-claude-marketplace --skill ui-design-patterns

The skills CLI fetches ui-design-patterns from GitHub repository manutej/luxor-claude-marketplace and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/ui-design-patterns

Reload or restart Cursor to activate ui-design-patterns. Access the skill through slash commands (e.g., /ui-design-patterns) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.566 reviews
  • Sophia Johnson· Dec 20, 2024

    Solid pick for teams standardizing on skills: ui-design-patterns is focused, and the summary matches what you get after install.

  • Diya Gill· Dec 16, 2024

    Keeps context tight: ui-design-patterns is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Harper Thompson· Dec 16, 2024

    We added ui-design-patterns from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Mei Taylor· Dec 12, 2024

    Useful defaults in ui-design-patterns — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Sofia Farah· Dec 4, 2024

    ui-design-patterns has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Sofia Johnson· Nov 23, 2024

    Keeps context tight: ui-design-patterns is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Sophia Okafor· Nov 19, 2024

    Useful defaults in ui-design-patterns — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Sophia Kim· Nov 11, 2024

    ui-design-patterns is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Ira Dixit· Nov 7, 2024

    ui-design-patterns has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • William Sethi· Nov 7, 2024

    ui-design-patterns reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 66

1 / 7