Components · usage & specs
Every pattern here is mandated: the canonical React component (window.SugarcaneDesignSystem_c153e7) or its vanilla class is the only implementation allowed — see the Governance card and guidelines/MANDATES.md for the registry.
<Button> / .sc-btn — sizes xs 28 · sm 32 · md 40 · lg 48 · xl 56px, radius 2px. One primary per view; gold = marketing CTA; danger = destructive only. Bordered on light; borderless allowed on dark.<Badge tone> — the only status pill. Radius always 2px (--pill = wide padding, never half-circle); content = text or system icon + text, no leading dots.<Avatar name status> — square 2px-radius face, auto initials, deterministic fill; presence only via status.<Icon name> — in-house set, 24px grid, stroke 1.5, currentColor. 16px dense · 18px default · 20px+ nav/mobile. No 3rd-party icon CDNs.<Stat>: mono tabular value + uppercase label + delta arrow; accent tints the icon chip. <Sparkline>: full-bleed, 1:1 geometry, trend-colored — the only inline chart.<Table> compound + <Pager> + <TableEmpty> on the .sc-table chrome — see the Tables chapter for the full behavioral spec.Alert inline-persistent · Toast transient (--z-toast) · Tooltip one-line hint · EmptyState icon + sentence + one action · ProgressBar determinate.Dialog (one decision, --z-modal) · Offcanvas edge panel, blocking or non-blocking. Esc + scrim close; focus trapped and returned.label (aria) via <IconButton>MANDATES.md--primary-hover / --surface-2/3), --dur-fast; interactive cards lift 1px + shadow.translateY(.5px) scale(.99) + active fill.--shadow-focus ring on every control, keyboard-only.--surface-3 + --text-muted, no pointer events; loading keeps variant colors and only blocks input.--ease-spring overshoot is reserved for binary toggles (switch thumb, radio dot, checkbox tick).Full written reference: readme.md · mandates: guidelines/MANDATES.md · master card: Specifications group at the bottom of this tab.