Cool green one for shadcn/ui

Cool green one is a shadcn/ui theme built around a green primary color (#8fce83) with green accents (#83ce9c). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#8fce83) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#071504black
#f7f8f6whitesmoke
Card
#ffffffwhite
#020401black
Card foreground
#071504black
#f7f8f6whitesmoke
Popover
#ffffffwhite
#020401black
Popover foreground
#071504black
#f7f8f6whitesmoke
Primary
#8fce83darkseagreen
#8fce83darkseagreen
Primary foreground
#0b1609black
#0b1609black
Secondary
#b5ce83darkkhaki
#b5ce83darkkhaki
Secondary foreground
#111609black
#111609black
Muted
#e3e9d8gainsboro
#222716black
Muted foreground
#4f504edarkslategray
#b0b1afdarkgray
Accent
#83ce9cdarkseagreen
#83ce9cdarkseagreen
Accent foreground
#09160dblack
#09160dblack
Destructive
#a9160ffirebrick
#eb2419crimson
Destructive foreground
#fdedeclinen
#ffffffwhite
Border
#f1f4f1whitesmoke
#232b22darkslategray
Input
#f1f4f1whitesmoke
#232b22darkslategray
Ring
#8fce83darkseagreen
#8fce83darkseagreen

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button9.96:1AAA
Secondary button10.56:1AAA
Muted text6.54:1AA
Accent9.92:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button9.96:1AAA
Secondary button10.56:1AAA
Muted text7.09:1AAA
Accent9.92:1AAA
Destructive4.38:1AA Large

CSS variables

Paste this into your globals.css to use Cool green one in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.04 139.334);
  --muted: oklch(0.926 0.024 121.92);
  --muted-foreground: oklch(0.43 0.003 121.592);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.178 0.04 139.334);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.178 0.04 139.334);
  --border: oklch(0.964 0.005 140.524);
  --input: oklch(0.964 0.005 140.524);
  --primary: oklch(0.789 0.121 140.343);
  --primary-foreground: oklch(0.184 0.031 140.26);
  --secondary: oklch(0.814 0.102 123.651);
  --secondary-foreground: oklch(0.191 0.026 123.8);
  --accent: oklch(0.788 0.103 154.201);
  --accent-foreground: oklch(0.184 0.026 153.987);
  --destructive: oklch(0.47 0.18 29.258);
  --destructive-foreground: oklch(0.959 0.018 21.129);
  --ring: oklch(0.789 0.121 140.343);
  --chart-1: oklch(0.789 0.121 140.343);
  --chart-2: oklch(0.814 0.102 123.651);
  --chart-3: oklch(0.788 0.103 154.201);
  --chart-4: oklch(0.83 0.093 123.401);
  --chart-5: oklch(0.794 0.128 140.34);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.019 138.677);
  --foreground: oklch(0.979 0.004 140.526);
  --muted: oklch(0.263 0.032 123.596);
  --muted-foreground: oklch(0.759 0.002 121.542);
  --popover: oklch(0.098 0.019 138.677);
  --popover-foreground: oklch(0.979 0.004 140.526);
  --card: oklch(0.098 0.019 138.677);
  --card-foreground: oklch(0.979 0.004 140.526);
  --border: oklch(0.278 0.02 140.425);
  --input: oklch(0.278 0.02 140.425);
  --primary: oklch(0.789 0.121 140.343);
  --primary-foreground: oklch(0.184 0.031 140.26);
  --secondary: oklch(0.814 0.102 123.651);
  --secondary-foreground: oklch(0.191 0.026 123.8);
  --accent: oklch(0.788 0.103 154.201);
  --accent-foreground: oklch(0.184 0.026 153.987);
  --destructive: oklch(0.602 0.231 29.257);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.789 0.121 140.343);
  --chart-1: oklch(0.789 0.121 140.343);
  --chart-2: oklch(0.814 0.102 123.651);
  --chart-3: oklch(0.788 0.103 154.201);
  --chart-4: oklch(0.83 0.093 123.401);
  --chart-5: oklch(0.794 0.128 140.34);
}