Oats for shadcn/ui

Oats is a shadcn/ui theme built around a muted light teal primary color (#b6d2c5) with muted light teal accents (#c4d4cc). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the muted light teal primary (#b6d2c5) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#040b08black
Foreground
#000000black
#ffffffwhite
Card
#f6fdfamintcream
#040b08black
Card foreground
#000000black
#ffffffwhite
Popover
#f6fdfamintcream
#040b08black
Popover foreground
#000000black
#ffffffwhite
Primary
#b6d2c5silver
#b6d2c5silver
Primary foreground
#21362cdarkslategray
#21362cdarkslategray
Secondary
#c4d4cclightgrey
#282929darkslategray
Secondary foreground
#2b3b33darkslategray
#c1c2c2silver
Muted
#d5ddd9gainsboro
#222a26darkslategray
Muted foreground
#42574ddarkslategray
#a8bdb3darkgray
Accent
#c4d4cclightgrey
#282929darkslategray
Accent foreground
#2b3b33darkslategray
#c1c2c2silver
Destructive
#700505maroon
#f52e2ecrimson
Destructive foreground
#fbacaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6d2c5silver
#b6d2c5silver

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button8.01:1AAA
Secondary button7.68:1AAA
Muted text5.60:1AA
Accent7.68:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button8.01:1AAA
Secondary button8.14:1AAA
Muted text7.38:1AAA
Accent8.14:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 165.779);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.011 165.696);
  --muted-foreground: oklch(0.436 0.031 163.928);
  --popover: oklch(0.989 0.009 165.779);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.009 165.779);
  --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.84 0.035 164.837);
  --primary-foreground: oklch(0.311 0.032 162.816);
  --secondary: oklch(0.856 0.021 165.357);
  --secondary-foreground: oklch(0.336 0.025 163.801);
  --accent: oklch(0.856 0.021 165.357);
  --accent-foreground: oklch(0.336 0.025 163.801);
  --destructive: oklch(0.346 0.137 28.467);
  --destructive-foreground: oklch(0.821 0.093 19.258);
  --ring: oklch(0.84 0.035 164.837);
  --chart-1: oklch(0.84 0.035 164.837);
  --chart-2: oklch(0.856 0.021 165.357);
  --chart-3: oklch(0.856 0.021 165.357);
  --chart-4: oklch(0.878 0.017 165.475);
  --chart-5: oklch(0.843 0.04 164.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 166.037);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.014 164.597);
  --muted-foreground: oklch(0.78 0.028 165.036);
  --popover: oklch(0.14 0.015 166.037);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.015 166.037);
  --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.84 0.035 164.837);
  --primary-foreground: oklch(0.311 0.032 162.816);
  --secondary: oklch(0.281 0.001 165.886);
  --secondary-foreground: oklch(0.814 0.002 165.966);
  --accent: oklch(0.281 0.001 165.886);
  --accent-foreground: oklch(0.814 0.002 165.966);
  --destructive: oklch(0.628 0.232 27.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.84 0.035 164.837);
  --chart-1: oklch(0.84 0.035 164.837);
  --chart-2: oklch(0.281 0.001 165.886);
  --chart-3: oklch(0.281 0.001 165.886);
  --chart-4: oklch(0.312 0.002 165.881);
  --chart-5: oklch(0.843 0.04 164.689);
}