Organic for shadcn/ui

Organic is a shadcn/ui theme built around a near-black primary color (#090a06) with near-black accents (#070a06). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the near-black primary (#090a06) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fbfbf8snow
#090b05black
Foreground
#0b0d02black
#fdfdfcwhite
Card
#fbfbf8snow
#090b05black
Card foreground
#0b0d02black
#fdfdfcwhite
Popover
#fbfbf8snow
#090b05black
Popover foreground
#0b0d02black
#fdfdfcwhite
Primary
#090a06black
#090a06black
Primary foreground
#aebb86darkkhaki
#aebb86darkkhaki
Secondary
#0a0906black
#0a0906black
Secondary foreground
#bbae86tan
#bbae86tan
Muted
#f4f3f1whitesmoke
#0e0d0bblack
Muted foreground
#6c685adimgray
#a5a093darkgray
Accent
#070a06black
#070a06black
Accent foreground
#93bb86darkseagreen
#93bb86darkseagreen
Destructive
#7c3004saddlebrown
#f86612orangered
Destructive foreground
#fdcfb5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090a06black
#090a06black

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button9.70:1AAA
Secondary button9.03:1AAA
Muted text5.02:1AA
Accent9.20:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button9.70:1AAA
Secondary button9.03:1AAA
Muted text7.42:1AAA
Accent9.20:1AAA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 117.898);
  --foreground: oklch(0.153 0.029 118.841);
  --muted: oklch(0.964 0.003 91.435);
  --muted-foreground: oklch(0.517 0.021 91.708);
  --popover: oklch(0.988 0.004 117.898);
  --popover-foreground: oklch(0.153 0.029 118.841);
  --card: oklch(0.988 0.004 117.898);
  --card-foreground: oklch(0.153 0.029 118.841);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.14 0.011 117.933);
  --primary-foreground: oklch(0.769 0.073 119.552);
  --secondary: oklch(0.138 0.009 94.061);
  --secondary-foreground: oklch(0.751 0.056 91.814);
  --accent: oklch(0.138 0.012 136.899);
  --accent-foreground: oklch(0.75 0.085 138);
  --destructive: oklch(0.411 0.117 44.023);
  --destructive-foreground: oklch(0.888 0.063 51.683);
  --ring: oklch(0.14 0.011 117.933);
  --chart-1: oklch(0.14 0.011 117.933);
  --chart-2: oklch(0.138 0.009 94.061);
  --chart-3: oklch(0.138 0.012 136.899);
  --chart-4: oklch(0.18 0.013 91.812);
  --chart-5: oklch(0.141 0.012 117.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.015 118.028);
  --foreground: oklch(0.994 0.002 117.851);
  --muted: oklch(0.161 0.004 91.629);
  --muted-foreground: oklch(0.706 0.02 91.63);
  --popover: oklch(0.144 0.015 118.028);
  --popover-foreground: oklch(0.994 0.002 117.851);
  --card: oklch(0.144 0.015 118.028);
  --card-foreground: oklch(0.994 0.002 117.851);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.14 0.011 117.933);
  --primary-foreground: oklch(0.769 0.073 119.552);
  --secondary: oklch(0.138 0.009 94.061);
  --secondary-foreground: oklch(0.751 0.056 91.814);
  --accent: oklch(0.138 0.012 136.899);
  --accent-foreground: oklch(0.75 0.085 138);
  --destructive: oklch(0.685 0.196 43.442);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.14 0.011 117.933);
  --chart-1: oklch(0.14 0.011 117.933);
  --chart-2: oklch(0.138 0.009 94.061);
  --chart-3: oklch(0.138 0.012 136.899);
  --chart-4: oklch(0.18 0.013 91.812);
  --chart-5: oklch(0.141 0.012 117.943);
}