Ui design brain

From wpgaurav/WordPress-skills · View interactive version

Ui design brain is an AI agent skill from the GitHub repository wpgaurav/WordPress-skills. Generate production-grade UI using real component patterns and best practices from 60+ documented interface components. Use when the user asks to build web interfaces, pages, dashboards, forms, navigation, or any UI — ensures modern, minimal, SaaS-quality output grounded in design system conventions

How to use this skill

Skill file

From UI Design Brain by carmahhawwari. Copyright (c) 2026 UI Design Brain Contributors, used under the MIT License. See NOTICE.md.

UI Design Brain

This skill provides a curated knowledge base of 60+ UI component patterns sourced from component.gallery and enriched with best practices, layout guidance, and usage rules. It replaces generic guessing with real design-system knowledge when generating interfaces.

Before writing any UI code, consult this skill to select the right components and follow their best practices. Read components.md for the full reference.

When to Use This Skill

Apply whenever the user asks to build, design, or generate:

Design Philosophy

Every generated interface should feel modern, minimal, and production-ready — not like a template.

Core Principles

  1. Restraint over decoration. Fewer elements, highly refined. White space is a feature.
  2. Typography carries hierarchy. Pair a distinctive display font with a clean body font. Maximize weight contrast between headings and labels.
  3. One strong color moment. Neutral palette first (warm off-whites, near-blacks, muted mid-tones). Introduce one confident accent. If it could appear on a poster or book cover, it's probably timeless.
  4. Spacing is structure. Use an 8 px grid. Tighter gaps group related elements; generous gaps let hero content breathe.
  5. Accessibility is non-negotiable. WCAG AA contrast minimums. Focus indicators. Semantic HTML. Keyboard navigation.
  6. No generic AI aesthetics. Avoid: purple-on-white gradients, Inter/Roboto defaults, evenly-spaced card grids, and cookie-cutter layouts. Every interface should feel designed for its specific context.

Quality Bar

The output should match what you'd expect from a senior product designer at a top SaaS company:

Workflow

Step 1 — Identify Components

Read the user's request and determine which UI components are needed. Reference components.md to find each component by name or alias.

Common mappings:

Step 2 — Apply Best Practices

For each component in the interface, follow its best practices from the reference. Key rules that apply broadly:

Layout

Interaction

Typography & Spacing

States

Step 3 — Choose a Design Direction

Select the style preset that best matches the user's intent, or ask if unclear:

Modern SaaS (default)

Apple-level Minimal

Enterprise / Corporate

Creative / Portfolio

Data Dashboard

Step 4 — Generate Code

Write production-ready code following these rules:

Stack:       React + Tailwind CSS (unless user specifies otherwise)
Spacing:     Tailwind spacing scale (p-2, gap-4, etc.) on an 8px grid
Colors:      CSS variables or Tailwind config for palette consistency
Typography:  Tailwind text utilities; expressive font pairings via Google Fonts
States:      Implement hover, focus, active, disabled for all interactive elements
Responsive:  Mobile-first; test at 375, 768, 1440 px
Accessibility: Semantic HTML, ARIA where needed, focus management

Component Quick Reference

Below are the 15 most commonly needed components. For the full 60+ component reference with best practices, aliases, and layout examples, see components.md.

| Component | When to use | Key rule |

|-----------|------------|----------|

| Button | Trigger actions | Verb-first labels; one primary per section |

| Card | Represent an entity | Media → title → meta → action; shadow OR border, not both |

| Modal | Focused attention | Trap focus; X + Cancel + Escape to close |

| Navigation | Page/section links | 5–7 items max; clear active state |

| Table | Structured data | Sticky header; right-align numbers; sortable columns |

| Tabs | Switch panels | 2–7 tabs; active indicator; accordion on mobile |

| Form | Collect input | Single column; labels above; inline validation on blur |

| Toast | Brief confirmation | Auto-dismiss 4–6 s; undo action for destructive ops |

| Alert | Important status | Semantic colors + icon; max 2 sentences |

| Drawer | Secondary panel | Right for detail, left for nav; 320–480 px desktop |

| Search input | Find content | Cmd/Ctrl+K shortcut; debounce 200–300 ms |

| Empty state | No data | Illustration + headline + CTA; positive framing |

| Skeleton | Loading placeholder | Match actual layout shape; shimmer animation |

| Badge | Status/metadata label | 1–2 words; pill shape for status; limited color palette |

| Dropdown menu | Action/nav options | 7±2 items; destructive actions last in red |

Anti-Patterns to Avoid

Never generate these — they signal generic, low-quality UI:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.