Chef for shadcn/ui

Chef is a shadcn/ui theme built around a teal primary color (#366852) with muted light teal accents (#e5ebe8). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#366852) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030705black
Foreground
#04110bblack
#f8fcfamintcream
Card
#f7fdfamintcream
#040b08black
Card foreground
#030c08black
#fcfdfdwhite
Popover
#fbfefdwhite
#030705black
Popover foreground
#04110bblack
#f8fcfamintcream
Primary
#366852darkslategray
#366852darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e5ebe8lavender
#2e3331darkslategray
Secondary foreground
#435b50darkslategray
#c6cdcalightgrey
Muted
#dfe7e3gainsboro
#18201cblack
Muted foreground
#43514bdarkslategray
#aebcb6silver
Accent
#e5ebe8lavender
#2e3331darkslategray
Accent foreground
#435b50darkslategray
#c6cdcalightgrey
Destructive
#a84105saddlebrown
#f8762atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#366852darkslategray
#366852darkslategray

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card19.25:1AAA
Primary button6.42:1AA
Secondary button6.11:1AA
Muted text6.63:1AA
Accent6.11:1AA
Destructive6.12:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.50:1AAA
Primary button6.42:1AA
Secondary button7.92:1AAA
Muted text8.43:1AAA
Accent7.92:1AAA
Destructive7.62:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 167.699);
  --foreground: oklch(0.16 0.024 165.36);
  --muted: oklch(0.921 0.01 167.5);
  --muted-foreground: oklch(0.421 0.022 166.311);
  --popover: oklch(0.994 0.004 167.699);
  --popover-foreground: oklch(0.16 0.024 165.36);
  --card: oklch(0.989 0.008 167.584);
  --card-foreground: oklch(0.143 0.02 167.54);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.476 0.067 162.973);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.935 0.008 167.562);
  --secondary-foreground: oklch(0.448 0.034 165.537);
  --accent: oklch(0.935 0.008 167.562);
  --accent-foreground: oklch(0.448 0.034 165.537);
  --destructive: oklch(0.51 0.149 42.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.476 0.067 162.973);
  --chart-1: oklch(0.476 0.067 162.973);
  --chart-2: oklch(0.935 0.008 167.562);
  --chart-3: oklch(0.935 0.008 167.562);
  --chart-4: oklch(0.957 0.006 167.651);
  --chart-5: oklch(0.481 0.072 162.524);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 167.991);
  --foreground: oklch(0.987 0.005 167.684);
  --muted: oklch(0.235 0.014 166.026);
  --muted-foreground: oklch(0.783 0.019 167.135);
  --popover: oklch(0.122 0.012 167.991);
  --popover-foreground: oklch(0.987 0.005 167.684);
  --card: oklch(0.14 0.014 167.889);
  --card-foreground: oklch(0.994 0.002 167.749);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.476 0.067 162.973);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.316 0.009 166.981);
  --secondary-foreground: oklch(0.841 0.008 167.546);
  --accent: oklch(0.316 0.009 166.981);
  --accent-foreground: oklch(0.841 0.008 167.546);
  --destructive: oklch(0.709 0.18 46.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.476 0.067 162.973);
  --chart-1: oklch(0.476 0.067 162.973);
  --chart-2: oklch(0.316 0.009 166.981);
  --chart-3: oklch(0.316 0.009 166.981);
  --chart-4: oklch(0.347 0.01 166.955);
  --chart-5: oklch(0.481 0.072 162.524);
}