design-principles
Skill18 starsChanged 2 months agoMITView on GitHub
Core visual design principles (visual hierarchy, Gestalt grouping, composition, balance, contrast, white space, color, typography) with UI fixes, a checklist, and deep-dive references. Use when making or defending a layout, type, or color decision, or when a design feels off and you need to name why.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- PuriyaMirza/personal-claude-skillstheir own version, first seen Sep 26, 2026
- simtransforma/HAOS-CC-Modeltheir own version, first seen Sep 23, 2026
- omidnw/my-skillstheir own version, first seen Aug 23, 2026
- Crisiswastaken/SKILLStheir own version, first seen Aug 19, 2026
- zstvns/design-skillstheir own version, first seen Aug 8, 2026
- miovrag/claude-skillstheir own version, first seen Jun 12, 2026
Used with
Projects with it also use ui-ux-pro-max.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- launchapp-dev/animus-cli★ 38same name
- zstvns/design-skills★ 15same name
- shualippe/design-principles-skill★ 8same name
- madeinlowcode/skills-claude-code★ 7same name
- utxo-AG/claude-skills★ 2same name
- Crisiswastaken/SKILLS★ 1same name
- dazuck/claude-code-skills★ 1same name
- miovrag/claude-skills★ 1same name
- PuriyaMirza/personal-claude-skills★ 1same name
- simtransforma/HAOS-CC-Model★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- brand-systemsSkill
- design-mastersSkill
- design-movementsSkill
- premium-saas-designSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
6
Distinctive
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
- Distinctive: line 22
The Law: Not all elements are equally important.
- Distinctive: line 70
When multiple card types exist, make categories visually distinct:
- Distinctive: line 151
Use for: corporate, luxury, authoritative
- Distinctive: line 156
Use for: creative, startups, editorial
- Distinctive: line 248
The Law: All elements should feel like they belong together.
- Distinctive: line 274
Read the matching file when a decision needs more depth than the summary above.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design Principles
The fundamental laws governing visual perception and communication. These principles are not opinions—they're observations about how human vision and cognition work.
When to Use This Skill
- Making visual design decisions
- Evaluating whether a design "works"
- Explaining why something feels off
- Teaching design fundamentals
- Debugging design problems
Core Principles
1. Visual Hierarchy
The Law: Not all elements are equally important. Design must guide the eye.
Establishing Hierarchy:
| Tool | What It Does | Example |
| Scale | Larger = more important | Hero headlines vs. body text |
| Weight | Heavier = more important | Bold headings vs. light body |
| Color | Saturated/contrasting = attention | Primary CTA vs. secondary |
| Position | Top-left (in LTR) = first seen | Logo placement |
| Space | More space = more importance | Generous padding around CTAs |
| Depth | Shadows/elevation = prominence | Floating action buttons |
Testing Hierarchy: Blur the design at 50%. Can you still identify:
- The primary focal point?
- The secondary information?
- The action you should take?
2. Gestalt Principles
The Law: The brain organizes visual elements into meaningful groups.
Proximity
Elements near each other are perceived as related.
Good: [Label] [Label]
[Input] [Input]
(8px gap) (8px gap)
(32px gap between groups)
[Label] [Label]
[Input] [Input]
Bad: [Label] [Label] [Label] [Label]
[Input] [Input] [Input] [Input]
(equal spacing destroys grouping)In Tailwind:
- Related items:
space-y-2(8px) - Unrelated groups:
space-y-8(32px) ordivide-y
Similarity
Elements that look alike appear grouped.
When multiple card types exist, make categories visually distinct:
- Same category: same border-radius, shadow, padding
- Different category: different color, icon style, or layout
Continuity
The eye follows smooth paths.
Applied to navigation:
[Home] → [Products] → [About] → [Contact]
↓
[Category A]
[Category B]
[Category C]Lines don't need to be visible—implied lines work.
Closure
The mind completes incomplete shapes.
Useful for:
- Logo design (the WWF panda)
- Icon design (implied shapes)
- Cards that bleed off screen (implies more content)
Figure/Ground
Clear separation between subject and background.
Classic example: the arrow in the negative space between the E and x of the FedEx logo.
Common failures:
- Text on busy image backgrounds
- Low contrast between layers
- Unclear what's clickable vs. static
3. The Rule of Thirds
The Law: Placing subjects at 1/3 intersections creates natural balance.
+-------+-------+-------+
| | | |
| ● | | | ← Focal point at intersection
+-------+-------+-------+
| | | |
| | | |
+-------+-------+-------+
| | | |
| | | |
+-------+-------+-------+For web layouts:
- Hero text left-aligned, hitting left-third
- Key visuals placed at intersection points
- Whitespace fills remaining thirds
4. Golden Ratio (1:1.618)
The Law: A proportion that recurs in art and architecture. Evidence for an innate preference for it is weak and mixed, so treat it as one useful ratio among others (1.25, 1.333, 1.5).
Applications:
- Content width to sidebar:
1:1.618 - Heading to body size:
1.618:1 - Spacing multipliers:
16px → 26px → 42px
Tailwind approximation:
Base unit: 16px (text-base)
Medium: 24px (text-2xl ≈ 16 × 1.5)
Large: 36px (text-4xl = 2.25rem ≈ 16 × 2.25)5. Visual Balance
The Law: Compositions should feel stable, not falling.
Symmetrical Balance
- Equal weight on both sides
- Formal, stable, traditional
- Use for: corporate, luxury, authoritative
Asymmetrical Balance
- Unequal elements balanced by visual weight
- Dynamic, interesting, modern
- Use for: creative, startups, editorial
Visual Weight Factors:
| Element | Adds Weight |
| Size | Larger = heavier |
| Color | Darker, saturated = heavier |
| Complexity | Detailed = heavier |
| Position | Higher in the frame = heavier (Arnheim) |
| Isolation | Alone = heavier |
6. Alignment
The Law: Elements should share visual lines, even if not explicitly drawn.
Strong Alignment:
[Logo]
_________________________
[Navigation links ]
_________________________
[Headline ]
[Subhead ]
[CTA Button]
(Everything shares left edge)Weak Alignment:
[Logo]
[Navigation links]
[Headline]
[Subhead ]
[CTA Button]
(No consistent edge)7. Repetition
The Law: Consistent patterns create unity and learnability.
Elements to keep consistent:
- Border radius (all cards same)
- Shadow levels (same depth for same importance)
- Spacing units (multiples of 4px or 8px)
- Color application (primary always means action)
- Typography hierarchy (h2 always looks like h2)
8. Contrast
The Law: Difference creates interest and guides attention.
Types of contrast:
- Size contrast: Large headings, small captions
- Color contrast: Dark on light, warm accents
- Weight contrast: Bold headlines, regular body
- Style contrast: Serif headings, sans body
- Spacing contrast: Tight groups, generous separation
Minimum contrast requirements:
- Body text: 4.5:1 ratio (WCAG AA)
- Large text (24px+ regular, or about 18.66px+ bold): 3:1 ratio
- UI components: 3:1 ratio
9. White Space (Negative Space)
The Law: What you leave empty is as important as what you fill.
Functions of white space:
- Breathing room: Prevents cognitive overload
- Grouping: Separates distinct content areas
- Emphasis: Isolated elements command attention
- Luxury signal: Generous space suggests premium
Common failures:
- Cramming elements to "fit more"
- Equal spacing everywhere (creates monotony)
- Fear of empty space
Tailwind spacing guide:
Tight (related): gap-2 (8px)
Standard (siblings): gap-4 (16px)
Section (groups): gap-8 (32px) or py-12
Page (major): gap-16 (64px) or py-2410. Unity
The Law: All elements should feel like they belong together.
Achieving Unity:
- Consistent color palette
- Unified typography system
- Repeated patterns and components
- Aligned grids
- Harmonious proportions
Testing Unity: Take any element and place it elsewhere. Does it still feel like it belongs? If not, the system lacks unity.
Quick Reference: Principles Applied
| Problem | Principle | Solution |
| "It feels cluttered" | White Space | Increase padding/margins |
| "I don't know where to look" | Hierarchy | Establish clear focal point |
| "It feels disconnected" | Unity/Repetition | Apply consistent patterns |
| "It feels boring" | Contrast | Add variation in size/color/weight |
| "Things seem randomly placed" | Alignment | Create shared edges |
| "The groups are confusing" | Proximity/Similarity | Cluster related items |
| "It feels off balance" | Balance | Redistribute visual weight |
Resources
Read the matching file when a decision needs more depth than the summary above.
- references/gestalt-principles.md: Deep dive on perceptual grouping
- references/visual-hierarchy.md: Comprehensive hierarchy techniques
- references/color-theory.md: Color psychology and application
- references/typography-fundamentals.md: Type as design element
- references/composition-rules.md: Layout and arrangement
- assets/principles-checklist.md: Evaluation checklist
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
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.

