Spacing Foundation

Design System

Foundation

Build an AI-ready Spacing Foundation without starting from scratch

Turn arbitrary gaps and padding into a consistent spacing rhythm your team can customize, document, and hand off to development

Trusted by designers from

Spacing gets messy when gaps are created case by case. Most teams lack shared rules for rhythm, density, and implementation

_

Most spacing systems stop before they become usable infrastructure

Having spacing values is not the same as having a scale, rhythm rules, density logic, grouping guidance, and handoff structure

0

of teams connect tokens across design tools, code, and documentation

Source: zeroheight, 2026

0

+

of developers and designers say handoff between design and code could be improved

Source: Figma, 2025

Foundation shift from local spacing to system layers

1

Local spacing

Spacing values chosen locally without shared scale or usage rules

2

Shared values

Reusable values grouped by size or visual appearance

3

Primitive tokens

Spacing values organized into a structured primitive tokens

4

Semantic roles

Spacing tokens mapped to gaps, padding, and density

5

Documented rules

Rules explain grouping, density, usage, and exceptions

6

System layer

AI context, handoff, and density modes work from one model

Bring structure to your spacing system, wherever you're starting from

Start from scratch, clean up existing spacing values, prepare handoff, or customize your spacing rhythm with AI

Start with rhythm, not just pixel values

Turn gaps, padding, and margins into a system for grouping, hierarchy, and product density

Turn spacing values into a system

Audit existing gaps, clean up local exceptions, and define reusable spacing rules

Use AI without breaking spacing logic

Adapt spacing scale, density, and naming with AI while preserving product rhythm

Bridge between design and code

Connect spacing roles to token meaning, layout behavior, and implementation rules

From arbitrary gaps to a consistent spacing rhythm

Turn disconnected spacing values into a structured scale, density rules, grouping logic, and developer-readable handoff

Spacing foundation process diagram mapping Figma design to developer handoffSpacing foundation process diagram mapping Figma design to developer handoff

Arbitrary gaps without clear usage

Shared spacing scale with clear usage logic

Padding created case by case

Defined padding, gap, and grouping rules

Developers guess which spacing value to use

Developer-readable spacing handoff

Density handled inconsistently

Density decisions documented

Similar patterns use different spacing

Consistent layout rhythm across product surfaces

Spacing values hardcoded in implementation

Spacing tokens mapped to implementation rules

Turn local spacing choices into reusable system roles

Replace disconnected gaps and padding with semantic roles for layout rhythm, grouping, density, and handoff

Raw padding values that show disconnected local layout spacing choices

Before

Local gaps, mixed padding, unclear grouping logic, and repeated decisions

Stable semantic spacing token with defined content grouping roles

After

Spacing scale, rhythm rules, density logic, and developer-readable handoff

Customize, document, and hand off your spacing foundation

Adapt spacing roles, document rhythm rules, and give developers the logic behind gaps, padding, density, and implementation

Structured spacing foundation tokens and gap documentation inside Figma

Figma file

fig

Build from a structured spacing foundation with tokens, semantic roles, density modes, and documentation in one file

Spacing Foundation usage guide

Setup guide

PDF

Customize your spacing scale, density rules, grouping logic, and workflow step by step without breaking the system structure

Spacing Foundation AI prompts library

AI prompts

PDF

Audit spacing values, adapt spacing roles, review density risks, and prepare handoff with repeatable prompts

AI context

Md

Give an LLM the spacing rules and constraints for safer customization

Gemini Notebook

Md

Explore the system and generate briefings from one source

Accessibility

Md

Review touch support, cramped layouts, grouping clarity, and density risks

Dev handoff

Md

Explain spacing roles, token mapping, density behavior, and implementation guidance

A guided workflow for building your spacing foundation

Move from setup to safe customization, accessibility review, and developer-ready handoff

Semantic roles and text styles

Review

Customize

Handoff

▌

Spacing Foundation

I've loaded your Spacing Foundation context. What would you like to review first?

Figma file

AI context

NotebookLM source

1

Review

Review spacing scale, semantic roles, density modes, and documentation

2

Customize

