Cook for shadcn/ui

Cook is a shadcn/ui theme built around a muted cyan primary color (#98b9c3) with muted light cyan accents (#e0e5e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#98b9c3) on a neutral background (#040607).

Color palette

TokenLightDark
Background
#ffffffwhite
#040607black
Foreground
#051115black
#f6f8f9whitesmoke
Card
#fcfcfcsnow
#05090ablack
Card foreground
#040e11black
#f9fbfbghostwhite
Popover
#ffffffwhite
#040607black
Popover foreground
#051115black
#f6f8f9whitesmoke
Primary
#98b9c3darkgray
#98b9c3darkgray
Primary foreground
#0f171ablack
#0f171ablack
Secondary
#e0e5e6gainsboro
#1c2021black
Secondary foreground
#414f53darkslategray
#b2bbbdsilver
Muted
#dde6e9gainsboro
#161f22black
Muted foreground
#414b4edarkslategray
#b1bbbesilver
Accent
#e0e5e6gainsboro
#1c2021black
Accent foreground
#414f53darkslategray
#b2bbbdsilver
Destructive
#732807saddlebrown
#f2672ctomato
Destructive foreground
#fac8b2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98b9c3darkgray
#98b9c3darkgray

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.09:1AAA
Primary button8.67:1AAA
Secondary button6.67:1AA
Muted text7.07:1AAA
Accent6.67:1AA
Destructive6.87:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.26:1AAA
Primary button8.67:1AAA
Secondary button8.40:1AAA
Muted text8.54:1AAA
Accent8.40:1AAA
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.168 0.02 218.139);
  --muted: oklch(0.919 0.01 217.808);
  --muted-foreground: oklch(0.404 0.014 218.001);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.168 0.02 218.139);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.153 0.018 216.519);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.764 0.038 218.188);
  --primary-foreground: oklch(0.199 0.013 218.432);
  --secondary: oklch(0.918 0.006 217.78);
  --secondary-foreground: oklch(0.416 0.019 218.123);
  --accent: oklch(0.918 0.006 217.78);
  --accent-foreground: oklch(0.416 0.019 218.123);
  --destructive: oklch(0.384 0.114 40.025);
  --destructive-foreground: oklch(0.871 0.065 44.381);
  --ring: oklch(0.764 0.038 218.188);
  --chart-1: oklch(0.764 0.038 218.188);
  --chart-2: oklch(0.918 0.006 217.78);
  --chart-3: oklch(0.918 0.006 217.78);
  --chart-4: oklch(0.94 0.004 217.769);
  --chart-5: oklch(0.766 0.042 218.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.007 215.087);
  --foreground: oklch(0.978 0.003 217.761);
  --muted: oklch(0.232 0.013 218.302);
  --muted-foreground: oklch(0.785 0.012 217.837);
  --popover: oklch(0.118 0.007 215.087);
  --popover-foreground: oklch(0.978 0.003 217.761);
  --card: oklch(0.135 0.008 215.087);
  --card-foreground: oklch(0.985 0.002 217.755);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.764 0.038 218.188);
  --primary-foreground: oklch(0.199 0.013 218.432);
  --secondary: oklch(0.24 0.006 217.917);
  --secondary-foreground: oklch(0.785 0.01 217.825);
  --accent: oklch(0.24 0.006 217.917);
  --accent-foreground: oklch(0.785 0.01 217.825);
  --destructive: oklch(0.679 0.184 41.23);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.764 0.038 218.188);
  --chart-1: oklch(0.764 0.038 218.188);
  --chart-2: oklch(0.24 0.006 217.917);
  --chart-3: oklch(0.24 0.006 217.917);
  --chart-4: oklch(0.272 0.007 217.932);
  --chart-5: oklch(0.766 0.042 218.261);
}