Spacing

Spacing is using empty space to enhance clarity, readability, and element relationships in design.

Overview of Spacing

Spacing in design systems is crucial for creating visually appealing and user-friendly interfaces. It involves using consistent margins, padding, gutters, and whitespace to separate and organize UI elements. Defined spacing scales help ensure uniform application across components and responsiveness across devices. Proper spacing enhances the readability, navigability, and overall aesthetic of digital products, making it foundational to good design.

Spacing Steps

The Telerik and Kendo UI spacing system defines 40 steps, each using 1 rem (16 px) as the base unit, with every step representing a precise multiple of this unit.

StepCSS VariableValueExample
0--kendo-spacing-00px
1px--kendo-spacing-1px1px
0.5--kendo-spacing-0.50.125rem
1--kendo-spacing-10.25rem
1.5--kendo-spacing-1.50.375rem
2--kendo-spacing-20.5rem
2.5--kendo-spacing-2.50.625rem
3--kendo-spacing-30.75rem
3.5--kendo-spacing-3.50.875rem
4--kendo-spacing-41rem
4.5--kendo-spacing-4.51.125rem
5--kendo-spacing-51.25rem
5.5--kendo-spacing-5.51.375rem
6--kendo-spacing-61.5rem
6.5--kendo-spacing-6.51.625rem
7--kendo-spacing-71.75rem
7.5--kendo-spacing-7.51.875rem
8--kendo-spacing-82rem
9--kendo-spacing-92.25rem
10--kendo-spacing-102.5rem
11--kendo-spacing-112.75rem
12--kendo-spacing-123rem
13--kendo-spacing-133.25rem
14--kendo-spacing-143.5rem
15--kendo-spacing-153.75rem
16--kendo-spacing-164rem
17--kendo-spacing-174.25rem
18--kendo-spacing-184.5rem
19--kendo-spacing-194.75rem
20--kendo-spacing-205rem
21--kendo-spacing-215.25rem
22--kendo-spacing-225.5rem
23--kendo-spacing-235.75rem
24--kendo-spacing-246rem
25--kendo-spacing-257rem
26--kendo-spacing-268rem
27--kendo-spacing-279rem
28--kendo-spacing-2810rem
29--kendo-spacing-2911rem
30--kendo-spacing-3012rem

Spacing Types

Different types of spacing are used strategically within a layout to create clear separation and intuitive flows. Here’s an overview of the primary types of spacing used in design systems:

  • Margins—Space outside of borders that separates elements from each other.
  • Padding—Space inside of borders that creates padding around an element's content.
  • Gutters—Space between columns or rows in a grid system.
  • Gaps—Space between flex items.

Key Principles

Spacing is a critical component in design that helps structure content, enhance visual appeal, and guide user interactions. The Telerik and Kendo UI Design System endorses several basic principles related to spacing:

  • Visual Hierarchy and Emphasis—Spacing helps to establish visual hierarchy by creating distinct groups of elements or isolating important elements, making it easier for users to quickly understand which parts of the design are meant to be focal points.
  • Readability—Proper use of spacing improves readability by breaking text into manageable chunks. Adequate space around text and between lines (leading) ensures that content is easier on the eyes, which is also critical for accessibility.
  • Aesthetic Balance—Spacing contributes to the overall balance and symmetry of a design. Consistent and thoughtful spacing creates a more harmonious layout that is aesthetically pleasing and feels well-organized.

Theme-Specific Variables

For specific information about the spacing system, refer to the theme-specific variables list:

Feedback