Map spacing values, adjust density, and review grouping risks

3

Handoff

Document spacing roles, density rules, and implementation notes

AI-ready

Spacing Foundation

Build, customize, and hand off a mature spacing system foundation

$99

Markdown context for these AI tools and other LLMs

Figma system

TOKENS, SCALE, DENSITY

AI workflow

Markdown CONTEXT, PROMPTS, REVIEW

System guidance

SETUP, RULES, IMPLEMENTATION

Figma spacing system with tokens and density

Spacing rules for rhythm and layout

Setup for spacing scale, density, and workflow

AI context and prompts for customization

Accessibility and implementation context

🏄‍♂️

Discount for students

Discount for students

Email hey@designsystems.surf to get student offer

Email hey@designsystems.surf to get student offer

Make spacing decisions easier for devs to implement consistently

The dev handoff file explains spacing roles, density, gap vs padding, and implementation rules

Design system mapping from Figma spacing roles to CSS code

Token meaning

Explain what spacing tokens represent and how to use them in design and code

Rhythm logic

Clarify stack, inline, layout gap, padding, and density relationships across product surfaces

Usage rules

Show where spacing roles should and should not be used to avoid local exceptions

Implementation notes

Give developers the logic behind spacing, density, and implementation

Use AI with spacing system context, not generic prompts

Give Claude or another LLM the rules, constraints, and spacing logic it needs to help without inventing a new system

OpenAI frames context optimization as a core lever for improving LLM accuracy

Source: OpenAI, LLM Accuracy Guide

Progress from generic prompts to AI-ready structured spacing systems

Role-safe changes

Adapt spacing, density, grouping, and naming without breaking the system model

System-aware audit

Find arbitrary gaps, duplicate values, unclear roles, and inconsistent spacing usage

Accessibility review

Check density, cramped elements, grouping clarity, and touch support risks

Handoff-ready notes

Turn spacing logic into clearer explanations for developers

It's been quite helpful to wrangle all of these seemingly disparate systems into a singular lens and understand how to get started

Dallas Kwok

Lead Designer

Use Spacing Foundation when spacing decisions get inconsistent

Whether you are starting from scratch, cleaning up gaps and padding, defining density logic, or preparing developer handoff

Start from scratch with a spacing system

When you are building a new product or design system, spacing decisions can turn into disconnected values quickly. Spacing Foundation gives you a structured model from day one: spacing scale, semantic roles, density logic, documentation, AI context, accessibility notes, and developer handoff

Outcome

You start with a spacing foundation that is ready to customize instead of inventing every rule from zero

Adapt existing spacing values into product roles

Audit messy gaps and padding

Prepare handoff without guesswork

Deliver client-ready spacing foundations

Built for teams and designers working on spacing systems

Use Spacing Foundation when gaps, padding, density, and rhythm need to be structured, customized, documented, and handed off

01

Product designers

Keep interfaces consistent with reusable spacing roles for forms and content groups

02

UI designers

Turn visual spacing choices into rules for rhythm, grouping, density, and consistency

03

Freelancers and agencies

Deliver client-ready spacing foundations with documentation, AI context, and handoff

04

Design system leads

Standardize existing spacing values with clearer roles, naming, density, and usage rules

Based on analysis of 100+ design systems. Patterns translated into a reusable spacing foundation

Since 2023, Design Systems Surf has cataloged mature design systems across foundations, components, documentation, and implementation patterns.

Spacing Foundation turns that research into reusable spacing roles, density rules, AI context, accessibility guidance, and handoff.

Save 24–36 hours on spacing system work and documentation

Spacing Foundation removes repetitive setup, documentation, AI context, accessibility, and handoff work

Choose your hourly rate to estimate the value of saved work

$25

$50

$75

$100

Work area

Built from scratch

Saved with Foundation

Figma spacing system

12–18 hours

8–12 hours

$400–$600

AI context and prompts

4–8 hours

3–5 hours

$150–$250

Accessibility notes

4–8 hours

3–5 hours

$150–$250

Developer handoff

6–10 hours

5–7 hours

$250–$350

Setup workflow

6–10 hours

5–7 hours

