askill
patterns-interface-design

patterns-interface-designSafety 100Repository

This skill MUST be invoked when the user says "interface design", "UI design", "component design", "visual design", "styling", "dark mode", "spacing", "typography hierarchy", or "surface elevation". SHOULD also invoke when user mentions "frontend aesthetics" or "UI components".

19 stars
1.2k downloads
Updated 2/8/2026

Package Files

Loading files...
SKILL.md

Interface Design Patterns

Overview

Craft intentional interface designs through systematic discovery. Generic output happens when structural decisions (typography, navigation, data visualization) are treated as mere infrastructure rather than design itself.

Violating the letter of these rules is violating the spirit of these rules. Following "most" of the discovery process or applying "some" intentional choices is not compliance.

When to Use

  • Building web components, pages, or applications
  • Creating visual design systems
  • Establishing typography, color, and spacing decisions
  • Designing dark mode or light mode interfaces
  • Crafting data visualization or dashboard layouts
  • Making navigation or layout architecture decisions

When NOT to Use

  • Purely backend or API work
  • Documentation-only tasks
  • When design system already exists and must be followed exactly
  • Quick prototypes where user explicitly wants minimal styling

Required Discovery Process

Before proposing any direction, explore these four elements. Do not skip any.

1. Domain Exploration

Identify 5+ concepts native to the product's world. These are nouns, verbs, textures, and metaphors that belong to the domain. Required even for familiar domains.

Product TypeDomain Concepts
Financial dashboardLedger, balance, flow, precision, trust
Developer toolsTerminal, pipeline, build, deploy, logs
HealthcareVitals, chart, monitor, care, clinical
Creative toolsCanvas, brush, layer, blend, palette

2. Color World

Identify 5+ colors that exist naturally in the product's physical or conceptual space. Build palettes that feel native, not applied over the product. Required even when brand colors exist.

Product TypeColor World
FinancialDeep navy, muted gold, slate gray, paper white
DeveloperTerminal green, dark gray, syntax highlighting hues
HealthcareClinical white, vital blue, alert amber, soft green
CreativeRich pigments, canvas cream, ink black

3. Signature Element

Define one distinctive element that could only belong to this product. This is the unforgettable detail. Required even for internal tools.

Examples:

  • A specific border treatment unique to the brand
  • An unconventional navigation pattern
  • A distinctive loading animation
  • A characteristic use of typography weight

4. Default Replacement

Name 3 obvious choices and deliberately replace them. If the first thing that comes to mind is the solution, it is probably a default. Required even when defaults seem appropriate.

DefaultReplacement Strategy
White cards on white backgroundSurface elevation via subtle tint
Standard 12-column gridAsymmetric or breaking layout
Inter/Roboto fontDomain-appropriate typeface
Purple gradient accentColor from product's world

No exceptions:

  • Not for "simple components"
  • Not for "internal tools"
  • Not for "MVP/prototype"
  • Not even if user says "just make it look nice"

Intent Specification

Define these three elements with specifics before coding:

  1. Who — Identify the actual person using the interface
  2. What — Define what they must accomplish (the verb)
  3. How — Articulate how the interface should feel (beyond "clean" or "modern")

Intent must be systemic. Every token, color, and spacing decision reinforces the stated feeling.

Surface and Token Architecture

Build systems, not random choices. See CRAFT-PRINCIPLES.md for complete token architecture.

Primitive Foundation

Every color traces back to these primitives:

PrimitivePurpose
ForegroundText colors (primary, secondary, muted)
BackgroundSurface colors (base, elevated, overlay)
BorderEdge colors (default, subtle, strong)
BrandPrimary accent
SemanticFunctional colors (destructive, warning, success)

Surface Elevation

Surfaces stack. Build a numbered system:

Level 0: Base background (app canvas)
Level 1: Cards, panels (same visual plane)
Level 2: Dropdowns, popovers (floating above)
Level 3: Nested overlays (stacked)
Level 4: Highest elevation (rare)

In dark mode, higher elevation = slightly lighter. The difference between levels should be subtle: a few percentage points of lightness, not dramatic jumps.

The Subtlety Principle

Study Vercel, Supabase, Linear. Their surfaces are barely different but still distinguishable. Their borders are light but not invisible.

