Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

design-principles

БесплатноБез исполняемых скриптовНе проверен

Core visual design principles (visual hierarchy, Gestalt grouping, composition, balance, contrast, white space, color, typography) with UI fixes, a checklist…

Ormus-Solutionsот Ormus-Solutions★ 128 звёзд на GitHub

Об этом скилле

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) or divide-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
Полный SKILL.md на GitHub

Установить design-principles в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/principles-checklist.mdreferences/color-theory.mdreferences/composition-rules.mdreferences/gestalt-principles.mdreferences/typography-fundamentals.mdreferences/visual-hierarchy.md

FAQ

Что делает скилл design-principles?

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.

Как установить скилл design-principles?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл design-principles запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить design-principles с