/visual-design-principles:craftsmanship-polishfrom visual-design-principles
Polishes UI details with retina-ready images, layered shadow systems, consistent border-radius, micro-interactions, skeleton screens, and CLS reduction. Helps achieve pixel-perfect alignment and a professional finish.
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.
Craftsmanship is the strongest single correlate with perceived visual quality in the VisAWI model (Moshagen & Thielsch, 2010). Users cannot articulate why a polished interface feels trustworthy, but they punish sloppiness instantly. Every blurry image, inconsistent radius, and missing hover state erodes credibility.
Enforce the >90% grid alignment rule from the layout-spatial-structure skill. Misalignment of even 1px between adjacent elements is visible at retina resolution.
Debug technique: Add outline: 1px solid rgba(255,0,0,0.3) to all elements temporarily. Misaligned edges become obvious.
| Rule | Requirement |
|---|---|
| Resolution | All images must be >=2x rendered resolution (e.g., 800px image for a 400px container) |
| Format priority | AVIF > WebP > JPEG (use <picture> with fallbacks) |
| Hero image budget | <=300KB after compression |
| Lazy loading | All images below the fold use loading="lazy" |
| Aspect ratio | Always specify width and height attributes to prevent CLS |
Use layered box-shadows for realistic depth. Single-layer shadows look flat and artificial. Define exactly 5 levels and use them consistently.
| Level | Name | Use Case | Box-Shadow |
|---|---|---|---|
| 0 | Flat | Inline elements, flush cards | none |
| 1 | Card | Cards, tiles, raised surfaces | 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1) |
| 2 | Dropdown | Dropdowns, popovers, tooltips | 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06) |
| 3 | Modal | Modals, dialogs, drawers | 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05) |
| 4 | Popover | Floating toolbars, command palettes | 0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04) |
Rule: Higher elevation = larger offset + larger blur + lower opacity. Never use a single heavy shadow.
Define 3-4 radius values. Use them everywhere. Never invent ad-hoc values.
| Token | Value | Use |
|---|---|---|
--radius-sm | 4px | Badges, tags, inline code |
--radius-md | 8px | Cards, inputs, buttons |
--radius-lg | 12px | Modals, large containers |
--radius-full | 9999px | Avatars, pills, toggles |
Nested radius rule: When an element with border-radius contains a child with border-radius, the inner radius = outer radius - padding. A card with border-radius: 12px and padding: 8px gives children border-radius: 4px.
Every interactive element must have visible hover, focus, and active states.
| State | Implementation |
|---|---|
| Hover | Color shift, subtle scale, or shadow lift |
| Focus | Visible focus ring (2px solid, offset 2px) — see accessibility-inclusive-design for full focus rules |
| Active | Slight scale-down (transform: scale(0.98)) for tactile feedback |
For transition timing, easing, and prefers-reduced-motion rules, see the visual-interest-expression skill which owns motion design guidelines.
Use a single icon library per project. Mix outlined and filled icons deliberately: outlined for navigation, filled for active/selected states. Maintain consistent stroke weight (1.5px or 2px) and size (20px or 24px grid). Never mix icon sets from different libraries.
Skeleton screens beat spinners for loads of 1.5-10 seconds. Match the skeleton to actual content shape. Use a left-to-right shimmer animation at a 1.5s cycle (Bill Chung research: perceived as faster than pulsing).
Empty states must include: illustration or icon + heading + description + primary CTA. Never show a blank page.
Error states must include: what went wrong + what the user can do + a retry action.
Target CLS < 0.1 (Google Core Web Vitals "good" threshold).
| Cause | Fix |
|---|---|
| Images without dimensions | Always set width and height attributes |
| Web fonts causing FOUT | Apply font-display strategy (see typography skill for web font loading rules) |
| Dynamic content injected above fold | Reserve space with min-height or use content-visibility: auto |
| Ads or embeds without reserved space | Set explicit container dimensions before content loads |
| Anti-Pattern | Why It Fails | Fix |
|---|---|---|
| Pixelated or blurry images | Signals amateur quality | Serve >=2x resolution in AVIF/WebP |
| Single heavy box-shadow | Looks like a drop shadow from 2010 | Use layered shadows with multiple values |
| Inconsistent border-radius (4px here, 6px there, 10px elsewhere) | Subtle discord that feels "off" | Define 3-4 tokens, use them everywhere |
| No hover or focus states | Interactive elements feel dead | Add transition on every clickable element |
| Flash of unstyled text (FOUT) | Layout jumps, text reflows | Apply web font loading rules (see typography skill) |
| Spinners for everything | No spatial context during loading | Use skeleton screens matching content shape |
Working implementations in examples/:
examples/shadow-system-and-states.md — Complete elevation system with layered shadows, skeleton screen implementation, and empty state component in CSS/Tailwind/ReactWhen reviewing or building for craftsmanship:
layout-spatial-structure skill)width and height attributesvisual-interest-expression skill for timing and easing)typography skill rules (font-display, preloading)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./consistency-design-systemsThis skill should be used when the user is building a design system, defining design tokens, creating component libraries, implementing CSS custom properties, ensuring visual consistency across pages, choosing between design systems (Material, Ant, Carbon), or auditing a codebase for design consistency. Covers design tokens (primitive → semantic → component layers), atomic design methodology, token governance, and systematic consistency./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