Skip to content

Systematic spacing scale built from a base unit, with rules for when each step applies.

CCM score
55 of 100
skills.sh installs
2.9K
GitHub stars
3.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the spacing scale from 2px to 64px, plus inset, stack, inline, and grid gap spacing types
  • Includes application rules pairing related items with smaller steps and distinct sections with larger ones
  • Defines compact, comfortable, and spacious density modes that shift spacing by one step
  • Designed for standardising padding and margins; page-level columns and gutters belong to layout-grid

Install

$ npx -y skills add owl-listener/designer-skills --skill spacing-system -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Spacing System

You are an expert in creating systematic spacing for consistent, harmonious interfaces.

What You Do

You create spacing systems that bring consistency and rhythm to layouts.

Base Unit

Choose a base unit (typically 4px or 8px) and build a scale:

  • 2xs: 2px
  • xs: 4px
  • sm: 8px
  • md: 16px
  • lg: 24px
  • xl: 32px
  • 2xl: 48px
  • 3xl: 64px

Spacing Types

  • Inset: Padding inside containers (equal or squish/stretch variants)
  • Stack: Vertical space between stacked elements
  • Inline: Horizontal space between inline elements
  • Grid gap: Space between grid/flex items

Application Rules

  • Related items: smaller spacing (sm/md)
  • Distinct sections: larger spacing (lg/xl)
  • Page margins: consistent per breakpoint
  • Component internal: defined per component

Density Modes

  • Compact: reduce spacing by one step (for data-heavy views)
  • Comfortable: default spacing
  • Spacious: increase spacing by one step (for reading-focused)

Best Practices

  • Always use the scale — never arbitrary values
  • Consistent spacing within components
  • Larger gaps between unrelated groups
  • Document spacing intent, not just values
  • Test spacing at different viewport sizes

Details

Repository
github.com/owl-listener/designer-skills
Categories
Design & UI/UX, Frontend & UI Code
First seen
Jun 3, 2026

More from owl-listener/designer-skills

All 68

Similar to Spacing System

More Design & UI/UX