PluginBench
Skill
Pass
Audit score 90

ui-design

pproenca/dot-skills

How to install ui-design

npx skills add https://github.com/pproenca/dot-skills --skill ui-design
Claude Code
Cursor
Windsurf
Cline
Full instructions (SKILL.md)

Source of truth, from pproenca/dot-skills.


name: ui-design description: UI/UX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.

UI/UX Best Practices Frontend Design

Comprehensive UI/UX and frontend design best practices guide. Contains 42 rules across 8 categories, prioritized by impact to guide accessible, performant, and user-friendly interface development.

When to Apply

Reference these guidelines when:

  • Structuring HTML for accessibility and semantics
  • Writing CSS for responsive layouts and visual hierarchy
  • Optimizing images and fonts for Core Web Vitals
  • Designing forms with proper validation and error handling
  • Adding animations and interactive elements

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Accessibility & WCAG ComplianceCRITICALaccess-
2Core Web Vitals OptimizationCRITICALcwv-
3Visual Hierarchy & LayoutHIGHlayout-
4Responsive & Mobile-First DesignHIGHresp-
5Typography & Font LoadingMEDIUM-HIGHtypo-
6Color & ContrastMEDIUMcolor-
7Forms & Validation UXMEDIUMform-
8Animation & PerformanceLOW-MEDIUManim-

Quick Reference

1. Accessibility & WCAG Compliance (CRITICAL)

  • access-semantic-html - Use semantic HTML elements for screen readers
  • access-keyboard-navigation - Ensure full keyboard navigation
  • access-focus-indicators - Provide visible focus indicators
  • access-alt-text - Provide meaningful alt text for images
  • access-aria-labels - Use ARIA labels for icon-only controls
  • access-target-size - Ensure minimum touch target size (24×24px)
  • access-heading-hierarchy - Maintain logical heading hierarchy

2. Core Web Vitals Optimization (CRITICAL)

  • cwv-optimize-lcp - Optimize Largest Contentful Paint under 2.5s
  • cwv-minimize-cls - Minimize Cumulative Layout Shift under 0.1
  • cwv-improve-inp - Improve Interaction to Next Paint under 200ms
  • cwv-responsive-images - Serve responsive images with srcset
  • cwv-lazy-load-offscreen - Lazy load offscreen images and iframes
  • cwv-critical-css - Inline critical CSS and defer the rest

3. Visual Hierarchy & Layout (HIGH)

  • layout-visual-hierarchy - Establish clear visual hierarchy
  • layout-whitespace - Use whitespace to improve readability
  • layout-f-pattern - Design for F-pattern reading behavior
  • layout-grid-system - Use a consistent grid system
  • layout-single-cta - Limit to one primary CTA per screen
  • layout-proximity-grouping - Group related elements with proximity

4. Responsive & Mobile-First Design (HIGH)

  • resp-mobile-first - Design mobile-first with min-width queries
  • resp-fluid-typography - Use fluid typography with clamp()
  • resp-container-queries - Use container queries for components
  • resp-touch-targets - Size touch targets for mobile (44×44px)
  • resp-viewport-meta - Configure viewport meta tag correctly

5. Typography & Font Loading (MEDIUM-HIGH)

  • typo-font-display - Use font-display to control loading behavior
  • typo-preload-fonts - Preload critical web fonts
  • typo-readable-line-length - Constrain line length (45-75ch)
  • typo-line-height - Set appropriate line height (1.5-1.7)
  • typo-system-font-stack - Use system font stack for UI elements

6. Color & Contrast (MEDIUM)

  • color-contrast-ratio - Meet WCAG contrast ratio requirements (4.5:1)
  • color-not-only-indicator - Never use color alone to convey information
  • color-dark-mode - Support dark mode with prefers-color-scheme
  • color-semantic-palette - Use semantic color names in design tokens

7. Forms & Validation UX (MEDIUM)

  • form-inline-validation - Use inline validation after field blur
  • form-error-messages - Write actionable error messages
  • form-labels-above - Place labels above input fields
  • form-input-types - Use correct HTML input types for mobile
  • form-autocomplete - Enable browser autocomplete with correct attributes

8. Animation & Performance (LOW-MEDIUM)

  • anim-gpu-properties - Animate only GPU-accelerated properties
  • anim-will-change - Use will-change sparingly for animation hints
  • anim-reduced-motion - Respect user motion preferences
  • anim-duration-easing - Use appropriate animation duration and easing

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Related skills

More from pproenca/dot-skills and the wider catalog.

ZO

zod

pproenca/dot-skills

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).

3.8k installsAudited
EM

emilkowal-animations

pproenca/dot-skills

Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.

1.8k installs
CL

clean-architecture

pproenca/dot-skills

Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.

1.7k installs
RE

react-hook-form

pproenca/dot-skills

React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, and the v7.55+ subscribe() API. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).

1.5k installs
VI

vitest

pproenca/dot-skills

Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.

1.1k installsAudited
NU

nuqs

pproenca/dot-skills

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.

1.1k installsAudited