--- name: ui-ux-pro-max description: "Comprehensive design guide & BM25 search engine for web and mobile applications across 11 tech stacks / Panduan desain komprehensif & mesin pencari BM25 untuk aplikasi web dan mobile di 11 tech stack." author: "Roedy Rustam" version: "4.4.2" --- # UI/UX Pro Max - Design Intelligence System [English](#english) | [Bahasa Indonesia](#bahasa-indonesia) --- ## English ### Orchestration & Integration Connects and orchestrates with relevant domain skills: - **`modern-web-guidance`**: Run focused queries for 2026 web UI patterns, accessibility standards, and native platform features. - **`design-system-architect`**: Establishes OKLCH token scales, surface container tiers (L0-L4), and Base UI / Radix primitives. - **`modern-css-native-expert`**: Implements pure CSS anchor positioning, `@starting-style`, and top-layer modal transitions. - **`tailwind-expert`**: Binds visual hierarchy recipes, 60-30-10 color layering, and optical tracking in Tailwind v4. - **`visual-ui-auditor`**: Conducts 20-point visual audits, multimodal screenshot inspections, and Playwright tests. - **`anti-slop`**: Enforces strict Pillar 7 visual sanitation, eliminating AI clichés, pill buttons, and fake states. - **`hig`**, **`brainstorming`**, **`zero-to-prod-orchestrator`**, **`session-memory-manager`**: Continuous lifecycle alignment. ### Description UI/UX Pro Max is a comprehensive design intelligence engine equipped with an offline BM25 search index covering color palettes, typography, responsive patterns, icon sets, chart recommendations, UX guidelines, **Material Design 3 (M3)**, and stack-specific best practices across **11 technology stacks**. ### Trigger Conditions Reference these guidelines or run the CLI search engine when: - Designing new UI components, landing pages, or dashboards. - Choosing color schemes, font pairings, and design tokens. - Learning, reverse-engineering, or cloning website design templates & components directly from a target URL (Combine with `website-design-cloner`). - Generating a complete design system recommendation for a project. - Auditing code for UX, accessibility (a11y), or performance issues. - Needing stack-specific code patterns (React, Next.js, Vue, Nuxt, Svelte, Tailwind, SwiftUI, React Native, Flutter, Shadcn). --- ### Python BM25 Search CLI Integration The skill includes a fast Python search engine in `scripts/search.py` that queries 12 domain CSV datasets and 11 tech-stack CSV datasets. #### 1. Generate Complete Design System Recommendation Run this before starting design/coding to get an aggregated design system spec: ```bash python scripts/search.py "" --design-system -p "Project Name" -f markdown ``` *Example:* `python scripts/search.py "SaaS analytics dashboard" --design-system -p "MetricsApp" -f markdown` #### 2. Domain-Specific Search Search specific design domains: ```bash python scripts/search.py "" --domain --max-results 3 ``` - **Available Domains (`--domain`)**: - `style`: Visual design styles (Minimalism, Glassmorphism, Dark Mode, Aurora, Brutalism, Bento Grid, Spatial UI, WebGL 3D elements, etc.) - `prompt`: Copy-paste ready AI prompts & CSS implementation checklists - `color`: Hex color palettes tailored by product type (Primary, Secondary, CTA, Background, Text) - `chart`: Chart type recommendations, library suggestions, accessibility & color guidance - `landing`: High-converting landing page layouts, section orders & CTA placement - `product`: Product-type specific design system blueprints (SaaS, E-commerce, Fintech, Crypto, AI-Native Chat Interfaces, etc.) - `ux`: UX anti-patterns, usability best practices, severity, and good/bad code examples - `typography`: Google font pairings, heading/body recommendations, mood keywords & CSS imports - `icons`: Icon usage guidance, SVG libraries (Lucide, Heroicons), and code imports - `react`: React & Next.js performance optimizations, re-render fixes & dynamic imports - `web`: Web interface guidelines (ARIA, focus traps, virtual list, form inputs) - `m3`: Material Design 3 specific design tokens, color roles, elevation, and component specs - `preset-monday`: Monday.com spacious SaaS aesthetic (Vibrant Blue `#0073ea`, Clean White `#FFFFFF` + Light Grays `#F9F9F9`/`#F5F6F8`, Dark Footer `#111111`, Figtree/Inter fonts, 12-16px card radius, 80-120px vertical spacing) *Example:* `python scripts/search.py "fintech dark theme" --domain color` #### 3. Stack-Specific Guidelines Search Search guidelines tailored to your exact tech stack: ```bash python scripts/search.py "" --stack --max-results 3 ``` - **Supported Stacks (`--stack`)**: - `html-tailwind` | `react` | `nextjs` | `vue` | `nuxtjs` | `nuxt-ui` | `svelte` | `swiftui` | `react-native` | `flutter` | `shadcn` *Example:* `python scripts/search.py "virtualized list performance" --stack react` --- ### Quick Reference for Professional Rules #### 1. Accessibility (WCAG 2.2) - CRITICAL - **Color Contrast**: Minimum 4.5:1 ratio for normal text, 3:1 for large text/UI components. - **Focus States**: Visible focus rings (`focus-visible:ring-2 focus-visible:ring-offset-2`) during keyboard navigation. - **Alt Text & ARIA**: Descriptive alt text for imagery; proper `aria-expanded`, `aria-controls`, and semantic HTML tags. #### 2. Touch & Interaction - CRITICAL - **Touch Target Size**: Minimum 44x44px for mobile devices. - **Loading & State**: Disable buttons during async requests to prevent duplicate submissions; show subtle spinners or skeleton loaders. - **Cursor Pointer**: Always add `cursor-pointer` to clickable/interactive elements. #### 3. Performance & Animation - HIGH / MEDIUM - **Image & Assets**: Use WebP/AVIF formats, `srcset`, explicit `width`/`height` attributes, and `loading="lazy"`. - **Micro-interactions**: Keep transition durations between 150ms–300ms (`ease-in-out`) for fast and responsive UI feel. - **Reduced Motion**: Respect `prefers-reduced-motion: reduce`. #### 4. Light/Dark Mode Contrast - **Light Mode**: High-contrast text (e.g. Slate-900 `#0F172A`); avoid pale grays for primary text. Ensure borders (`border-slate-200`) remain visible. - **Dark Mode**: High contrast foreground elements over dark slate/gray backgrounds; avoid pure black `#000000` text containers unless requested. #### 5. Sovereign Visual Hierarchy & Elegant Aesthetic Architecture Visual hierarchy guides the user's perception through deliberate scale, contrast, spacing, depth, and rhythm (Linear/Apple/Stripe-caliber design): - **Modular Typographic Rhythm & Optical Tracking**: - **Eyebrow / Overline**: `text-[11px] font-semibold tracking-wider uppercase text-neutral-500 dark:text-neutral-400` — sets immediate context with deliberate breathing room. - **Hero / Display Title**: `text-3xl md:text-5xl font-bold tracking-tight text-neutral-900 dark:text-neutral-50 leading-[1.1]` — tight optical tracking creates punchy authority. - **Section / H2**: `text-xl md:text-2xl font-semibold tracking-tight text-neutral-900 dark:text-neutral-100` — anchored section landmark. - **Subheading / Body**: `text-sm md:text-base font-normal leading-relaxed text-neutral-600 dark:text-neutral-300` — comfortable reading flow. - **Tabular Figures Contract**: Mandatory `tabular-nums` (`font-variant-numeric: tabular-nums`) on all metrics, counters, currency values, dates, and data tables to prevent horizontal layout jiggle. - **The 60-30-10 Color Rule & Single Primary CTA Dominance**: - **60% Neutral Base**: Main canvas/background (`bg-neutral-50 dark:bg-neutral-950`). - **30% Structural Surface**: Cards, sidebars, headers, table shells (`bg-white dark:bg-neutral-900 border border-neutral-200/80 dark:border-neutral-800`). - **10% Intentional Accent**: Reserved exclusively for key conversion moments (Primary CTA, active navigation marker, key KPI badge). - **Single Focal Point Rule**: Maximum ONE primary button per viewport. Secondary actions must use outline/subtle treatments; tertiary actions use ghost/text-only variants. - **3-Tier Semantic Text Contrast**: Primary text (`text-neutral-900 dark:text-neutral-50` >= 7:1 contrast), secondary text (`text-neutral-600 dark:text-neutral-400` >= 4.5:1), tertiary/metadata (`text-neutral-400 dark:text-neutral-500`). - **Gestalt Proximity & Spatial Breathing Room**: - **Label-Input Tightness**: Place form labels tightly to their fields (`gap-1.5` / 6px). - **Internal vs External Gaps**: Card internal padding (`p-5` or `p-6`) must exceed element gaps (`gap-3` or `gap-4`). - **Section Cadence**: Separate major blocks with generous whitespace (`py-16 md:py-24` or `gap-8 md:gap-12`). Whitespace is an active structural design asset. - **Surface Layering, Tactile Depth & Crisp 1px Borders**: - **Physical Elevation Tiers**: - *Canvas (L0)*: App background (`bg-neutral-50/50 dark:bg-neutral-950`). - *Card (L1)*: Content container (`bg-white dark:bg-neutral-900 border border-neutral-200/80 dark:border-neutral-800 shadow-xs`). - *Raised (L2)*: Dropdown menu, popover, hover card (`shadow-md border border-neutral-200 dark:border-neutral-700`). - *Overlay (L3)*: Modal dialog with backdrop (`shadow-xl`). - *Floating (L4)*: Toast alert, persistent dock (`shadow-2xl`). - **Sanitation**: Ban blurry muddy 30px black shadows and ungrounded glowing neon orbs. Enforce crisp 1px borders paired with directional micro-shadows. - **Scanability & Layout Flow Patterns**: - **F-Pattern**: Apply to dense data views, dashboards, and feeds (strong left-anchor for headings, metrics, and row labels). - **Z-Pattern**: Apply to marketing hero sections and conversion landing pages (Logo -> Secondary CTA -> Value Prop -> Primary CTA). - **Progressive Chunking**: Break large datasets into clear card modules with distinct header, metric, and footer zones. - **Material Design 3 (M3) Integration**: Support Adaptive Window Size Classes (Compact <600dp, Medium 600–839dp, Expanded ≥840dp) and tonal elevation tiers (`surface-container-lowest` to `surface-container-highest`). --- ### Sovereign UI/UX Anti-Slop Directive (6 Design Pillars) The UI/UX tier of vibes-plug strictly eliminates generic AI visual slop and incomplete user experiences: 1. **Ban on Generic "AI Gradient" Aesthetic**: - 🔴 **Forbidden**: Defaulting to the cliché dark-slate backdrop with purple/cyan glowing neon gradients (`bg-slate-900 from-purple-500 to-indigo-600`), indiscriminate glassmorphic cards with faint `border-white/10`, and floating glowing dots with zero brand context. - ✅ **Standard**: Purpose-driven brand aesthetic. Deliberately choose and enforce a coherent design philosophy matching the domain: Swiss International Typography, Clean Scandinavian Editorial, High-Density Data Monochrome, Precision Industrial, or Warm Handcrafted Minimal. 2. **Mandatory 5-State Component Rule (Zero Happy-Path Bias)**: - 🔴 **Forbidden**: Generating only the static happy-path layout while omitting edge-case states. - ✅ **Standard**: Every interactive view or data component must explicitly support all 5 core states: - **Ideal State**: Clean, structured layout with realistic domain content. - **Loading State**: Content-shaped pulsing skeleton layout matching exact element geometry (no layout shifts or jarring full-screen spinners). - **Empty State**: Contextual vector icon/illustration, concise explanatory copy, and a primary action button to create the first record. - **Error State**: Inline accessible alert with actionable retry trigger and clear explanation (RFC 9457 friendly). - **Interactive / Disabled State**: Clear hover, active, keyboard `focus-visible:ring-2`, and `aria-disabled="true"` with tooltip explanation. 3. **Semantic & Accessible DOM (Zero Div-Soup Slop)**: - 🔴 **Forbidden**: Using `
` instead of `