> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SpacingTokens

> Spacing tokens for padding and margin values across components

> [!WARNING]
>
> Primer Checkout Android SDK is currently in **beta** (v3.0.0-beta).
> The API is subject to change before the stable release.

## Definition

```kotlin theme={"dark"}
data class SpacingTokens(
    val xxsmall: Dp = 2.dp,
    val xsmall: Dp = 4.dp,
    val small: Dp = 8.dp,
    val medium: Dp = 12.dp,
    val large: Dp = 16.dp,
    val xlarge: Dp = 20.dp,
    val xxlarge: Dp = 24.dp,
)
```

## Properties

| Token | Preview | Default | Usage |
| - | - | - | - |
| `xxsmall` | | 2.dp | Icon padding, minimal gaps |
| `xsmall` | | 4.dp | Chip padding, tight spacing |
| `small` | | 8.dp | Between form fields |
| `medium` | | 12.dp | Section internal padding |
| `large` | | 16.dp | Container padding, major gaps |
| `xlarge` | | 20.dp | Between major sections |
| `xxlarge` | | 24.dp | Largest gaps |

Access via `LocalPrimerTheme.current.spacingTokens` inside the checkout composable tree.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.