Apply visual design principles when building or reviewing UI/frontend code.
Based on Design for Hackers by David Kadavy. Use when: choosing fonts, colors,
or layout proportions; reviewing designs for visual issues; establishing visual
hierarchy; creating color palettes or type scales; adding motion or interaction;
making responsive design decisions; building any user-facing interface.
Based on principles from Design for Hackers by David Kadavy
Modes of Operation
This skill operates in two modes: CHECKER (audit existing designs) and APPLIER (build from scratch). Choose based on context.
CHECKER Mode: Reviewing an Existing Design
Run through these checks in order. Stop and investigate when a check fails.
Phase 0: Context
Before auditing, ask: What is this design for? Who is the audience? What framework/constraints exist? What aesthetic direction was intended?
1. Purpose and Foundation
Design has a clearly articulated purpose driving all decisions
Visual design and information design work together (~75% of credibility signals)
Level of polish is appropriate to context (not over- or under-designed)
Style is grounded in current tech/culture, not surface-copying a trend
See references/chapter-01-why-design-matters.md, references/chapter-02-purpose-of-design.md
Issues found? → Run
/exam
for detailed diagnosis or
/design
to establish foundations.
2. Typography
Typeface is appropriate for rendering medium (screen vs print)
Body text passes squint test (even gray texture, no dark blotches)
No fake bold, fake italic, or stretched/compressed type
Font pairing uses compatible letter structures or deliberate extreme contrast
Max two font families; one serif + one sans-serif
Proper typographic characters (smart quotes, real dashes, no double spaces)
See references/chapter-03-typography.md, references/appendix-fonts-and-typography.md
Issues found? → Run
/fonts
for typography selection and configuration.
3. Proportions and Layout
Major element sizes relate through identifiable ratios (2:3, 3:4, golden)
Margins create geometric relationship between content and container
Size progressions follow a consistent scale factor (e.g., multiply by 0.75)
See references/chapter-05-proportions.md
Issues found? → Run
/exam
for detailed diagnosis.
4. Composition
One element is clearly dominant (visual anchor / entry point)
Eye is guided through composition by directional forces
Gate: Purpose defined and personas created before proceeding to Phase 2.
Phase 2: Structure
6. Choose a proportional system (2:3, 3:4, or golden ratio)
7. Derive canvas, content area, and margins from that ratio
8. Build a proportional type scale (e.g., 5, 7, 9, 12, 16, 21, 28, 37, 50, 67 at 3:4)
9. Set up grid for element placement
Read references/chapter-05-proportions.md
Gate: Proportional system chosen and type scale defined before proceeding to Phase 3.
Phase 3: Typography
10. Select body font matched to rendering medium (sans-serif for web body)
11. Identify letter structure (humanist, geometric, realist)
12. If pairing, match structures for harmony or use extreme contrast
13. Set leading 1.2-1.4em, ragged right for web, proper typographic characters
Gate: Font selection finalized and type scale applied before proceeding to Phase 4.
Phase 4: Composition and Hierarchy
14. Establish one dominant element as visual anchor
15. Build hierarchy: white space first, then weight, size, color, ornamentation (one at a time)
16. Create foreground/background depth layers
17. Guide eye with directional forces (alignment, progressive sizing)
18. Ensure similarity (shape language, repeating motifs)
Gate: Visual hierarchy established with clear dominance before proceeding to Phase 5.
Phase 5: Color
19. Choose background appropriate to content density (white for content-heavy)
20. Select base hue matching desired mood
21. Build palette using color wheel (monochromatic, analogous, complementary, etc.)
22. Assign functional colors (errors, success, links, CTAs)
23. Use warm/cool for depth; hue-shifted shadows, not pure black
24. Test for colorblindness; add redundant cues (shape, text, position)
Gate: Color palette defined and accessibility tested before proceeding to Phase 6.
Phase 6: SEO and Technical
25. Semantic HTML with proper heading hierarchy
26. Unique title tags, descriptive URLs, meta descriptions
27. Descriptive image filenames and alt text
28. CSS3 native effects over image hacks