Plain for shadcn/ui

Plain is a shadcn/ui theme built around a muted cyan primary color (#698386) with muted green accents (#838669). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#698386) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030607black
Foreground
#020708black
#f5f9faghostwhite
Card
#fbfdfewhite
#030607black
Card foreground
#020708black
#f5f9faghostwhite
Popover
#fbfdfewhite
#030607black
Popover foreground
#020708black
#f5f9faghostwhite
Primary
#698386slategray
#698386slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#866983gray
#866983gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5eaf4whitesmoke
#150a13black
Muted foreground
#4a454adarkslategray
#bab5basilver
Accent
#838669gray
#838669gray
Accent foreground
#000000black
#000000black
Destructive
#742407maroon
#f46f3etomato
Destructive foreground
#fbc5b2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#698386slategray
#698386slategray

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button4.04:1AA Large
Secondary button4.78:1AA
Muted text8.03:1AAA
Accent5.59:1AA
Destructive6.89:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button4.04:1AA Large
Secondary button4.78:1AA
Muted text9.59:1AAA
Accent5.59:1AA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 206.426);
  --foreground: oklch(0.122 0.012 203.681);
  --muted: oklch(0.949 0.016 329.334);
  --muted-foreground: oklch(0.396 0.011 329.46);
  --popover: oklch(0.994 0.002 206.426);
  --popover-foreground: oklch(0.122 0.012 203.681);
  --card: oklch(0.994 0.002 206.426);
  --card-foreground: oklch(0.122 0.012 203.681);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.591 0.03 206.256);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.559 0.052 330.166);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.042 113.053);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.38 0.118 37.84);
  --destructive-foreground: oklch(0.866 0.067 40.912);
  --ring: oklch(0.591 0.03 206.256);
  --chart-1: oklch(0.591 0.03 206.256);
  --chart-2: oklch(0.559 0.052 330.166);
  --chart-3: oklch(0.61 0.042 113.053);
  --chart-4: oklch(0.585 0.055 330.172);
  --chart-5: oklch(0.596 0.036 206.259);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.008 204.571);
  --foreground: oklch(0.98 0.004 206.414);
  --muted: oklch(0.165 0.025 330.801);
  --muted-foreground: oklch(0.778 0.01 329.275);
  --popover: oklch(0.12 0.008 204.571);
  --popover-foreground: oklch(0.98 0.004 206.414);
  --card: oklch(0.12 0.008 204.571);
  --card-foreground: oklch(0.98 0.004 206.414);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.591 0.03 206.256);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.559 0.052 330.166);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.042 113.053);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.694 0.176 39.685);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.591 0.03 206.256);
  --chart-1: oklch(0.591 0.03 206.256);
  --chart-2: oklch(0.559 0.052 330.166);
  --chart-3: oklch(0.61 0.042 113.053);
  --chart-4: oklch(0.585 0.055 330.172);
  --chart-5: oklch(0.596 0.036 206.259);
}