Spacing for shadcn/ui

Spacing is a shadcn/ui theme built around a vivid deep teal primary color (#016060) with muted light teal accents (#bcd2d2). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#016060) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#fbfefewhite
#050a0ablack
Foreground
#010404black
#f9fbfbghostwhite
Card
#f7fdfdmintcream
#070e0eblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfefewhite
#050a0ablack
Popover foreground
#010404black
#f9fbfbghostwhite
Primary
#016060teal
#016060teal
Primary foreground
#95fefepaleturquoise
#95fefepaleturquoise
Secondary
#d2dbdbgainsboro
#253232darkslategray
Secondary foreground
#364444darkslategray
#bccdcdsilver
Muted
#f1f4f4whitesmoke
#0b0e0eblack
Muted foreground
#4a4f4fdarkslategray
#b0b5b5darkgray
Accent
#bcd2d2lightsteelblue
#2e4747darkslategray
Accent foreground
#253737darkslategray
#cbddddlightgrey
Destructive
#9c3407saddlebrown
#f6743ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#016060teal
#016060teal

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.26:1AAA
Text on card20.36:1AAA
Primary button6.29:1AA
Secondary button7.18:1AAA
Muted text7.51:1AAA
Accent7.88:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.15:1AAA
Text on card19.14:1AAA
Primary button6.29:1AA
Secondary button8.08:1AAA
Muted text9.32:1AAA
Accent7.07:1AAA
Destructive7.46:1AAA

CSS variables

Paste this into your globals.css to use Spacing in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 197.113);
  --foreground: oklch(0.101 0.013 195.347);
  --muted: oklch(0.964 0.004 197.099);
  --muted-foreground: oklch(0.423 0.006 196.931);
  --popover: oklch(0.994 0.003 197.113);
  --popover-foreground: oklch(0.101 0.013 195.347);
  --card: oklch(0.989 0.006 197.068);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.443 0.075 194.776);
  --primary-foreground: oklch(0.933 0.098 195.605);
  --secondary: oklch(0.884 0.01 196.98);
  --secondary-foreground: oklch(0.375 0.017 196.432);
  --accent: oklch(0.846 0.023 196.726);
  --accent-foreground: oklch(0.32 0.023 196.077);
  --destructive: oklch(0.472 0.147 38.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.443 0.075 194.776);
  --chart-1: oklch(0.443 0.075 194.776);
  --chart-2: oklch(0.884 0.01 196.98);
  --chart-3: oklch(0.846 0.023 196.726);
  --chart-4: oklch(0.906 0.008 197.018);
  --chart-5: oklch(0.447 0.076 194.765);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.01 196.045);
  --foreground: oklch(0.986 0.002 197.119);
  --muted: oklch(0.162 0.005 196.634);
  --muted-foreground: oklch(0.769 0.005 197.049);
  --popover: oklch(0.14 0.01 196.045);
  --popover-foreground: oklch(0.986 0.002 197.119);
  --card: oklch(0.155 0.012 196.012);
  --card-foreground: oklch(0.993 0.001 197.139);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.443 0.075 194.776);
  --primary-foreground: oklch(0.933 0.098 195.605);
  --secondary: oklch(0.305 0.017 196.272);
  --secondary-foreground: oklch(0.835 0.019 196.793);
  --accent: oklch(0.378 0.03 195.945);
  --accent-foreground: oklch(0.883 0.02 196.805);
  --destructive: oklch(0.704 0.174 42.124);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.443 0.075 194.776);
  --chart-1: oklch(0.443 0.075 194.776);
  --chart-2: oklch(0.305 0.017 196.272);
  --chart-3: oklch(0.378 0.03 195.945);
  --chart-4: oklch(0.338 0.02 196.245);
  --chart-5: oklch(0.447 0.076 194.765);
}