The squint test: Squint at the interface. Hierarchy should remain perceivable. No single border or surface should jump out. If borders are the first thing noticed, they are too strong.

Spacing System

Pick a base unit (4px or 8px). Use multiples throughout. Every spacing value should be explainable as "X times the base unit."

ContextSpacing Scale
MicroIcon gaps, tight element pairs
ComponentWithin buttons, inputs, cards
SectionBetween related groups
MajorBetween distinct sections

Symmetrical padding rule: TLBR must match. Exception: when content naturally creates visual balance.

/* Correct */
padding: 16px;
padding: 12px 16px; /* Only when horizontal needs room */

/* Avoid */
padding: 24px 16px 12px 16px;

Typography Hierarchy

Build distinct levels distinguishable at a glance:

LevelTreatment
HeadlinesHeavier weight, tighter letter-spacing
BodyComfortable weight for readability
Labels/UIMedium weight, works at smaller sizes
DataOften monospace, use tabular-nums

Do not rely on size alone. Combine size, weight, and letter-spacing.

Depth Strategy

Choose ONE approach and commit:

StrategyCharacterWhen to Use
Borders-onlyClean, technical, denseUtility-focused tools
Subtle shadowsSoft lift, approachableGeneral applications
Layered shadowsRich, premium, dimensionalCards as physical objects
Surface shiftsBackground tints establish hierarchyMinimal, elegant

Do not mix approaches. Inconsistent depth strategy is jarring.

Common Mistakes

MistakeFix
Borders too visibleUse low opacity rgba (0.05-0.12 alpha for dark mode)
Dramatic surface jumpsSubtle lightness changes (2-5%)
Mixed hues for surfacesGray variations, same hue family
Harsh dividersSubtle borders instead of hr elements
Missing interaction statesDefine hover, focus, active for all controls
Pure white cards on colorUse tinted whites matching background
Decorative gradientsGradients must serve function

Red Flags - STOP and Restart Properly

When any of these thoughts occur, STOP immediately:

  • "This is just a simple component, defaults are fine"
  • "The user wants it fast, skip discovery"
  • "I already know what looks good here"
  • "Inter/Roboto will work, no need to explore fonts"
  • "Standard cards and shadows are professional enough"
  • "This is internal tooling, aesthetics matter less"
  • "Just make it clean and modern"

All of these mean: The discovery process is being skipped. Restart with proper exploration.

Common Rationalizations

ExcuseReality
"Requirements are clear, no discovery needed"Discovery prevents template output. Do it anyway.
"User wants speed over exploration"Exploration takes 5 minutes. Rework from generic output takes hours.
"This is a standard component"Standard is exactly what discovery prevents.
"I know what works for this type of product"Experience creates blind spots. Fresh exploration reveals better options.
"Defaults exist because they work"Defaults exist because they are easy. Easy is not distinctive.
"Can refine aesthetics later""Later" rarely comes. Aesthetic debt compounds. Build right from start.
"Internal tool, users do not care"Internal users deserve craft. Poor tools reduce productivity.

Quality Checklist

Before finalizing any interface design (see references/VALIDATION-CHECKS.md for detailed validation):

Discovery:

  • 5+ domain concepts identified
  • 5+ native colors explored
  • Signature element defined
  • 3 defaults named and replaced

Intent:

  • User persona specified
  • Core action (verb) defined
  • Feeling articulated (not "clean" or "modern")

Execution:

  • Token primitives established
  • Surface elevation system defined
  • Single depth strategy applied consistently
  • Spacing uses base unit multiples
  • Typography hierarchy distinguishable at squint test

Validation:

  • Squint test passes (hierarchy visible, no element jumps out)
  • No defaults remain unquestioned
  • Signature element is memorable

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

92/100Analyzed 2/19/2026

Highly comprehensive skill on interface design patterns with excellent depth, structure, and actionable guidance. Covers the full design discovery process with specific examples, tables, and concrete rules. Very high reusability as it applies to any product type. Some minor incompleteness due to missing referenced files (CRAFT-PRINCIPLES.md, VALIDATION-CHECKS.md). Tags don't match content (api/ci-cd/testing vs interface design), suggesting a metadata error. No project-specific content detected, making it appropriately generic.

100
95
95
90
95

Metadata

Licenseunknown
Version-
Updated2/8/2026
PublisherdeepeshBodh

Tags

apici-cdtesting