Tarragon for shadcn/ui

Tarragon is a shadcn/ui theme built around a teal primary color (#429e89) with red accents (#9e4258). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#429e89) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#020d0bblack
#f9fbfamintcream
Card
#fbfefdwhite
#000000black
Card foreground
#020d0bblack
#f9fbfamintcream
Popover
#fbfefdwhite
#000000black
Popover foreground
#020d0bblack
#f9fbfamintcream
Primary
#429e89mediumseagreen
#429e89mediumseagreen
Primary foreground
#060e0cblack
#060e0cblack
Secondary
#9e4258sienna
#9e4258sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5f0f1whitesmoke
#0f0a0cblack
Muted foreground
#4f4a4bdarkslategray
#b5b0b1darkgray
Accent
#9e4258sienna
#9e4258sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e65000orangered
#ff5900orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#429e89mediumseagreen
#429e89mediumseagreen

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button6.03:1AA
Secondary button6.20:1AA
Muted text7.70:1AAA
Accent6.20:1AA
Destructive3.81:1AA Large
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button6.03:1AA
Secondary button6.20:1AA
Muted text9.16:1AAA
Accent6.20:1AA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 180.859);
  --foreground: oklch(0.146 0.021 179.783);
  --muted: oklch(0.959 0.005 1.11);
  --muted-foreground: oklch(0.415 0.006 1.385);
  --popover: oklch(0.995 0.004 180.859);
  --popover-foreground: oklch(0.146 0.021 179.783);
  --card: oklch(0.995 0.004 180.859);
  --card-foreground: oklch(0.146 0.021 179.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.094 175.344);
  --primary-foreground: oklch(0.156 0.014 179.099);
  --secondary: oklch(0.508 0.124 8.092);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.124 8.092);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.197 40.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.094 175.344);
  --chart-1: oklch(0.638 0.094 175.344);
  --chart-2: oklch(0.508 0.124 8.092);
  --chart-3: oklch(0.508 0.124 8.092);
  --chart-4: oklch(0.532 0.131 8.153);
  --chart-5: oklch(0.646 0.099 174.954);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 180.912);
  --muted: oklch(0.154 0.008 2.427);
  --muted-foreground: oklch(0.762 0.005 1.159);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 180.912);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 180.912);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.094 175.344);
  --primary-foreground: oklch(0.156 0.014 179.099);
  --secondary: oklch(0.508 0.124 8.092);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.124 8.092);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.681 0.214 39.866);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.638 0.094 175.344);
  --chart-1: oklch(0.638 0.094 175.344);
  --chart-2: oklch(0.508 0.124 8.092);
  --chart-3: oklch(0.508 0.124 8.092);
  --chart-4: oklch(0.532 0.131 8.153);
  --chart-5: oklch(0.646 0.099 174.954);
}