Organic for shadcn/ui

Organic is a shadcn/ui theme built around a violet primary color (#b37dcf) with teal accents (#7dcfb3). The light mode uses a neutral background (#fbf6fd). Dark mode keeps the violet primary (#b37dcf) on a violet-tinted background (#08050a).

Color palette

TokenLightDark
Background
#fbf6fdghostwhite
#08050ablack
Foreground
#000000black
#f8f6f9whitesmoke
Card
#fbf6fdghostwhite
#08050ablack
Card foreground
#000000black
#f8f6f9whitesmoke
Popover
#fbf6fdghostwhite
#08050ablack
Popover foreground
#000000black
#f8f6f9whitesmoke
Primary
#b37dcfmediumpurple
#b37dcfmediumpurple
Primary foreground
#0f0713black
#0f0713black
Secondary
#cfb37dtan
#cfb37dtan
Secondary foreground
#130f07black
#130f07black
Muted
#f3f1eclinen
#13100cblack
Muted foreground
#686050dimgray
#afa797darkgray
Accent
#7dcfb3mediumaquamarine
#7dcfb3mediumaquamarine
Accent foreground
#07130fblack
#07130fblack
Destructive
#981e0bdarkred
#e82e11orangered
Destructive foreground
#fcded9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b37dcfmediumpurple
#b37dcfmediumpurple

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.36:1AA
Secondary button9.48:1AAA
Muted text5.50:1AA
Accent10.30:1AAA
Destructive6.57:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button6.36:1AA
Secondary button9.48:1AAA
Muted text7.93:1AAA
Accent10.30:1AAA
Destructive4.33: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.98 0.011 314.774);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.006 84.568);
  --muted-foreground: oklch(0.491 0.026 84.549);
  --popover: oklch(0.98 0.011 314.774);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.011 314.774);
  --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.674 0.131 313.818);
  --primary-foreground: oklch(0.146 0.028 314.238);
  --secondary: oklch(0.779 0.078 84.151);
  --secondary-foreground: oklch(0.169 0.017 85.074);
  --accent: oklch(0.793 0.09 170.595);
  --accent-foreground: oklch(0.172 0.019 171.227);
  --destructive: oklch(0.443 0.16 31.553);
  --destructive-foreground: oklch(0.924 0.034 28.166);
  --ring: oklch(0.674 0.131 313.818);
  --chart-1: oklch(0.674 0.131 313.818);
  --chart-2: oklch(0.779 0.078 84.151);
  --chart-3: oklch(0.793 0.09 170.595);
  --chart-4: oklch(0.798 0.072 84.288);
  --chart-5: oklch(0.672 0.139 313.737);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.014 315.832);
  --foreground: oklch(0.975 0.005 314.801);
  --muted: oklch(0.176 0.01 84.546);
  --muted-foreground: oklch(0.731 0.024 84.592);
  --popover: oklch(0.126 0.014 315.832);
  --popover-foreground: oklch(0.975 0.005 314.801);
  --card: oklch(0.126 0.014 315.832);
  --card-foreground: oklch(0.975 0.005 314.801);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.674 0.131 313.818);
  --primary-foreground: oklch(0.146 0.028 314.238);
  --secondary: oklch(0.779 0.078 84.151);
  --secondary-foreground: oklch(0.169 0.017 85.074);
  --accent: oklch(0.793 0.09 170.595);
  --accent-foreground: oklch(0.172 0.019 171.227);
  --destructive: oklch(0.603 0.223 31.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.131 313.818);
  --chart-1: oklch(0.674 0.131 313.818);
  --chart-2: oklch(0.779 0.078 84.151);
  --chart-3: oklch(0.793 0.09 170.595);
  --chart-4: oklch(0.798 0.072 84.288);
  --chart-5: oklch(0.672 0.139 313.737);
}