Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

web-design

БесплатноБез исполняемых скриптовНе проверен

Web design reference for building production-grade interfaces. Covers layout, typography, color, spacing, shadows, animation, accessibility, responsive…

pascalorgот pascalorg★ 103 звезды на GitHub

Об этом скилле

Web Design

A practitioner-sourced reference for building web interfaces well. Synthesized from Refactoring UI, Tailwind CSS, shadcn/ui, Laws of UX, animations.dev, detail.design, Every Layout, Web Interface Guidelines, jakub.kr, userinterface.wiki (Raphael Salaja), and other authoritative sources.

Use this skill whenever you are building, reviewing, or improving a web interface.

Implementation Priority

When building or reviewing a UI, work through these tiers in order. Each tier depends on the ones above it — fixing a shadow detail is wasted effort if the layout is broken.

Tier 1: Structure (get this right first)

  1. Semantic HTML. Correct elements (<button>, <nav>, <main>, headings in order). Everything else builds on this.
  2. Layout. Grid/flex structure, spacing scale, content width constraints (max-w-prose, 12-col grid). Does the page hold together at every viewport?
  3. Responsive behavior. Mobile-first, intrinsic sizing (auto-fill grids, clamp(), flex-wrap). No content hidden on small screens without reason.
  4. Typography fundamentals. Type scale, line height (1.5 body, 1.1-1.25 headings), line length (max-width: 65ch), rem units for font sizes.

Tier 2: Visual System (the design backbone)

  1. Color and contrast. Palette applied, semantic tokens set, WCAG AA contrast met (4.5:1 text, 3:1 UI). Dark mode if needed.
  2. Visual hierarchy. Four text levels working (foreground, muted, muted/70, muted/50). Primary action obvious. Squint test passes.
  3. Component states. Every interactive element has hover, focus-visible, active, disabled, loading, error, and empty states accounted for.
  4. Spacing and proportion. Outer padding >= inner padding. No ambiguous gaps. Button padding ratio (2x horizontal : 1x vertical). Input heights match button heights.

Tier 3: Interaction and Motion (make it feel alive)

  1. Keyboard and accessibility. Focus styles, tab order, skip links, aria attributes, touch targets (44px+). Test with keyboard only.
  2. Transitions. Hover/active feedback (150ms ease-out), state transitions (200-300ms), correct easing per direction (ease-out for enter, ease-in for exit).
  3. Animation. Stagger entrances, subtle exits, interruptible transitions, prefers-reduced-motion respected. Spring physics where appropriate.

Tier 4: Polish (the last 10% that makes it feel crafted)

  1. Shadows and depth. Layered shadows, shadows-instead-of-borders where appropriate, consistent light source. Dark mode: surface lightness instead of shadows.
  2. Optical adjustments. Icon-side button padding, concentric border radii, play button offset, tabular-nums on data, image outlines.
  3. Micro-interactions. Contextual icon animation, blur on stagger entrances, copy-to-clipboard feedback, optimistic updates.
  4. Defensive CSS. min-width: 0 on flex children, overflow-wrap: break-word, scrollbar-gutter: stable, text truncation, safe-area padding.
  5. Final checks. Squint test, grayscale test, swap test, "would a human ship this?" test. No AI slop (gratuitous gradients, identical metric cards, centered everything).

Rule of thumb: If you're debating a shadow opacity while the layout breaks at 768px, stop and go back to Tier 1.

Table of Contents

  1. Layout and Spacing
  2. Typography
  3. Color
  4. Shadows and Depth
  5. Visual Hierarchy
  6. Animation and Motion
  7. Components
  8. Responsive Design
  9. Accessibility
  10. Performance
  11. UX Psychology
  12. Design Tokens
  13. Polish and Craft
  14. Microcopy and UX Writing
  15. AI Slop Prevention
  16. Advanced Craft
  17. Defensive CSS
  18. Modern CSS Reset
  19. Predictive Prefetching
  20. Audio Feedback and Sound Design

1. Layout and Spacing

Spacing Scale

Use a consistent mathematical scale rooted in a base unit. The standard base is 4px (0.25rem). Every spacing value should be a multiple of this base.

Token Value Use
0.5 2px Hairline gaps, icon padding
1 4px Tight inline spacing
1.5 6px Small component internal padding
2 8px Default gap between related items
3 12px Compact card padding
4 16px Standard card/section padding
5 20px Comfortable padding
6 24px Section padding
8 32px Section gaps
10 40px Large section gaps
12 48px Page section spacing
16 64px Major page divisions
20 80px Hero spacing
24 96px Large hero spacing

Spacing Rules

  • **Outer paddin
Полный SKILL.md на GitHub

Установить web-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл web-design?

Web design reference for building production-grade interfaces. Covers layout, typography, color, spacing, shadows, animation, accessibility, responsive design, components, performance, and UX psychology. Use when building UI, reviewing design quality, choosing design tokens, or making any visual design decision.

Как установить скилл web-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл web-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить web-design с