agentleFS
aaddrickaaddrick/claude-pipeline/.claude/skills/ui-design-fundamentals/SKILL.md

ui-design-fundamentals

Skill129 starsChanged 9 months agoMITView on GitHub

Reference guide for designing effective, accessible user interfaces. Core principle: Less is more - every element should serve a purpose. Detailed guidance by topic:

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All spacing, margins, and dimensions use multiples of 8px.

    line 15
  2. Distinctive:

    Never rely on color alone

    line 26
  3. Distinctive:

    Mobile first: - Start with smallest screen

    line 104
  4. Distinctive:

    Test contrast: - Verify accessibility

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
---

name: ui-design-fundamentals description: Use when designing UI components, reviewing frontend code, choosing colors, spacing, typography, or layout. Use when CSS looks off, components feel unbalanced, or accessibility is unclear.

UI Design Fundamentals

Overview

Reference guide for designing effective, accessible user interfaces. Core principle: Less is more - every element should serve a purpose.

Core Principles

1. The 8-Point Grid

All spacing, margins, and dimensions use multiples of 8px. Use 4px for fine control.

2. Visual Hierarchy

Guide attention through size, weight, color, and spacing. Most important = largest/boldest.

3. Consistency

Same patterns throughout. Create style guide first, then components.

4. Accessibility First

  • Minimum 4.5:1 contrast for text
  • 44px minimum tap targets (48px preferred)
  • Never rely on color alone

5. Mobile First

Design smallest screen first. Easier to scale up than down.

6. Grayscale First

Focus on layout and hierarchy before adding color.

Quick Reference Tables

Spacing Scale (8pt grid)

ValueUse
8pxTight gaps, icons
16pxStandard padding
24pxRelated groups
32pxCard padding
48pxSection gaps
64-96pxMajor sections

Contrast Requirements (WCAG)

ElementMinimum
Small text4.5:1
Large text (>24px)3:1
UI components3:1
AAA (ideal)7:1

Tap Targets

PlatformMinimum
iOS44x44px
Android48x48px
Desktop32-40px height

Frame Sizes

PlatformSize
iOS375x812
Android360x800
Desktop1440x1024
Large desktop1920x1024

Reference Files

Detailed guidance by topic:

FileTopics
grid-and-spacing.md8pt grid, layouts, margins, gutters, box model, alignment
typography.mdType scales, font weights, line heights, hierarchy
colors.mdColor theory, WCAG contrast, psychology, tints/shades, dark mode
shadows-and-depth.mdElevation, shadow techniques, gradients
buttons.mdAnatomy, states, hierarchy, icons, placement
forms.mdLabels, validation, input types, multi-step, accessibility
navigation.mdNav bars, sticky headers, mobile tab bars, breadcrumbs
hero-sections.mdAbove the fold, CTAs, social proof, F/Z patterns
cards.mdAnatomy, spacing, types, consistency
modals-and-dropdowns.mdModal windows, dialogs, dropdown patterns
search.mdSearch inputs, autocomplete, recent searches, no-results
pricing.mdPricing sections, psychology, conversion optimization
style-guides.mdComponent libraries, design systems, documentation

Common Mistakes

MistakeFix
Random spacingUse 8px grid
Low contrastMin 4.5:1, use A11y plugin
Tiny tap targets44px minimum
Too many elementsRemove until it breaks
Inconsistent stylesStyle guide first
Pure black/whiteTint with primary color

Design Process

  1. Research - User flows, personas, inspiration
  2. Grayscale wireframe - Layout and hierarchy only
  3. Mobile first - Start with smallest screen
  4. Add color - Apply palette after structure is solid
  5. Test contrast - Verify accessibility
  6. Iterate - Refine based on feedback

Related Skills

  • bulletproof-frontend — CSS implementation: architecture patterns, BEM naming, accessibility code, responsive CSS, Blade components, Tailwind refactoring

Resources

  • iOS: Human Interface Guidelines (developer.apple.com)
  • Android/Web: Material Design 3 (m3.material.io)
  • Inspiration: mobbin.com, land-book.com, refero.design
  • Plugins: A11y Contrast Checker, Beautiful Shadows

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.