Spacing & Layout
Spatial tokens that create consistent rhythm, depth hierarchy, and stacking order across all components and pages.
Spacing Scale
13-step scale based on a 4px grid. Used for padding, margin, gap, and all spatial relationships.
Spacing Hierarchy
Each level doubles the previous. This creates visual grouping through proximity.
Border Radius
Derived from a single --radius control point (0.625rem). All other values computed relative to it.
Shadow Elevation
6-tier shadow scale. In dark mode, shadow opacity decreases while surface lightness differentiation increases (Atlassian elevation model).
none
Flat — inset, sunken surfaces
xs
Subtle lift — cards on hover
sm
Low elevation — dropdowns
md
Medium — popovers, menus
lg
High — dialogs, command palette
xl
Highest — modals, full-screen overlays
Z-Index Layers
9-layer semantic stacking hierarchy. Parallels the shadow elevation scale in the DOM stacking dimension.
Page content, editor surface
Sidebar, resizable handles, badges
Dropdown menus, context menus
Sticky headers, floating toolbars
Popovers, tooltips, hover cards
Sheet/dialog backdrop scrim
Dialogs, sheets, drawers
Command palette
Toast notifications
Border Widths
Three active widths plus none. Medium (2px) aligns with the focus ring standard (WCAG 2.4.13).
none
0px \u2014 No border
thin
1px \u2014 Standard — cards, inputs, dividers
medium
2px \u2014 Emphasis — focus rings, diff indicators
thick
3px \u2014 Strong — forced-colors, drag targets
Readable Measures
Maximum line lengths for different contexts, ensuring comfortable reading.
This paragraph demonstrates the maximum measure for UI text. Skill results, version history descriptions, and any prose content outside the screenplay editor should not exceed this width to maintain comfortable reading. The 75-character limit ensures approximately 12\u201315 words per line, which research shows is optimal for reading speed and comprehension.
Screenplay content uses a narrower 60-character measure, fixed by WGA standard. This matches approximately 55\u201360 characters per line at 12pt Courier.