> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/platform/guides/developer-guide/ui-developer-guide/digit-ui-components0.2.0/foundation/spacer.md).

# Spacer

DIGIT Spacer defines a consistent spacing system for the application, providing a set of predefined spacing values that can be applied across different UI elements. This ensures uniformity in layout design and alignment.

## Spacing System

***

DIGIT Spacers provides 12 spacing levels, each corresponding to a predefined pixel value:

| Spacer Name | Value |
| ----------- | ----- |
| spacer1     | 4px   |
| spacer2     | 8px   |
| spacer3     | 12px  |
| spacer4     | 16px  |
| spacer5     | 20px  |
| spacer6     | 24px  |
| spacer7     | 28px  |
| spacer8     | 32px  |
| spacer9     | 36px  |
| spacer10    | 40px  |
| spacer11    | 44px  |
| spacer12    | 48px  |

## Usage Guidelines

***

| <p><strong>Consistent Scaling</strong></p><p>Use predefined spacers instead of arbitrary values to maintain uniformity.</p>                                   | ![](/files/HOQUP021CzevsaJqnKlr) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| <p><strong>Spacing Hierarchy</strong></p><p>Apply smaller spacers for minor separations (e.g., spacer1 to spacer3) and larger spacers for major divisions</p> | ![](/files/6RP3yP2DEhIlCy5No8gf) |
| <p><strong>Avoid Overuse</strong></p><p>Excessive spacing can lead to inefficient use of screen space, reducing visual coherence</p>                          | ![](/files/9q2X4myyUxEhnFMSM49w) |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digit.org/platform/guides/developer-guide/ui-developer-guide/digit-ui-components0.2.0/foundation/spacer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
