Plane for shadcn/ui

Plane is a shadcn/ui theme built around a near-white primary color (#f9fcf8) with muted light green accents (#c2cdbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f9fcf8) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#081103black
#ffffffwhite
Card
#fcfcfcsnow
#040802black
Card foreground
#060d03black
#ffffffwhite
Popover
#ffffffwhite
#020401black
Popover foreground
#081103black
#ffffffwhite
Primary
#f9fcf8mintcream
#f9fcf8mintcream
Primary foreground
#29421adarkslategray
#29421adarkslategray
Secondary
#d5d9d3lightgrey
#252c21darkslategray
Secondary foreground
#3c4139darkslategray
#bdc9b6silver
Muted
#e6efe1beige
#151e10black
Muted foreground
#5f685adimgray
#9ca597darkgray
Accent
#c2cdbcsilver
#32412adarkslategray
Accent foreground
#2a3125darkslategray
#ccd9c4lightgrey
Destructive
#ce410dchocolate
#f15a22chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9fcf8mintcream
#f9fcf8mintcream

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.26:1AAA
Primary button10.76:1AAA
Secondary button7.33:1AAA
Muted text4.93:1AA
Accent8.12:1AAA
Destructive4.79:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.18:1AAA
Primary button10.76:1AAA
Secondary button8.35:1AAA
Muted text6.72:1AA
Accent7.38:1AAA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.032 132.993);
  --muted: oklch(0.942 0.021 133.747);
  --muted-foreground: oklch(0.505 0.024 133.905);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.032 132.993);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.146 0.028 132.083);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.007 133.648);
  --primary-foreground: oklch(0.348 0.072 135.38);
  --secondary: oklch(0.881 0.009 133.667);
  --secondary-foreground: oklch(0.369 0.016 133.884);
  --accent: oklch(0.834 0.025 133.797);
  --accent-foreground: oklch(0.303 0.024 134.124);
  --destructive: oklch(0.574 0.186 36.951);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.007 133.648);
  --chart-1: oklch(0.988 0.007 133.648);
  --chart-2: oklch(0.881 0.009 133.667);
  --chart-3: oklch(0.834 0.025 133.797);
  --chart-4: oklch(0.904 0.007 133.654);
  --chart-5: oklch(0.988 0.007 133.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.015 132.162);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.03 134.566);
  --muted-foreground: oklch(0.711 0.022 133.799);
  --popover: oklch(0.099 0.015 132.162);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.019 132.162);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.988 0.007 133.648);
  --primary-foreground: oklch(0.348 0.072 135.38);
  --secondary: oklch(0.282 0.023 134.144);
  --secondary-foreground: oklch(0.821 0.029 133.834);
  --accent: oklch(0.356 0.044 134.472);
  --accent-foreground: oklch(0.87 0.032 133.842);
  --destructive: oklch(0.66 0.197 38.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.988 0.007 133.648);
  --chart-1: oklch(0.988 0.007 133.648);
  --chart-2: oklch(0.282 0.023 134.144);
  --chart-3: oklch(0.356 0.044 134.472);
  --chart-4: oklch(0.315 0.027 134.17);
  --chart-5: oklch(0.988 0.007 133.65);
}