New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Design a spacing and layout token system for a Figma design

Figma Spacing System Skill

by mohitagw15856 · MIT license · ★ 1,395 on GitHub · updated Sep 23

Figma Spacing System Skill cover

Design a spacing and layout token system for a Figma design system. Use when asked to create a spacing system, define layout tokens, set up a grid system, build a spacing scale, or establish layout foundations for a Figma file.

---
name: figma-spacing-system
description: "Design a spacing and layout token system for a Figma design system. Use when asked to create a spacing system, define layout tokens, set up a grid system, build a spacing scale, or establish layout foundations for a Figma file. Produces a complete spacing scale, grid definition, component spacing conventions, and Figma implementation guide."
---

# Figma Spacing System Skill

Produces a complete spacing and layout token system — the foundation that makes a design system consistent and developer handoff unambiguous.

## Required Inputs

- **Platform** (iOS / Android / Web / Multi-platform)
- **Base unit** (4px / 8px — default to 8px)
- **Design system name** (for token naming)
- **Component density** (compact / standard / comfortable)
- **Grid requirements** (or "derive from platform standard")

## Output Structure

Overview

Produces a complete spacing and layout token system — the foundation that makes a design system consistent and developer handoff unambiguous.

Manual install (npx, ZIP)
Claude Codenpx skills add mohitagw15856/pm-claude-skills --skill figma-spacing-system -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/mohitagw15856/pm-claude-skills/tar.gz/f6ca79348c55 \ | tar -xz -C ~/.claude/skills --strip-components=2 pm-claude-skills-f6ca79348c55/skills/figma-spacing-system
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/a50baef59780affa46cc/figma-spacing-system.zip" -OutFile "$env:TEMP\figma-spacing-system.zip"; Expand-Archive "$env:TEMP\figma-spacing-system.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.7 KB
Read the files here
mohitagw15856/f6ca7931 file
SKILL.md
Show the full text85 lines

Figma Spacing System Skill

Produces a complete spacing and layout token system — the foundation that makes a design system consistent and developer handoff unambiguous.

Required Inputs

  • Platform (iOS / Android / Web / Multi-platform)
  • Base unit (4px / 8px — default to 8px)
  • Design system name (for token naming)
  • Component density (compact / standard / comfortable)
  • Grid requirements (or "derive from platform standard")

Output Structure

1. Base Unit

[4px or 8px] with rationale. All values must be multiples.

2. Spacing Scale
Token Value Use case
spacing.none 0px Removing space intentionally
spacing.xs 4/8px Icon padding, tight labels
spacing.sm 8/12px Internal component padding compact
spacing.md 12/16px Internal component padding standard
spacing.lg 16/24px Section padding, card internal
spacing.xl 24/32px Between components
spacing.2xl 32/48px Section separation
spacing.3xl 48/64px Page-level breaks
spacing.4xl 64/96px Hero sections
3. Layout Grid

Mobile (375px): 4 columns, margin [value], gutter [value] Tablet (768px): 8 columns, margin [value], gutter [value] Desktop (1440px): 12 columns, margin [value], gutter [value], max content width [value]

4. Component Spacing Conventions
Context Token Example
Button horizontal padding spacing.md Left/right
Button vertical padding spacing.sm Top/bottom
Card internal padding spacing.lg All sides
Input padding spacing.sm vertical, spacing.md horizontal
Icon gap from label spacing.xs
Section gap spacing.xl
5. Figma Implementation
  1. Create SPACING page documenting each token visually
  2. Resources > Variables > create Number collection named Spacing
  3. Apply variables to Auto Layout padding/gap values
  4. Share token names with engineers as-is or via Tokens Studio
6. Anti-Patterns to Avoid
  • Values not on the scale (13px, 22px) — round to nearest token
  • Absolute pixel values in components instead of tokens
  • Mixing 4px and 8px base units in the same product

Quality Checks

  • All token values are multiples of the base unit
  • Scale covers xs through 4xl
  • Grid defined for all relevant breakpoints
  • Component conventions cover common decisions
  • Figma implementation steps included

