Goose for shadcn/ui

Goose is a shadcn/ui theme built around a teal primary color (#2db496) with muted light teal accents (#d6e1de). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#2db496) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#000000black
#f9fbfamintcream
Card
#fcfcfcsnow
#050b09black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fcfcfcsnow
#050b09black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#2db496lightseagreen
#2db496lightseagreen
Primary foreground
#04100eblack
#04100eblack
Secondary
#d6e1degainsboro
#303635darkslategray
Secondary foreground
#384c48darkslategray
#c9cfcelightgrey
Muted
#dff1edlavender
#0e201cblack
Muted foreground
#556d67dimgray
#92aaa5darkgray
Accent
#d6e1degainsboro
#303635darkslategray
Accent foreground
#384c48darkslategray
#c9cfcelightgrey
Destructive
#842c06saddlebrown
#f55814orangered
Destructive foreground
#fcd2bfpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2db496lightseagreen
#2db496lightseagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.40:1AAA
Secondary button6.81:1AA
Muted text4.76:1AA
Accent6.81:1AA
Destructive6.45:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.50:1AAA
Primary button7.40:1AAA
Secondary button7.80:1AAA
Muted text6.84:1AA
Accent7.80:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.02 181.467);
  --muted-foreground: oklch(0.513 0.029 180.416);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.691 0.12 174.285);
  --primary-foreground: oklch(0.161 0.02 179.49);
  --secondary: oklch(0.9 0.012 181.696);
  --secondary-foreground: oklch(0.399 0.026 180.127);
  --accent: oklch(0.9 0.012 181.696);
  --accent-foreground: oklch(0.399 0.026 180.127);
  --destructive: oklch(0.42 0.129 39.298);
  --destructive-foreground: oklch(0.894 0.054 44.471);
  --ring: oklch(0.691 0.12 174.285);
  --chart-1: oklch(0.691 0.12 174.285);
  --chart-2: oklch(0.9 0.012 181.696);
  --chart-3: oklch(0.9 0.012 181.696);
  --chart-4: oklch(0.922 0.009 181.784);
  --chart-5: oklch(0.7 0.124 173.924);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 182.007);
  --foreground: oklch(0.986 0.002 182.017);
  --muted: oklch(0.227 0.026 178.285);
  --muted-foreground: oklch(0.718 0.027 180.992);
  --popover: oklch(0.14 0.012 181.915);
  --popover-foreground: oklch(0.993 0.001 182.042);
  --card: oklch(0.14 0.012 181.915);
  --card-foreground: oklch(0.993 0.001 182.042);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.691 0.12 174.285);
  --primary-foreground: oklch(0.161 0.02 179.49);
  --secondary: oklch(0.327 0.009 181.313);
  --secondary-foreground: oklch(0.85 0.007 181.839);
  --accent: oklch(0.327 0.009 181.313);
  --accent-foreground: oklch(0.85 0.007 181.839);
  --destructive: oklch(0.664 0.205 39.105);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.12 174.285);
  --chart-1: oklch(0.691 0.12 174.285);
  --chart-2: oklch(0.327 0.009 181.313);
  --chart-3: oklch(0.327 0.009 181.313);
  --chart-4: oklch(0.357 0.01 181.292);
  --chart-5: oklch(0.7 0.124 173.924);
}