Thyme for shadcn/ui

Thyme is a shadcn/ui theme built around a neutral gray primary color (#666a6b) with neutral gray accents (#6b6766). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#666a6b) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#ffffffwhite
#020708black
Foreground
#031012black
#f5f9f9whitesmoke
Card
#fcfcfcsnow
#040b0cblack
Card foreground
#020c0dblack
#f9fbfbghostwhite
Popover
#fcfcfcsnow
#040b0cblack
Popover foreground
#020c0dblack
#f9fbfbghostwhite
Primary
#666a6bdimgray
#666a6bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b6766dimgray
#6b6766dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ead9d6gainsboro
#291715black
Muted foreground
#444140darkslategray
#bfbbbbsilver
Accent
#6b6766dimgray
#6b6766dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a60503darkred
#fc2b27crimson
Destructive foreground
#fedcdcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#666a6bdimgray
#666a6bdimgray

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.36:1AAA
Primary button5.45:1AA
Secondary button5.59:1AA
Muted text7.42:1AAA
Accent5.59:1AA
Destructive6.24:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.14:1AAA
Primary button5.45:1AA
Secondary button5.59:1AA
Muted text8.99:1AAA
Accent5.59:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.16 0.022 206.646);
  --muted: oklch(0.899 0.02 28.057);
  --muted-foreground: oklch(0.378 0.005 28);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.143 0.019 205.262);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.019 205.262);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.522 0.005 207.897);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.005 27.979);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.517 0.005 27.979);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.457 0.185 29.288);
  --destructive-foreground: oklch(0.924 0.038 19.017);
  --ring: oklch(0.522 0.005 207.897);
  --chart-1: oklch(0.522 0.005 207.897);
  --chart-2: oklch(0.517 0.005 27.979);
  --chart-3: oklch(0.517 0.005 27.979);
  --chart-4: oklch(0.543 0.005 27.98);
  --chart-5: oklch(0.525 0.011 207.858);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 204.923);
  --foreground: oklch(0.979 0.004 207.917);
  --muted: oklch(0.228 0.029 29.105);
  --muted-foreground: oklch(0.795 0.004 27.958);
  --popover: oklch(0.14 0.014 205.535);
  --popover-foreground: oklch(0.986 0.002 207.923);
  --card: oklch(0.14 0.014 205.535);
  --card-foreground: oklch(0.986 0.002 207.923);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.522 0.005 207.897);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.005 27.979);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.517 0.005 27.979);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.24 28.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.522 0.005 207.897);
  --chart-1: oklch(0.522 0.005 207.897);
  --chart-2: oklch(0.517 0.005 27.979);
  --chart-3: oklch(0.517 0.005 27.979);
  --chart-4: oklch(0.543 0.005 27.98);
  --chart-5: oklch(0.525 0.011 207.858);
}