$250–$350

Value equivalent: $1,200–$1,800 of design system work

Compared with the $99 Spacing Foundation price

Based on 24–36 hours of estimated

Built from scratch work

Choose your hourly rate to estimate the value of saved work

$25

$50

$75

$100

Figma spacing system

Saved with Foundation

8–12 hours

$400–$600

AI context and prompts

Saved with Foundation

3–5 hours

$150–$250

Accessibility notes

Saved with Foundation

3–5 hours

$150–$250

Developer handoff

Saved with Foundation

5–7 hours

$250–$350

Setup workflow

Saved with Foundation

5–7 hours

$250–$350

Value equivalent: $1,200–$1,800 of design system work

Compared with the $99 Spacing Foundation price

One plan, every product

Get every current premium product, future release, and ongoing update from just $0.68/day. Cancel anytime.

Quarterly

Yearly

Save 42% on a yearly subscription

For one professional user

Popular

Pro

Build and maintain clearer design system work without rebuilding the same structure from scratch

$19

Per month, billed yearly at $228

∞

Includes all products, updated regularly

$990 total value if purchased separately
Get everything for $228/year

New premium resource every month

Quarterly foundation updates

Latest versions and future releases

AI workflows and .md context files

New prompts, examples and workflows

Dev handoff and accessibility files

Changelog and migration notes

For personal & client work

For teams and agencies

Team

Help your team build, update, and hand off design system decisions from one shared workflow

Custom

Tailored to your team size

Pro

Includes everything in Pro with team usage rights

Shared access for your whole team
For agencies, studios, and companies

Works for agencies and companies

One workflow for the whole team

Flexible team usage rights

Team billing and invoicing

7-day money-back guarantee

Trusted by 10k+ designers

Instant access after payment

You keep every file you download. An active plan unlocks new monthly drops, updates, and future releases

One plan, every product

Get every current premium product, future release, and ongoing update from just $0.68/day. Cancel anytime.

Quarterly

Yearly

Save 42% on a yearly subscription

For one professional user

Popular

Pro

Build and maintain clearer design system work without rebuilding the same structure from scratch

$19

Per month, billed yearly at $228

∞

Includes all products, updated regularly

$990 total value if purchased separately
Get everything for $228/year

New premium resource every month

Quarterly foundation updates

Latest versions and future releases

AI workflows and .md context files

New prompts, examples and workflows

Dev handoff and accessibility files

Changelog and migration notes

For personal & client work

For teams and agencies

Team

Help your team build, update, and hand off design system decisions from one shared workflow

Custom

Tailored to your team size

Pro

Includes everything in Pro with team usage rights

Shared access for your whole team
For agencies, studios, and companies

Works for agencies and companies

One workflow for the whole team

Flexible team usage rights

Team billing and invoicing

7-day money-back guarantee

You keep every file you download. An active plan unlocks new monthly drops, updates, and future releases

Trusted by designers working on design systems

