Design foundations

Macro’s workspace proportions, with a neutral palette for our library. Review the colors, typography, spacing, and icon scale together before starting component work.

Color roles

Grayscale surfaces and neutral accents support the hierarchy. Both palettes use the same role names.

Dark palette

Surface

  • base#111111
  • panel#191919
  • raised#202020
  • hover#292929
  • overlay#303030

Ink

  • primary#F3F3F3
  • secondary#C5C5C5
  • muted#AAAAAA
  • placeholder#9B9B9B
  • disabled#7F7F7F

Border

  • dividerrgb(255 255 255 / 6%)
  • framergb(255 255 255 / 6%)
  • railrgb(255 255 255 / 5%)
  • control#878787
  • fieldrgb(255 255 255 / 8%)
  • field-insettransparent
  • buttonrgb(255 255 255 / 6%)
  • button-insettransparent

Accent

  • solid#F3F3F3
  • on-solid#161616
  • ink#E2E2E2
  • tint#303030

Focus

  • ring#E0E0E0

Status

  • success#88D3AD
  • warning#F4CD86
  • danger#FFA99E
  • info#F3F3F3

Light palette

Surface

  • base#F2F2F2
  • panel#FAFAFA
  • raised#FFFFFF
  • hover#EAEAEA
  • overlay#FFFFFF

Ink

  • primary#232323
  • secondary#4D4D4D
  • muted#606060
  • placeholder#686868
  • disabled#828282

Border

  • dividerrgb(0 0 0 / 8%)
  • framergb(0 0 0 / 8%)
  • railrgb(0 0 0 / 6%)
  • control#777777
  • fieldrgb(0 0 0 / 10%)
  • field-insettransparent
  • buttonrgb(0 0 0 / 8%)
  • button-insettransparent

Accent

  • solid#303030
  • on-solid#FFFFFF
  • ink#484848
  • tint#E7E7E7

Focus

  • ring#303030

Status

  • success#206448
  • warning#7A510B
  • danger#A23532
  • info#484848
Compare Macro’s measured surface ramps

Macro Dark

  • Surface 0
  • Surface 1
  • Surface 2
  • Surface 3
  • Surface 4

Macro Light editor

  • Surface 0
  • Surface 1
  • Surface 2
  • Surface 3
  • Surface 4

Workspace typography

  • Homepage heading40 / 44 · 450
  • Small label12 / 16 · 500
  • Menu or button14 / 20 · 500
  • Field label14 / 16 · 500
  • Field help or error12 / 16 · 400
  • Pane title14 / 20 · 600
  • Body and editor text15 / 24 · 400
  • Section heading15 / 24 · 600
  • Page title26 / 32.5 · 500

Spacing scale

Fine gaps within controls, larger steps between groups.

  • 2px
  • 4px
  • 6px
  • 8px
  • 12px
  • 16px
  • 24px
  • 32px

Icon sizing

Sample glyph at four sizes on the same 24-unit grid with a 2-unit stroke.

  • 12px
  • 14px
  • 16px
  • 20px