Design Tokens
Two layers: primitive values and the semantic aliases that consume them. The primitive palette renders live from MGT_TAILWIND_COLORS, and every text token is graded live with GenerateContrastBadge.
Color · Semantic Layer role → primitive
Semantic tokens name intent, not hue. Build with these; never reference a raw hex in product code.
| Token | Value | Primitive | Usage | On White |
|---|---|---|---|---|
--accent | #8A2BE2 | purple | Primary actions, links, focus | AA6.0 |
--accent-deep | #5B1EA2 | purpleDark | Hover, pressed states | AAA9.8 |
--accent-soft | #F7F1FF | purple/5 | Selected rows, tint fills | Fill |
--text-strong | #171717 | neutral-900 | Headings, body | AAA18 |
--text-muted | #737373 | neutral-500 | Secondary text, captions | AA4.7 |
--hairline | #E9E7E2 | neutral-150 | Card borders, rules | Line |
Color · Status
| Token | Value | Badge | Use |
|---|---|---|---|
success | #C0D42F | Success | Live, paid, confirmed |
warning | #FEC600 | Warning | Draft, pending, attention |
error | #FF2768 | Error | Failed, destructive, invalid |
info | #4483DB | Info | Neutral notices, hints |
Primitive Palette live · MGT_TAILWIND_COLORS · GenerateColorSwatch
Sourced directly from @generators/commons and rendered with the GenerateColorSwatch primitive. These are the raw hues the semantic layer aliases.
primary
secondary
status
Type Scale Poppins / Inter
mgt-h1Show Up36 / 48 · 700mgt-h2Show Up28 / 40 · 600mgt-h3Show Up20 / 32 · 600mgt-titleShow Up18 / 24 · 600mgt-bodyShow Up16 / 24 · 400mgt-fineShow Up12 / 16 · 400Spacing & Radii
space-1 · 4space-2 · 8space-4 · 16space-6 · 24space-8 · 32space-12 · 48sm 8
md 10
card 14
pill
Elevation 5-step shadow scale
shadow-0
shadow-sm
shadow
shadow-lg
shadow-xl
Motion
fast · 120mshover, tap
base · 180msmost UI
slow · 280mspanels, sheets
ease-out(.2,.8,.2,1)
Breakpoints & Z-Index
xs< 480 · mobilesm640md768 · card drops chromelg1024 · sub-page wrapxl1280z-index: base 0 · sticky 10 · dropdown 40 · drawer 50 · dialog 60 · toast 80