mcpField
W
web-interface-design

web-interface-design

github.com/ratacatDesign & UI58116 installsUpdated 37w ago
Repository

About web-interface-design

Web Interface Design is a skill that guides interface-design work through focused reference files and review checklists. It covers typography, components, layout, visual hierarchy, and accessibility for web interfaces.

Key features

  1. 01Task-based design reference index
  2. 02Typography and spacing guidance
  3. 03Form and component patterns
  4. 04Visual hierarchy and color guidance
  5. 05Accessibility review checklist

Use cases

  1. 01Review a web page's visual hierarchy
  2. 02Improve forms and input feedback
  3. 03Check spacing and text readability
  4. 04Review contrast and keyboard focus

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ratacat/claude-skills --skill web-interface-design

After installing, type/web-interface-designin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
accessibility.md
buttons.md
color-systems.md
css-patterns.md
forms-and-inputs.md
layout-and-spacing.md
typography.md
ui-components.md
visual-hierarchy.md

Details

From the project README

Web Interface Design

Overview

Design exists to separate the primary from the secondary. Users should instantly recognize what matters. Good interface design is invisible—users accomplish goals without noticing the interface.

This skill orchestrates domain-specific reference files. Read only what you need for the task.

Reference File Index

TaskLoad Reference
Font sizes, line spacing, heading hierarchy, vertical rhythmreferences/typography.md
Input fields, validation, checkboxes, radios, selects, textareasreferences/forms-and-inputs.md
Button hierarchy, sizing, states, CTAs, ghost buttonsreferences/buttons.md
Color palettes, dark mode, tints/shades, state colorsreferences/color-systems.md
Navigation, cards, tabs, accordions, modals, tables, toastsreferences/ui-components.md
Grids, spacing scales, responsive patterns, whitespacereferences/layout-and-spacing.md
Focus techniques, hierarchy principles, action pyramidreferences/visual-hierarchy.md
Contrast ratios, focus states, screen readers, WCAGreferences/accessibility.md
CSS implementation patterns, variables, common stylesreferences/css-patterns.md

Quick Decision: Which Reference?

What's the problem?
├─ Text hard to read, spacing feels off → typography.md
├─ Form not working well, validation issues → forms-and-inputs.md
├─ Users don't know what to click → buttons.md OR visual-hierarchy.md
├─ Colors look wrong, dark mode broken → color-systems.md
├─ Need nav/cards/tabs/modals/tables → ui-components.md
├─ Spacing inconsistent, layout cramped → layout-and-spacing.md
├─ Everything competes for attention → visual-hierarchy.md
├─ Accessibility audit or contrast issues → accessibility.md
└─ Need CSS implementation → css-patterns.md

Universal Quick Reference

Spacing Scale (4px base)

4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96

Typography Baseline
  • Body: 16px, line-height 1.5
  • Heading:body ratio max 1:3 (48px heading for 16px body)
  • Paragraph spacing: line-height ÷ 1.5
Touch Targets
  • Minimum: 44×44px
  • Recommended: 48×48px
Contrast Minimums (WCAG)
  • Normal text: 4.5:1
  • Large text (18px+ or 14px+ bold): 3:1
  • UI components: 3:1
Button Hierarchy
LevelUse ForTreatment
PrimaryMain action (ONE per view)Solid fill, high contrast
SecondaryAlternative actionsOutlined or subtle fill
TertiaryMinor actionsText-only or ghost
Dark Mode Essentials
  • Background: #121212 (not pure black)
  • Text: #E0E0E0 (not pure white)
  • Reduce color saturation

Common Mistakes Checklist

  • Multiple primary buttons per view
  • Placeholder used as only label
  • Pure white on pure black
  • Thin/light font weights
  • Color-only error indicators
  • Long centered text
  • Inconsistent spacing values

Design Review Protocol

  1. Hierarchy: Is primary action obvious? Can you tell what matters?
  2. Readability: Text contrast OK? Line length reasonable (45-75 chars)?
  3. Forms: Labels above fields? Touch targets 44px+? Helpful errors?
  4. Spacing: Consistent scale? Breathing room around elements?
  5. Accessibility: Color not sole indicator? Focus states visible?

When NOT to Use This Skill

  • Pure visual branding/identity work
  • Marketing copy decisions
  • Backend architecture
  • Mobile native patterns (iOS/Android differ)

Sources

  • Web Interface Handbook by Aleksei Baranov (Imperavi)
  • User Interface Typography by Imperavi
  • Refactoring UI by Wathan & Schoger
  • WCAG 2.1 accessibility guidelines

Comments

Markdown supported