Anti-Patterns

  • Do not create a spacing scale with arbitrary values — the scale must follow a consistent mathematical ratio (e.g. 4px base, 8-4-2 system)
  • Do not define spacing tokens without Figma implementation instructions — token names alone are not actionable
  • Do not create a spacing system that doesn't account for component-level spacing conventions — global tokens and component usage must both be documented
  • Do not skip grid definitions — spacing without a grid system is incomplete layout foundation documentation
  • Do not produce a spacing system that ignores responsive behaviour — define how spacing adapts across breakpoints

Example Trigger Phrases

  • "Create a spacing system for our Figma design system"
  • "Define our spacing tokens for Figma"
  • "Set up a grid and spacing scale for [product]"
  • "What spacing values should we use in our design system?"
  • "Help me build the layout foundation for our Figma file"
1---
2name: figma-spacing-system
3description: "Design a spacing and layout token system for a Figma design system. Use when asked to create a spacing system, define layout tokens, set up a grid system, build a spacing scale, or establish layout foundations for a Figma file. Produces a complete spacing scale, grid definition, component spacing conventions, and Figma implementation guide."
4---
5 
6# Figma Spacing System Skill
7 
8Produces a complete spacing and layout token system — the foundation that makes a design system consistent and developer handoff unambiguous.
9 
10## Required Inputs
11 
12- **Platform** (iOS / Android / Web / Multi-platform)
13- **Base unit** (4px / 8px — default to 8px)
14- **Design system name** (for token naming)
15- **Component density** (compact / standard / comfortable)
16- **Grid requirements** (or "derive from platform standard")
17 
18## Output Structure
19 
20### 1. Base Unit
21[4px or 8px] with rationale. All values must be multiples.
22 
23### 2. Spacing Scale
24 
25| Token | Value | Use case |
26|---|---|---|
27| spacing.none | 0px | Removing space intentionally |
28| spacing.xs | 4/8px | Icon padding, tight labels |
29| spacing.sm | 8/12px | Internal component padding compact |
30| spacing.md | 12/16px | Internal component padding standard |
31| spacing.lg | 16/24px | Section padding, card internal |
32| spacing.xl | 24/32px | Between components |
33| spacing.2xl | 32/48px | Section separation |
34| spacing.3xl | 48/64px | Page-level breaks |
35| spacing.4xl | 64/96px | Hero sections |
36 
37### 3. Layout Grid
38 
39Mobile (375px): 4 columns, margin [value], gutter [value]
40Tablet (768px): 8 columns, margin [value], gutter [value]
41Desktop (1440px): 12 columns, margin [value], gutter [value], max content width [value]
42 
43### 4. Component Spacing Conventions
44 
45| Context | Token | Example |
46|---|---|---|
47| Button horizontal padding | spacing.md | Left/right |
48| Button vertical padding | spacing.sm | Top/bottom |
49| Card internal padding | spacing.lg | All sides |
50| Input padding | spacing.sm vertical, spacing.md horizontal | |
51| Icon gap from label | spacing.xs | |
52| Section gap | spacing.xl | |
53 
54### 5. Figma Implementation
551. Create SPACING page documenting each token visually
562. Resources > Variables > create Number collection named Spacing
573. Apply variables to Auto Layout padding/gap values
584. Share token names with engineers as-is or via Tokens Studio
59 
60### 6. Anti-Patterns to Avoid
61- Values not on the scale (13px, 22px) — round to nearest token
62- Absolute pixel values in components instead of tokens
63- Mixing 4px and 8px base units in the same product
64 
65## Quality Checks
66- [ ] All token values are multiples of the base unit
67- [ ] Scale covers xs through 4xl
68- [ ] Grid defined for all relevant breakpoints
69- [ ] Component conventions cover common decisions
70- [ ] Figma implementation steps included
71 
72## Anti-Patterns
73 
74- [ ] Do not create a spacing scale with arbitrary values — the scale must follow a consistent mathematical ratio (e.g. 4px base, 8-4-2 system)
75- [ ] Do not define spacing tokens without Figma implementation instructions — token names alone are not actionable
76- [ ] Do not create a spacing system that doesn't account for component-level spacing conventions — global tokens and component usage must both be documented
77- [ ] Do not skip grid definitions — spacing without a grid system is incomplete layout foundation documentation
78- [ ] Do not produce a spacing system that ignores responsive behaviour — define how spacing adapts across breakpoints
79 
80## Example Trigger Phrases
81- "Create a spacing system for our Figma design system"
82- "Define our spacing tokens for Figma"
83- "Set up a grid and spacing scale for [product]"
84- "What spacing values should we use in our design system?"
85- "Help me build the layout foundation for our Figma file"
View all files on GitHub →