Feedback from people building, auditing, documenting, and maintaining design systems

  • Design Systems Surf has helped me conceptualize a framework to move from idea to a usable brand design system. It has taken my prototypes to the next level

    Michelle Exantus

    UX Researcher

  • It's been quite helpful to wrangle all of these seemingly disparate systems into a singular lens and understand how to get started

    Dallas Kwok

    Lead Designer

  • Helpful, particularly for conducting research on specific component terms and terminology. It provided a strong starting point for structuring how I plan to document each component

    Eric Luciano

    UX/UI Designer

  • Design Systems Surf has been really helpful in expanding my knowledge of design systems and best practices. The content is practical, well-structured, and easy to apply directly to my work

    Piotr Wojtasiewicz

    Developer

  • Invaluable to us as we try to build a design system to consolidate multiple products into a consistent user experience. Design Systems Surf allowed us to build to a much higher quality than we would without this resource

    Dave Kinsella

    Lead Designer

  • The defined path, stack, and instructions are rigid enough to give the process structure and dynamic enough to apply to your own creations

    John Curley

    UX/UI Designer

  • Design Systems Surf helped us move from scattered decisions to a clearer system structure. It gave us a practical way to think through tokens, documentation, and handoff without getting stuck in theory

    Dmitry Rypinsky

    Product Designer

  • Helped to validate and refine our approach to design systems. It has also provided invaluable ideas where AI can turn complex and time-consuming tasks into real productivity gains

    Daniel Holder

    Agency

  • Really appreciate the content — it's helping me think through how to better verbalize documentation for my design system

    Steven Hardaway

    UX/UI Designer

  • Design Systems Surf has helped me conceptualize a framework to move from idea to a usable brand design system. It has taken my prototypes to the next level

    Michelle Exantus

    UX Researcher

  • It's been quite helpful to wrangle all of these seemingly disparate systems into a singular lens and understand how to get started

    Dallas Kwok

    Lead Designer

  • Helpful, particularly for conducting research on specific component terms and terminology. It provided a strong starting point for structuring how I plan to document each component

    Eric Luciano

    UX/UI Designer

  • Design Systems Surf has been really helpful in expanding my knowledge of design systems and best practices. The content is practical, well-structured, and easy to apply directly to my work

    Piotr Wojtasiewicz

    Developer

  • Invaluable to us as we try to build a design system to consolidate multiple products into a consistent user experience. Design Systems Surf allowed us to build to a much higher quality than we would without this resource

    Dave Kinsella

    Lead Designer

  • The defined path, stack, and instructions are rigid enough to give the process structure and dynamic enough to apply to your own creations

    John Curley

    UX/UI Designer

  • Design Systems Surf helped us move from scattered decisions to a clearer system structure. It gave us a practical way to think through tokens, documentation, and handoff without getting stuck in theory

    Dmitry Rypinsky

    Product Designer

  • Helped to validate and refine our approach to design systems. It has also provided invaluable ideas where AI can turn complex and time-consuming tasks into real productivity gains

    Daniel Holder

    Agency

  • Really appreciate the content — it's helping me think through how to better verbalize documentation for my design system

    Steven Hardaway

    UX/UI Designer

10k+

Designers across 175+ countries follow Design Systems Surf for design system examples, patterns, and practical resources

What to know before you start

Clear answers about what Spacing Foundation includes, how it can be customized, and how it fits into real design system work

Is this just a Figma template?

No. The Figma file is one part of the package. Spacing Foundation also includes AI context .md, NotebookLM source .md, setup guidance, AI prompts, accessibility .md, and dev handoff .md.

The Figma file gives you the working spacing system. The Markdown files support different AI workflows: customization, knowledge exploration, accessibility review, and developer handoff.

What is included?

Spacing Foundation includes a Figma file, AI context .md, NotebookLM source .md, setup guide, AI prompts, accessibility .md, and dev handoff .md.

The Figma file gives you spacing tokens, a spacing scale, semantic spacing roles, density logic, examples, and documentation. The Markdown files give AI tools the system context needed to help you customize, explore, review, document, and hand off your spacing foundation with less guesswork.

Can I customize it?

Yes. You can adapt spacing values, semantic spacing roles, density behavior, grouping rules, and naming.

The goal is to customize the spacing system without breaking rhythm logic, density logic, accessibility review, or implementation meaning.

Will this fit my brand?

Spacing Foundation is not tied to one fixed visual density or spacing feel. You bring your product or brand direction and map it into product-ready spacing roles.

If your current spacing has gaps, for example inconsistent padding, unclear content grouping, weak compact density, or too many local exceptions, the setup workflow and AI-ready Markdown files help you identify what needs review before implementation.

Can I use it with an existing design system?

Yes. You can use Spacing Foundation as a reference model to audit or repair an existing spacing system.

It can help you find duplicate spacing values, unclear semantic roles, inconsistent density behavior, weak grouping logic, hardcoded spacing, and gaps in developer handoff. You do not need to replace your whole design system to use it.

Do I need to use AI?

No. You can use the Figma file and setup workflow manually.

AI is optional, but several supporting files are designed primarily for AI-assisted workflows. The AI context .md helps with safe customization. The NotebookLM source .md helps with knowledge exploration, Q&A, and briefings. The accessibility .md helps AI review foundation-level spacing risks. The dev handoff .md helps AI generate developer-facing implementation notes.

