-- name: ui-ux-codex-designer description: Design and implement high-quality UI/UX for websites and apps with Codex. Use when requests involve interface design, visual polish, layout decisions, component selection, responsive behavior, accessibility, design systems, shadcn/ui composition, or framework-specific UI edits in HTML/CSS, React, Next.js, Tailwind, Vue, Svelte, or React Native.
UI/UX Codex Designer
Design for clarity, hierarchy, and interaction quality before writing code.
Run This Workflow
- •Define context in one pass:
- •Product type (marketing site, dashboard, mobile app, settings, checkout, auth, etc.)
- •Primary user action and success metric
- •Constraints (brand colors, framework, existing design system, delivery speed)
- •Choose a design direction:
- •Pick a visual intent (calm, editorial, technical, playful, premium, utilitarian)
- •Pick one color strategy and one typography strategy
- •Set spacing and radius scale up front
- •Build a minimal design system first:
- •Define tokens for color, spacing, radius, shadow, type scale, and motion duration
- •Apply tokens globally before per-component edits
- •Compose the page/screen by hierarchy:
- •Lead section or primary task surface
- •Secondary information blocks
- •Supporting actions
- •Empty/loading/error states
- •Implement with framework-specific patterns from
references/framework-guides.md. - •Validate quality before finalizing:
- •Responsive checks (mobile/tablet/desktop)
- •Keyboard and focus behavior
- •Contrast and readability
- •Consistent spacing rhythm
- •Visual balance and density
Adapt By Stack
- •Use
references/framework-guides.mdfor exact implementation style by stack. - •Use
references/shadcn-blocks.mdwhen building with shadcn/ui. - •Use
references/theme-presets.mdto pick a fast, coherent color/type direction.
Edit UI Correctly
- •Fix structure before cosmetics:
- •Correct layout and information hierarchy first.
- •Then tune color, typography, spacing, and shadows.
- •Change by tokens, not raw literals:
- •Replace one-off values with shared variables/classes.
- •Improve one axis at a time:
- •Layout -> type -> color -> spacing -> interaction -> motion.
- •Preserve existing system constraints:
- •If project has an established design system, extend it instead of replacing it.
Use The UI Instruction Library
Consult references/ui-instruction-library.md as a searchable library of:
- •Component patterns
- •UI/UX repair playbooks
- •Reusable code snippets
- •Situation-based recommendations
When task scope is broad, load only the sections needed for the current screen.
Output Standard
For any UI task, produce:
- •A short design intent statement.
- •Concrete implementation changes (files/components/styles).
- •Accessibility and responsive checks performed.
- •Any follow-up refinements that would further improve quality.