> This page is for Flowkit CSS Framework, version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://developers.webflow.com/flowkit/v2.0.0/llms.txt
> - v1: https://developers.webflow.com/flowkit/v1.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Spacing

> How spacing variables and gap utilities are structured in the Flowkit Framework.

Foundational predefined REM-based set of variables called Spacing are used for margins, paddings, and gaps of components. This ensures consistent rhythm and layout behavior across the entire system.

---

### Size Variables

All the base spacing values are defined using a simple `value`x naming convention. You can think of `x` as a multiplier of the base unit (1rem = 16px).

| Variable | REM Value | Preview |
| -------- | --------- | ------- |
| 0.25x    | 0.25rem   |         |
| 0.5x     | 0.5rem    |         |
| 0.75x    | 0.75rem   |         |
| 1x       | 1rem      |         |
| 1.25x    | 1.25rem   |         |
| 1.5x     | 1.5rem    |         |
| 1.75x    | 1.75rem   |         |
| 2x       | 2rem      |         |
| 3x       | 3rem      |         |
| 4x       | 4rem      |         |
| 5x       | 5rem      |         |
| 6x       | 6rem      |         |
| 7x       | 7rem      |         |
| 8x       | 8rem      |         |

> **Note**
>
> Variables can be remapped. For example, `0.25x` might be set to `0.5rem` based on your project's scale. To learn more about how `rem` works and why we use it, see the [Units page](/flowkit/getting-started/units).

---

## Gap Variables

Used in flex and grid layouts. These use t-shirt sizing for consistent spacing across UI elements.

* gap-xsmall
* gap-small
* gap-medium
* gap-large
* gap-xlarge
* gap-xxlarge

---

## Utility Class Examples

Example of classes that apply spacing using the same variables as above for consistency:

* icon is-small
* flex\_horizontal gap-small
* padding-bottom\_small
* margin-top\_small