/visual-design-principles:consistency-design-systemsfrom visual-design-principles
Ensures visual consistency in design systems by defining three-layer design tokens (primitive, semantic, component), running 10-value audits, and applying atomic design methodology.
Ships in visual-design-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Consistency is the most central aesthetic factor. The VisAWI (Visual Aesthetics of Websites Inventory) instrument identifies Craftsmanship as a primary dimension -- and the fastest way to score high on Craftsmanship is rigid consistency. Every time a user encounters the same component rendered two slightly different ways, trust erodes. The CRAP design framework (Contrast, Repetition, Alignment, Proximity) names Repetition as a core principle for exactly this reason.
Design tokens are the atomic values that encode visual decisions. Organize them in three layers, referencing downward only.
| Layer | Naming Pattern | Example | Changes When |
|---|---|---|---|
| Primitive | --{category}-{scale} | --blue-500, --space-4, --radius-md | Brand overhaul |
| Semantic | --color-{purpose} | --color-primary, --color-bg-surface | Theme switch (light/dark) |
| Component | --{component}-{property} | --button-bg, --card-radius | Component redesign |
Rule: Components reference semantic tokens. Semantic tokens reference primitives. Never skip a layer.
Define tokens for every visual property. Constrain each category to a finite set.
| Category | Max Unique Values | Example Tokens |
|---|---|---|
| Color | <= 15 | --color-primary, --color-bg-surface, --color-status-error |
| Spacing | <= 10 | See whitespace-density skill for the full spacing scale |
| Typography | <= 6 sizes | --font-xs, --font-sm, --font-base, --font-lg, --font-xl, --font-2xl |
| Elevation | <= 5 levels | --shadow-0 through --shadow-4 (see craftsmanship-polish skill for definitions) |
| Border radius | <= 4 values | See craftsmanship-polish skill for reference values |
| Motion | <= 3 durations | --duration-fast (100ms), --duration-normal (200ms), --duration-slow (300ms) |
Extract all unique values for any single property in the codebase. If there are more than 10 unique values for spacing, or more than 15 for color, the system has drifted. Run this audit periodically.
How to audit:
Build from the smallest constrained unit upward.
| Level | Definition | Example |
|---|---|---|
| Atoms | Single elements, unsplittable | Button, input, label, icon |
| Molecules | Small groups of atoms with one function | Search bar (input + button), form field (label + input + error) |
| Organisms | Complex groups forming a section | Navigation bar, pricing card, data table |
| Templates | Page-level layout with placeholder content | Dashboard layout, settings page layout |
| Pages | Templates filled with real content | The actual rendered screen |
Every atom uses tokens. Molecules compose atoms without overriding their tokens. If a molecule needs a different button color, create a semantic token variant -- never hard-code a value.
The same component at the same level must share exact styles across every screen. A "Save" button on the settings page must be pixel-identical to a "Save" button on the profile page. If it is not, the user perceives lower quality even without consciously noticing the difference.
Audit by taking screenshots of the same component across different pages and overlaying them. Any variation is a bug.
| Anti-Pattern | Problem | Fix |
|---|---|---|
Magic numbers (padding: 13px) | Breaks the spacing scale, impossible to maintain | Use nearest token (--space-3: 12px) |
| One-off styles | Inconsistency across pages, maintenance burden | Create a reusable token or component |
| Token sprawl (50+ colors) | Effectively no system at all | Constrain to <= 15 colors, audit and merge |
Inconsistent naming (--btn-bg vs --button-background) | Developer confusion, duplication | Adopt one naming convention and enforce it |
| Skipping token layers (component referencing primitive) | Theme switching breaks | Always reference through semantic layer |
Working implementations in examples/:
examples/design-tokens-system.md -- Complete token system in CSS custom properties with primitive/semantic/component layers, Tailwind config, and React theme providerWhen reviewing or building a design system:
craftsmanship-polish for reference values)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oborchers/fractional-cto --plugin visual-design-principles12 skills in this plugin
/accessibility-inclusive-designThis skill should be used when the user is implementing accessible design, checking color contrast ratios, adding keyboard navigation, supporting screen readers, handling color blindness, implementing ARIA attributes, designing focus indicators, meeting WCAG 2.2 compliance, or building inclusive interfaces. Covers WCAG 2.2 AA requirements, color contrast (4.5:1 body, 3:1 large text), color independence (never rely on color alone), keyboard navigation, focus indicators, touch targets, screen reader considerations, and automated testing with axe-core./color-theory-applicationThis skill should be used when the user is selecting colors, building color palettes, defining color systems, implementing dark mode, choosing brand colors, creating shade scales, applying the 60-30-10 rule, selecting data visualization colors, or checking color contrast. Covers HSL color model, harmony schemes (complementary, analogous, triadic), systematic shade scale generation, WCAG contrast requirements, semantic color systems, and dark mode design./craftsmanship-polishThis skill should be used when the user is polishing UI details, optimizing images, implementing shadows or elevation systems, ensuring pixel-perfect alignment, defining border-radius systems, adding micro-interactions or transitions, handling loading/empty/error states, or reducing Cumulative Layout Shift (CLS). Covers VisAWI Craftsmanship facet, retina-ready images, layered shadows, consistent border-radius, transition timing, skeleton screens, and layout stability./design-evaluation-scoringThis skill should be used when the user asks to evaluate, score, or audit a visual design, wants to compare designs quantitatively, needs an anti-pattern checklist, or wants to understand the 8-dimension design quality framework. Covers the VisAWI-aligned 8-dimension scoring methodology (1-5 per dimension, 40-point maximum), processing fluency theory, the anti-pattern rapid screening checklist, and the complete evaluation workflow./layout-spatial-structureThis skill should be used when the user is building or reviewing page layouts, grid systems, column structures, card grids, sidebar layouts, CSS Grid or Flexbox decisions, element alignment, spatial composition, or responsive grid strategies. Covers the 12-column grid, 8-point spacing system, Gestalt proximity principle, visual weight distribution, and layout patterns from Material Design and Bootstrap./responsive-designThis skill should be used when the user is implementing responsive layouts, choosing breakpoints, building mobile-first designs, using CSS container queries, implementing responsive images (srcset, picture), sizing touch targets, designing responsive navigation, or adapting tables for mobile. Covers mobile-first philosophy, breakpoint strategy, fluid grids with CSS Grid, container queries, responsive images, touch target sizing (44x44px minimum), and responsive tables.Other plugins' skills for the same job