Organic for shadcn/ui

Organic is a shadcn/ui theme built around a vivid green primary color (#79e713) with neutral gray accents (#e0e1df). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#79e713) on a green-tinted background (#0a0f05).

Color palette

TokenLightDark
Background
#fcfefbwhite
#0a0f05black
Foreground
#0c1603black
#fcfdfcwhite
Card
#fafcf8snow
#0d1307black
Card foreground
#0a1203black
#ffffffwhite
Popover
#fafcf8snow
#0d1307black
Popover foreground
#0a1203black
#ffffffwhite
Primary
#79e713lawngreen
#79e713lawngreen
Primary foreground
#162a03black
#162a03black
Secondary
#e0e1dfgainsboro
#262725darkslategray
Secondary foreground
#474a45darkslategray
#bfc1besilver
Muted
#d9ddd5gainsboro
#262a22darkslategray
Muted foreground
#5e6d50dimgray
#a0af92darkseagreen
Accent
#e0e1dfgainsboro
#262725darkslategray
Accent foreground
#474a45darkslategray
#bfc1besilver
Destructive
#630303maroon
#f70808red
Destructive foreground
#fc9c9clightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#79e713lawngreen
#79e713lawngreen

Contrast

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

Light mode
Text on background18.27:1AAA
Text on card18.49:1AAA
Primary button9.71:1AAA
Secondary button6.88:1AA
Muted text4.03:1AA Large
Accent6.88:1AA
Destructive6.71:1AA
Dark mode
Text on background19.00:1AAA
Text on card18.90:1AAA
Primary button9.71:1AAA
Secondary button8.27:1AAA
Muted text6.26:1AA
Accent8.27:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 129.161);
  --foreground: oklch(0.185 0.04 130.535);
  --muted: oklch(0.892 0.012 129.272);
  --muted-foreground: oklch(0.513 0.047 130.146);
  --popover: oklch(0.989 0.007 129.197);
  --popover-foreground: oklch(0.167 0.035 129.359);
  --card: oklch(0.989 0.007 129.197);
  --card-foreground: oklch(0.167 0.035 129.359);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.24 135.346);
  --primary-foreground: oklch(0.26 0.067 132.886);
  --secondary: oklch(0.909 0.003 129.157);
  --secondary-foreground: oklch(0.404 0.008 129.326);
  --accent: oklch(0.909 0.003 129.157);
  --accent-foreground: oklch(0.404 0.008 129.326);
  --destructive: oklch(0.316 0.126 28.647);
  --destructive-foreground: oklch(0.791 0.115 19.956);
  --ring: oklch(0.83 0.24 135.346);
  --chart-1: oklch(0.83 0.24 135.346);
  --chart-2: oklch(0.909 0.003 129.157);
  --chart-3: oklch(0.909 0.003 129.157);
  --chart-4: oklch(0.932 0.002 129.148);
  --chart-5: oklch(0.839 0.245 135.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.022 129.327);
  --foreground: oklch(0.994 0.002 129.149);
  --muted: oklch(0.28 0.016 129.76);
  --muted-foreground: oklch(0.734 0.043 129.764);
  --popover: oklch(0.175 0.026 130.376);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.175 0.026 130.376);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.83 0.24 135.346);
  --primary-foreground: oklch(0.26 0.067 132.886);
  --secondary: oklch(0.271 0.003 129.243);
  --secondary-foreground: oklch(0.808 0.004 129.176);
  --accent: oklch(0.271 0.003 129.243);
  --accent-foreground: oklch(0.808 0.004 129.176);
  --destructive: oklch(0.615 0.25 29.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.24 135.346);
  --chart-1: oklch(0.83 0.24 135.346);
  --chart-2: oklch(0.271 0.003 129.243);
  --chart-3: oklch(0.271 0.003 129.243);
  --chart-4: oklch(0.303 0.004 129.249);
  --chart-5: oklch(0.839 0.245 135.57);
}