Details

Updated
Sep 23, 2026
License
MIT
Stars on the repo
★ 1,395
Checked
Source
mohitagw15856/pm-claude-skills ↗
Creator
mohitagw15856 · 193 listings
View creator

Made with figma-spacing-system

Figma Spacing System Skill — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)
Figma Spacing System Skill — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

Figma Spacing System Skill — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)
Figma Spacing System Skill — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

Similar skills

See all →
SkillDesign, redesign, shape, critique, audit, polish, clarifyImpeccablepbakaus/impeccable · by pbakausUse when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.★ 70.4k GitHub starsSkillApple's approach to interface design and fluidApple designemilkowalski/skills · by emilkowalskiApple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.★ 40.8k GitHub starsSkillBuild an animation from scratchBuilding Animationsemilkowalski/skills · by emilkowalskiBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.★ 40.8k GitHub starsSkillRenders a component you choose in every stateBreakjakubkrehel/skills · by jakubkrehelRenders a component you choose in every state and scenario on a temporary page and stress tests it.★ 7.1k GitHub starsSkillReviews your work across multiple categories like UIChange reviewjakubkrehel/skills · by jakubkrehelReviews your work across multiple categories like UI, typography, layout, color, writing and accessibility and gives you a detailed analysis of the findings.★ 7.1k GitHub starsSkillCraft-first interface design for dashboards, admin panelsThe ProblemDammyjay93/interface-design · by Dammyjay93Craft-first interface design for dashboards, admin panels, SaaS apps, tools, settings pages, data interfaces, and interactive products. Use when designing, building, reviewing, auditing, or refining product UI where visual craft, layout hierarchy, tokens, states, visual direction, or design-system consistency matter. Not for marketing pages, landing pages, campaigns, or brand-only work.★ 5.8k GitHub stars

More from mohitagw15856

SkillDesign a 360-degree feedback survey or write a structured360-Degree Feedback Template Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.★ 1.4k GitHub starsSkillDesign statistically rigorous A/B tests for product featuresA/B Test Planner Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.★ 1.4k GitHub starsSkillGenerate a WCAG 2.2 accessibility audit checklistAccessibility Audit Skillmohitagw15856/pm-claude-skills · by mohitagw15856Generate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.★ 1.4k GitHub starsSkillBuild a structured account plan for any key customerAccount Plan Skillmohitagw15856/pm-claude-skills · by mohitagw15856Build a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.★ 1.4k GitHub starsSkillOptimize an article for Answer Engine Optimization so AIAEO Optimizer Skillmohitagw15856/pm-claude-skills · by mohitagw15856Optimize an article for Answer Engine Optimization (AEO) so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines. Produces an AEO-optimised rewrite with question headings, 50–80 word answer capsules, a paragraph-length audit, and flagged trust signals.★ 1.4k GitHub starsSkillConduct a structured ethical review of an AI or ML featureAI Ethics Review Skillmohitagw15856/pm-claude-skills · by mohitagw15856Conduct a structured ethical review of an AI or ML feature, model, or product. Use when preparing to deploy an AI system, assessing algorithmic risk, auditing a model for bias, or producing a responsible AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with a risk tier score, pre-deployment checklist, and prioritised mitigations.★ 1.4k GitHub stars