mcpField
S
spacing-system

spacing-system

github.com/infrasity-labsDesign & UI15077 installsUpdated 18w ago
Repository

About spacing-system

A design skill for establishing consistent interface spacing and layout rhythm, covering spacing scales, application rules, and density modes. It is for creating reusable spacing systems and checking layouts across viewports.

Key features

  1. 01Set a base unit and spacing scale
  2. 02Distinguish container padding and element gaps
  3. 03Set spacing based on content relationships
  4. 04Define compact, comfortable, and spacious modes
  5. 05Document spacing intent and check viewports

Use cases

  1. 01Create consistent component spacing rules
  2. 02Tune density in data-heavy views
  3. 03Unify layout rhythm across pages

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/infrasity-labs/dev-gtm-claude-skills --skill spacing-system

After installing, type/spacing-systemin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported