Foundations
Layout and motion
A 4px spacing scale, four corner radii, flat surfaces, and short, quiet motion.
Spacing
| Token | Value | Use | |
|---|---|---|---|
space-1 | 4px | Shared spacing value for layout and components. | |
space-2 | 8px | Shared spacing value for layout and components. | |
space-3 | 16px | Shared spacing value for layout and components. | |
space-4 | 24px | Shared spacing value for layout and components. | |
space-5 | 40px | Shared spacing value for layout and components. | |
space-6 | 64px | Shared spacing value for layout and components. | |
space-12 | 12px | Shared spacing value for layout and components. | |
space-32 | 32px | Shared spacing value for layout and components. | |
space-48 | 48px | Shared spacing value for layout and components. |
Radius
| Token | Value | Use | |
|---|---|---|---|
radius-sm | 8px | Shared radius value for layout and components. | |
radius-control | 10px | Shared radius value for layout and components. | |
radius-md | 14px | Shared radius value for layout and components. | |
radius-lg | 18px | Shared radius value for layout and components. | |
radius-xl | 32px | Shared radius value for layout and components. | |
radius-pill | 9999px | Shared radius value for layout and components. |
Shadow
| Token | Use | |
|---|---|---|
shadow-menu | Menus, popovers, toasts. | |
shadow-overlay | Dialogs and bottom sheets. |
Motion and layers
| Token | Value | Use |
|---|---|---|
duration-fast | 150ms | Hover, focus and press transitions. |
duration-base | 200ms | Opening and closing dialogs, menus, toasts. |
easing-standard | cubic-bezier(0.2,0,0,1) | All transitions. |
z-sticky | 100 | Sticky headers and sidebars. |
z-dropdown | 1000 | Menus and popovers. |
z-modal | 1100 | Scrim and dialog. |
z-toast | 1200 | Toasts above everything. |
Guidance
Use logical start/end spacing in CSS and EdgeInsetsDirectional in Flutter. The same component should work in either reading direction without a separate RTL stylesheet.
Spacing, corner radii, motion and layers are generated from the same token source. Keep cards flat and reserve shadows for floating surfaces. Respect reduced-motion preferences and preserve visible keyboard focus.
Touch controls should have at least a 44px target on web. Flutter controls use the platform's native interaction targets. Content should remain usable at narrow widths and with larger text.