Layout
The layout system is divided into two widths sidebar and content. A third width called wide exists that equals the combined width of sidebar and content plus the gap between them (--ua_space--gap).
Width | rem | px |
---|---|---|
Sidebar | 18rem | 288px |
Content | 58rem | 928px |
Wide | 77rem | 1232px |
Layout tokens
Spacing
Spacing values help to create consistent interfaces by clearly defining relationships between components.
Spacing values are static and don't change based on platform scale. Different spacing values can be used for different sizes and scales as needed.
Space Tokens
Semantic Spacing
In addition to the space tokens, there are a few semantic spacing options available. These are meant to create harmonious spacing between elements.
Flow Spacing
Flow spacing is a special type of space applied to the top margin of each consecutive child within a flow layout.
You can see an example of the flow spacing implementation here
It is important to note that in the design system, we rarely ever apply bottom margins in regular content areas.