Acme Design System

Spacing & Grid Specification

The complete spatial system — spacing scale, radius, breakpoints, component sizing, and z-index layers.

Never use arbitrary values. All spacing must come from the token scale. If the scale doesn't cover your need, propose a new token.

Spacing Scale

TokenValueCommon Uses
--space-xs 4pxIcon gap, tight badge padding
--space-sm 8pxButton padding-y (MD), list item gap
--space-md 12pxTab padding-x, input padding-y, inline form gap
--space-lg 16pxButton padding-x (MD), card content gap, form field gap
--space-xl 20pxNavbar padding-x, section header gap
--space-2xl 24pxCard padding, modal padding, page section gap
--space-3xl 32pxLarge section spacing, page-level vertical rhythm
--space-4xl 48pxPage-level section separators

Border Radius Scale

TokenValueUsed On
--radius-sm 4pxButtons (SM/MD), badges, inputs, table cells
--radius-md 6pxButtons (LG), dropdowns, tooltips
--radius-lg 12pxCards, modals, stat cards, panels
--radius-full 9999pxAvatars, pill tabs, count badges, toggle knob

Breakpoints

NameMin WidthMax WidthColumnsGutterMargin
Mobile0767px416px16px
Tablet768px1023px824px24px
Desktop1024px1279px1224px32px
Wide1280px1232px48px

Layout Grid

The system uses a 12-column fluid grid. Component max-widths:

  • Narrow (forms, modals): max-width 480px
  • Standard (content pages): max-width 960px
  • Wide (tables, dashboards): max-width 1280px
  • Full bleed: 100% width

Component Sizing Rules

ComponentHeightMin WidthMax WidthNotes
Button SM28pxAutopadding-x: 12px
Button MD36pxAutopadding-x: 16px
Button LG44pxAutopadding-x: 20px
Input36px160px100%Full width inside forms
Navbar52px100%Fixed top, full width
Tab36pxAutopadding-x: 12px
ModalAuto480px480pxCentered overlay
Dropdown menuAuto120px320pxPositioned below trigger
Avatar SM24×24pxFixed
Avatar MD32×32pxFixed
Avatar LG40×40pxFixed

Z-Index Scale

LayerTokenValueUsed For
Base--z-base0Default document flow
Raised--z-raised10Cards on hover, sticky elements
Dropdown--z-dropdown100Dropdown menus, select options
Sticky--z-sticky200Sticky headers, toolbars
Overlay--z-overlay300Modal backdrop
Modal--z-modal400Modal dialogs
Toast--z-toast500Notification toasts
Tooltip--z-tooltip600Tooltips, popovers