# M Spacing

> Generate a spacing scale from a base unit. 15 steps from 2px to 128px on a 4px grid.

- Skill: `dragoon0x/m-spacing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dragoon0x/m-spacing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/m-spacing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dragoon0x/m-spacing

---

# /m-spacing — Spacing Scale
Base: 4px. Scale: 2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96, 128.\n\nOutput as --space-0.5 through --space-32 CSS custom properties.\n\nEvery padding, margin, and gap in the codebase must use these values.

