UI Design Skill
Build polished, modern, consistent, and user-friendly interfaces.
Core Principles
- Follow the existing design system, visual language, and component patterns.
- Prefer simple, clean, intentional designs over unnecessary decoration.
- Prioritize usability, clarity, consistency, and visual hierarchy.
- Avoid generic "AI-generated" looking interfaces.
- Do not introduce a new visual style when the project already has an established one.
- Reuse existing components, tokens, and utilities whenever possible.
Layout
- Use a consistent spacing system.
- Maintain clear alignment and visual rhythm.
- Use appropriate content width and whitespace.
- Establish a clear hierarchy between sections, headings, content, and actions.
- Avoid overcrowded layouts.
- Keep related elements visually grouped.
- Use responsive layouts that work well across mobile, tablet, and desktop.
Typography
- Use the project's existing typography system.
- Establish clear hierarchy between headings, body text, labels, and supporting text.
- Use readable font sizes and line heights.
- Avoid excessive font weights, sizes, or decorative typography.
- Keep text lengths and wrapping in mind when designing layouts.
Colors
- Use the existing color palette and design tokens.
- Maintain sufficient contrast between text and backgrounds.
- Use accent colors intentionally for actions, status, and emphasis.
- Do not introduce unnecessary colors.
- Avoid excessive gradients, neon colors, or decorative color effects unless they match the product style.
- Support dark mode when the project supports it.
Components
Prefer reusable and consistent UI components.
Keep buttons, inputs, cards, dialogs, navigation, and other common elements visually consistent.
Components should have clear visual states:
- Default
- Hover
- Focus
- Active
- Disabled
- Loading
- Error
Avoid creating multiple visually different versions of the same component without a clear reason.
Interaction
- Make interactive elements visually identifiable.
- Provide clear feedback after user actions.
- Use appropriate hover, focus, active, and transition states.
- Keep animations subtle and purposeful.
- Avoid animations that distract from the task or reduce usability.
- Never rely on color alone to communicate important states.
Forms
- Use clear labels and helpful placeholders.
- Make validation errors easy to understand and locate.
- Keep form layouts simple and predictable.
- Clearly distinguish required and optional fields.
- Provide loading and disabled states during submission.
Responsive Design
- Design for different screen sizes instead of only scaling desktop layouts.
- Avoid fixed dimensions when flexible sizing is more appropriate.
- Ensure text, buttons, forms, and navigation remain usable on small screens.
- Handle long content, wrapping, and overflow gracefully.
- Test important layouts at mobile and desktop breakpoints.
Accessibility
- Prefer semantic HTML elements.
- Ensure keyboard navigation works correctly.
- Provide visible focus states.
- Use accessible labels for controls.
- Maintain sufficient color contrast.
- Use ARIA only when semantic HTML is insufficient.
- Do not remove accessibility features for visual reasons.
States
Always consider:
- Loading
- Empty
- Error
- Success
- Disabled
- Offline or unavailable states when relevant
Do not design only the ideal successful state.
Visual Quality
Before considering UI work complete, check:
- Alignment
- Spacing
- Typography
- Color consistency
- Component consistency
- Responsive behavior
- Interactive states
- Accessibility
- Empty and error states
Fix obvious visual inconsistencies before finishing.
Implementation Rules
- Inspect existing UI components and styles before creating new ones.
- Reuse existing design tokens and components whenever possible.
- Prefer small, targeted changes.
- Do not rewrite unrelated UI.
- Do not add dependencies for simple styling problems.
- Do not invent a design system when one already exists.
- Keep visual decisions consistent across the entire feature.
- If the project uses a UI library, follow its conventions instead of replacing it.
- If requirements are ambiguous, prefer the simplest design consistent with the existing application.
Avoid
- Excessive rounded corners.
- Excessive shadows.
- Excessive gradients.
- Random colors.
- Inconsistent spacing.
- Too many font sizes.
- Tiny unreadable text.
- Unnecessary animations.
- Overly complex layouts.
- Decorative elements that reduce usability.
- UI patterns that look impressive but make the interface harder to use.
1---2name: ui-design3description: UI Design Skill4---5# UI Design Skill67Build polished, modern, consistent, and user-friendly interfaces.89## Core Principles1011* Follow the existing design system, visual language, and component patterns.12* Prefer simple, clean, intentional designs over unnecessary decoration.13* Prioritize usability, clarity, consistency, and visual hierarchy.14* Avoid generic "AI-generated" looking interfaces.15* Do not introduce a new visual style when the project already has an established one.16* Reuse existing components, tokens, and utilities whenever possible.1718## Layout1920* Use a consistent spacing system.21* Maintain clear alignment and visual rhythm.22* Use appropriate content width and whitespace.23* Establish a clear hierarchy between sections, headings, content, and actions.24* Avoid overcrowded layouts.25* Keep related elements visually grouped.26* Use responsive layouts that work well across mobile, tablet, and desktop.2728## Typography2930* Use the project's existing typography system.31* Establish clear hierarchy between headings, body text, labels, and supporting text.32* Use readable font sizes and line heights.33* Avoid excessive font weights, sizes, or decorative typography.34* Keep text lengths and wrapping in mind when designing layouts.3536## Colors3738* Use the existing color palette and design tokens.39* Maintain sufficient contrast between text and backgrounds.40* Use accent colors intentionally for actions, status, and emphasis.41* Do not introduce unnecessary colors.42* Avoid excessive gradients, neon colors, or decorative color effects unless they match the product style.43* Support dark mode when the project supports it.4445## Components4647* Prefer reusable and consistent UI components.48* Keep buttons, inputs, cards, dialogs, navigation, and other common elements visually consistent.49* Components should have clear visual states:5051 * Default52 * Hover53 * Focus54 * Active55 * Disabled56 * Loading57 * Error58* Avoid creating multiple visually different versions of the same component without a clear reason.5960## Interaction6162* Make interactive elements visually identifiable.63* Provide clear feedback after user actions.64* Use appropriate hover, focus, active, and transition states.65* Keep animations subtle and purposeful.66* Avoid animations that distract from the task or reduce usability.67* Never rely on color alone to communicate important states.6869## Forms7071* Use clear labels and helpful placeholders.72* Make validation errors easy to understand and locate.73* Keep form layouts simple and predictable.74* Clearly distinguish required and optional fields.75* Provide loading and disabled states during submission.7677## Responsive Design7879* Design for different screen sizes instead of only scaling desktop layouts.80* Avoid fixed dimensions when flexible sizing is more appropriate.81* Ensure text, buttons, forms, and navigation remain usable on small screens.82* Handle long content, wrapping, and overflow gracefully.83* Test important layouts at mobile and desktop breakpoints.8485## Accessibility8687* Prefer semantic HTML elements.88* Ensure keyboard navigation works correctly.89* Provide visible focus states.90* Use accessible labels for controls.91* Maintain sufficient color contrast.92* Use ARIA only when semantic HTML is insufficient.93* Do not remove accessibility features for visual reasons.9495## States9697Always consider:9899* Loading100* Empty101* Error102* Success103* Disabled104* Offline or unavailable states when relevant105106Do not design only the ideal successful state.107108## Visual Quality109110Before considering UI work complete, check:111112* Alignment113* Spacing114* Typography115* Color consistency116* Component consistency117* Responsive behavior118* Interactive states119* Accessibility120* Empty and error states121122Fix obvious visual inconsistencies before finishing.123124## Implementation Rules125126* Inspect existing UI components and styles before creating new ones.127* Reuse existing design tokens and components whenever possible.128* Prefer small, targeted changes.129* Do not rewrite unrelated UI.130* Do not add dependencies for simple styling problems.131* Do not invent a design system when one already exists.132* Keep visual decisions consistent across the entire feature.133* If the project uses a UI library, follow its conventions instead of replacing it.134* If requirements are ambiguous, prefer the simplest design consistent with the existing application.135136## Avoid137138* Excessive rounded corners.139* Excessive shadows.140* Excessive gradients.141* Random colors.142* Inconsistent spacing.143* Too many font sizes.144* Tiny unreadable text.145* Unnecessary animations.146* Overly complex layouts.147* Decorative elements that reduce usability.148* UI patterns that look impressive but make the interface harder to use.