Are the Markdown files standalone guides?

They are Markdown files, but they are not all traditional standalone guides.

You can read them manually, but their main purpose is to support AI-assisted workflows. Each .md file has a different role: customization context, NotebookLM knowledge source, accessibility review context, or developer handoff context.

What does the NotebookLM source do?

The NotebookLM source .md is a structured knowledge file for exploring the spacing foundation.

You can upload it to NotebookLM and ask questions about spacing roles, density logic, token meaning, grouping rules, accessibility concerns, and implementation guidance. It helps turn the foundation into a searchable knowledge source for you, your team, or your client.

What does the accessibility file do?

The accessibility .md is designed mainly for AI-assisted review.

It gives AI the review logic for foundation-level spacing risks such as cramped interactive elements, weak grouping, unclear content relationships, density issues, and touch support concerns. It does not guarantee accessibility by itself. You still need to review the actual values and product usage after customization.

What does the dev handoff file do?

The dev handoff .md is designed mainly for AI-assisted handoff generation.

It gives AI the structure to generate developer-facing notes from your customized foundation, including spacing role meaning, spacing scale logic, padding vs gap usage, density behavior, implementation risks, and CSS-oriented token mapping. Developers still need to adapt the output to their codebase, naming conventions, and token pipeline.

Does this include components?

No. Spacing Foundation covers the spacing foundation layer: spacing tokens, semantic spacing roles, density logic, grouping rules, accessibility review logic, and developer handoff context.

It may include examples that show how the spacing roles work, but it is not a production component library.

Does this support density modes?

Yes. Spacing Foundation includes structure for density decisions, including default, compact, and comfortable spacing behavior.

You still need to review your actual spacing values for touch support, cramped layouts, grouping clarity, and implementation behavior after customization.

Who is this for?

Spacing Foundation is for product designers, UI designers, freelancers, agencies, design system leads, design system engineers, consultants, and teams that need to build, repair, document, review, or hand off a structured spacing system.

Is this for beginners or advanced teams?

Both, but for different reasons.

For newer teams, it gives a structured starting point instead of a blank canvas. For mature teams, it works as an audit, repair, documentation, and handoff reference for weak or inconsistent spacing foundations.

How is this different from building it myself?

You can build this yourself. The difference is that you would need to create the token architecture, spacing scale, semantic spacing roles, density rules, setup workflow, AI context, NotebookLM source, prompts, accessibility review logic, and handoff structure from scratch.

Spacing Foundation gives you that structure so you can focus on adapting it to your product, brand, team, or client.

Will developers be able to use it?

Yes, but not as a drop-in code package.

The dev handoff .md helps generate developer-facing notes from the foundation. It explains spacing role meaning, spacing scale logic, padding vs gap usage, density behavior, implementation risks, and CSS variable mapping. Developers still need to adapt the output to their codebase and implementation workflow.

Can I use this for client work?

Yes, if your license allows client use. You can use Spacing Foundation as part of paid client work and deliver a customized foundation to your client.

You cannot resell, redistribute, or repackage the original product as a standalone product or template unless the license explicitly allows it.

What is not included?

Spacing Foundation is not a UI kit, component library, layout template pack, whitespace inspiration guide, or automatic accessibility guarantee.

It gives you the foundation structure, workflow, AI-ready Markdown files, review logic, and handoff structure. You still need to customize values, review the result, and adapt implementation to your product or client environment.

Still have questions?

Reach out at hey@designsystems.surf

More Products

AI-ready

Spacing Foundation

Build, customize, and hand off a mature spacing system foundation

Markdown context for these AI tools and other LLMs

Figma system

TOKENS, SCALE, DENSITY

AI workflow

Markdown CONTEXT, PROMPTS, REVIEW

System guidance

SETUP, RULES, IMPLEMENTATION

Figma spacing system with tokens and density

Spacing rules for rhythm and layout

Setup for spacing scale, density, and workflow

AI context and prompts for customization

Accessibility and implementation context

🏄‍♂️

Discount for students

Email hey@designsystems.surf to get student offer