Color, type & space
Four scales, each with a fixed number of steps. The constraint is the point: when there are only seven greys, a colour decision takes seconds instead of an afternoon.
Neutrals
Nine steps, warm rather than blue-grey, so long sessions feel less clinical. Step 0 is the page background in light mode, step 900 the primary text.
Accent and status
One accent, three status colours. Status colours never appear as backgrounds larger than a badge — a full-width red banner trains people to ignore red.
opacity: .6 fails contrast silently and breaks in dark mode. Use the
neutral scale instead — that is what the 500 and 600 steps are for.
Type scale
Seven sizes, a 1.2 ratio, no in-between values. Body copy is 15px because 16px makes dense tables too tall and 14px starts to hurt at the end of a long day.
Numbers in tables use tabular figures (font-variant-numeric: tabular-nums) so columns
of digits line up without manual width fiddling.
Spacing
A 4px grid, six steps. Anything that is not on the grid is a bug, not a refinement — it shows up as a one-pixel misalignment the moment two components sit next to each other.
| Step | Value | Typical use |
|---|---|---|
--mrd-space-1 | 4px | Icon to label, badge padding |
--mrd-space-2 | 8px | Inside controls, table cell padding |
--mrd-space-3 | 12px | Between related fields |
--mrd-space-4 | 16px | Card padding, gaps between cards |
--mrd-space-5 | 24px | Section separation |
--mrd-space-6 | 32px | Page-level blocks |
Radius and elevation
Radii stay small — 6px for controls, 10px for surfaces — because large radii read as consumer software and steal space from dense layouts. Two elevation levels only: flat, and floating (menus, popovers, drawers).
| Token | Value | Use |
|---|---|---|
--mrd-radius-sm | 6px | Inputs, buttons, badges |
--mrd-radius-md | 10px | Cards, panels, modals |
--mrd-shadow-pop | 0 10px 30px -18px | Anything that overlaps the page |