Racing Green 4 for shadcn/ui

Racing Green 4 is a shadcn/ui theme built around a deep teal primary color (#165a39) with muted light teal accents (#f2f7f5). The light mode uses a neutral background (#fafafa). Dark mode switches to a green primary (#22c55e) on an orange-tinted background (#0c0a09).

Color palette

TokenLightDark
Background
#fafafasnow
#0c0a09black
Foreground
#04100ablack
#f2f2f2whitesmoke
Card
#ffffffwhite
#1c1917black
Card foreground
#090b0ablack
#f2f2f2whitesmoke
Popover
#ffffffwhite
#171717black
Popover foreground
#090b0ablack
#f2f2f2whitesmoke
Primary
#165a39darkslategray
#22c55emediumseagreen
Primary foreground
#f5fffamintcream
#052e16black
Secondary
#e4e7e6gainsboro
#27272adarkslategray
Secondary foreground
#0a291ablack
#fafafasnow
Muted
#eaeceblavender
#262626darkslategray
Muted foreground
#717a76gray
#a1a1aadarkgray
Accent
#f2f7f5whitesmoke
#292524darkslategray
Accent foreground
#1f7a4eseagreen
#fafafasnow
Destructive
#e23535crimson
#7f1d1dmaroon
Destructive foreground
#fafafasnow
#fef2f2lavenderblush
Border
#d6dbd9gainsboro
#27272adarkslategray
Input
#e4e7e6gainsboro
#27272adarkslategray
Ring
#218353seagreen
#15803dforestgreen

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card19.73:1AAA
Primary button8.06:1AAA
Secondary button12.52:1AAA
Muted text3.71:1AA Large
Accent4.89:1AA
Destructive4.18:1AA Large
Dark mode
Text on background17.65:1AAA
Text on card15.62:1AAA
Primary button6.54:1AA
Secondary button14.26:1AAA
Muted text5.88:1AA
Accent14.53:1AAA
Destructive9.15:1AAA

CSS variables

Paste this into your globals.css to use Racing Green 4 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0.158 0.023 163.976);
  --muted: oklch(0.94 0.002 165.948);
  --muted-foreground: oklch(0.571 0.013 165.419);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.004 165.751);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.004 165.751);
  --border: oklch(0.887 0.006 165.845);
  --input: oklch(0.925 0.004 165.909);
  --primary: oklch(0.416 0.086 157.704);
  --primary-foreground: oklch(0.991 0.013 165.677);
  --secondary: oklch(0.925 0.003 165.929);
  --secondary-foreground: oklch(0.252 0.046 159.244);
  --accent: oklch(0.971 0.005 165.875);
  --accent-foreground: oklch(0.517 0.11 157.268);
  --destructive: oklch(0.6 0.209 26.226);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.541 0.116 157.188);
  --chart-1: oklch(0.416 0.086 157.704);
  --chart-2: oklch(0.925 0.003 165.929);
  --chart-3: oklch(0.971 0.005 165.875);
  --chart-4: oklch(0.948 0.002 165.957);
  --chart-5: oklch(0.421 0.089 157.316);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.004 49.314);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.27 0 180);
  --muted-foreground: oklch(0.712 0.013 286.068);
  --popover: oklch(0.204 0 180);
  --popover-foreground: oklch(0.962 0 180);
  --card: oklch(0.216 0.006 56.043);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.274 0.005 286.033);
  --input: oklch(0.274 0.005 286.033);
  --primary: oklch(0.723 0.192 149.583);
  --primary-foreground: oklch(0.266 0.063 152.948);
  --secondary: oklch(0.274 0.005 286.033);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.269 0.006 34.297);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.971 0.013 17.376);
  --ring: oklch(0.527 0.137 150.055);
  --chart-1: oklch(0.723 0.192 149.583);
  --chart-2: oklch(0.274 0.005 286.033);
  --chart-3: oklch(0.269 0.006 34.297);
  --chart-4: oklch(0.304 0.006 286.017);
  --chart-5: oklch(0.731 0.198 149.264);
}