Dimensions refer to standardized sizing rules and guidelines within a design system. They encompass elements like width, height, maximum/minimum constraints, and aspect ratios that help ensure consistency, responsiveness, and visual harmony across various layouts and components. Clear dimension definitions improve scalability and maintain a cohesive look and feel on different devices and screen sizes.

Best practices

Establish a Dimension Scale

  • Create a set of predefined sizes (e.g., xs, sm, md, lg, xl) to cover common use cases.

  • Reference these tokens consistently in both design tools and code.

Balance Fixed and Flexible

  • Certain elements (like icons or buttons) can have fixed dimensions, while layouts often benefit from fluid sizing.

  • Aim for a combination that maintains consistency without sacrificing responsiveness.

Design for Content

  • Let the nature of the content (e.g., text length, image dimensions) guide your sizing.

  • Avoid arbitrary height/width constraints that cause truncation or awkward whitespace.

Test Responsiveness

  • Verify that elements maintain their integrity when scaled up or down across multiple devices.

  • Check for overlapping or hidden content at various breakpoints.

Use Relative Units Where Possible

  • Leveraging em, rem, and percentage-based widths or max-widths often enhances responsiveness and accessibility.

  • Provide fallback options in case certain browsers or devices handle units differently.

Document & Iterate

  • Keep dimension rules in a central repository (e.g., design tokens or style guide).

  • Update as the product evolves—new breakpoints or component requirements may emerge.

Combine dimension rules with your grid and spacing conventions to build well-structured, balanced layouts.

Summary

Dimensions form the sizing framework of a design system, dictating how elements scale and adapt across different screen sizes. By combining fixed, fluid, and breakpoint-based rules, teams can create responsive designs that maintain visual harmony and usability. Centralized dimension tokens and clear documentation ensure every component follows consistent, scalable sizing guidelines, fostering a cohesive user experience across products and platforms.

In action

Also in Foundations