Spacing and sizing
In Horizon, spacing is defined using a modular scale. This scale provides consistent sizing and allows components to align seamlessly. By leveraging standard sizes and spacing increments, designers can ensure that components snap into place and maintain a harmonious structure across different screens and devices.
Extra extra small - 2px
When dealing with smaller components and compact user interface (UI) elements, utilizing the xx small spacing variant or a 2px spacing is recommended. This choice allows for a more efficient use of space and ensures a visually balanced and cohesive design. By employing these spacing options, you can enhance your UI’s overall readability and usability while maintaining a clean and organized appearance.
Extra small - 4px
Consider utilizing the 4px or x small spacing for a slightly larger spacing option. This spacing variant provides a bit more breathing room between elements, allowing for improved visual clarity and legibility. The 4px or x small spacing can help create a balanced and aesthetically pleasing design when applied to smaller components or compact UI elements. The spacing for supplementary information should be adjusted based on the size of the fonts being used.
Small - 8px
When designing button groups or similar elements, it is advisable to consider utilizing the small variant or 8px spacing. This particular spacing choice helps to create a visually harmonious and balanced design. Additionally, the use of 8px spacing facilitates easy navigation and improves the overall usability of the interface.
Medium - 12px
If you want to create a visually pleasing and organized design, the medium size or 12px spacing is the best choice. It is particularly effective in scenarios where you need to arrange elements in a balanced and unified manner. Commonly used to create a clear distinction between different components, spacing such as form labels and input fields ensure a user-friendly layout.
Large - 16px
The large variable or 16px size plays a significant role in our design system website. It offers a versatile, flexible spacing option that creates impactful and visually appealing layouts. This size is particularly useful when you need to provide ample breathing space between elements, allowing them to stand out and grab the user's attention.