Skip to content

Spacing and radius

Every gap, padding and margin is a step of 4 px. The key is the number of steps: space.4 is 16 px. Half steps (2, 6, 10 px) exist for the insides of small controls only.

--xg-space-00px
--xg-space-14px
--xg-space-28px
--xg-space-312px
--xg-space-416px
--xg-space-520px
--xg-space-624px
--xg-space-832px
--xg-space-1040px
--xg-space-1248px
--xg-space-1664px
--xg-space-2080px
--xg-space-2496px
--xg-space-0-52px
--xg-space-1-56px
--xg-space-2-510px
Where Token
Icon to label inside a button space.2 8
Between fields in a form space.4 16
Card padding space.5 20
Between cards in a grid space.4 16
Between page sections space.6 24
Page padding in the app shell space.6 24
Empty state padding space.12 48

Primitives give the scale; components use the four semantic radii, which differ per brand.

xs
6px
sm
10px
md
12px
lg
18px
xl
20px
2xl
24px
3xl
28px
pill
999px
Semantic Xendiz WaardeX Used by
--xg-radius-control 10 px 12 px buttons, inputs, selects, menu items
--xg-radius-card 18 px 20 px cards, tiles, menus, popovers, tables
--xg-radius-panel 28 px 24 px modals, large glass panels
--xg-radius-badge pill pill status badges, switches, progress
  • Badges are pills, actions are not. A pill shape reads as a label; a button that is a pill reads as a tag. Buttons use radius.control.
  • Nested corners shrink. An element inside a rounded container uses a radius equal to the outer radius minus the padding, so the curves stay parallel.
  • Tags are square-cornered (radius.xs) so they are never confused with status badges.
  • Space inside a group is smaller than space between groups. That is how a form shows what belongs together without lines.