Organic for shadcn/ui

Organic is a shadcn/ui theme built around a violet primary color (#7f61cc) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the violet primary (#7f61cc) on a violet-tinted background (#09060e).

Color palette

TokenLightDark
Background
#f9f8fbghostwhite
#09060eblack
Foreground
#05020dblack
#fcfcfdwhite
Card
#f9f8fbghostwhite
#09060eblack
Card foreground
#05020dblack
#fcfcfdwhite
Popover
#f9f8fbghostwhite
#09060eblack
Popover foreground
#05020dblack
#fcfcfdwhite
Primary
#7f61ccslateblue
#7f61ccslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9d9d9gainsboro
#141415black
Secondary foreground
#404040darkslategray
#acaab1darkgray
Muted
#eae1e1gainsboro
#17151eblack
Muted foreground
#493636darkslategray
#bbb6c9silver
Accent
#d9d9d9gainsboro
#141415black
Accent foreground
#404040darkslategray
#acaab1darkgray
Destructive
#ba1512firebrick
#e31a16crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f61ccslateblue
#7f61ccslateblue

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button4.67:1AA
Secondary button7.32:1AAA
Muted text8.75:1AAA
Accent7.32:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button4.67:1AA
Secondary button8.03:1AAA
Muted text9.16:1AAA
Accent8.03:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 299.23);
  --foreground: oklch(0.106 0.034 298.915);
  --muted: oklch(0.916 0.011 17.35);
  --muted-foreground: oklch(0.355 0.028 18.534);
  --popover: oklch(0.982 0.004 299.23);
  --popover-foreground: oklch(0.106 0.034 298.915);
  --card: oklch(0.982 0.004 299.23);
  --card-foreground: oklch(0.106 0.034 298.915);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.159 293.858);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.502 0.195 28.548);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.159 293.858);
  --chart-1: oklch(0.574 0.159 293.858);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.569 0.168 293.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.018 298.473);
  --foreground: oklch(0.991 0.002 299.277);
  --muted: oklch(0.202 0.019 297.618);
  --muted-foreground: oklch(0.786 0.027 298.704);
  --popover: oklch(0.132 0.018 298.473);
  --popover-foreground: oklch(0.991 0.002 299.277);
  --card: oklch(0.132 0.018 298.473);
  --card-foreground: oklch(0.991 0.002 299.277);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.159 293.858);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.191 0.003 299.005);
  --secondary-foreground: oklch(0.742 0.009 299.085);
  --accent: oklch(0.191 0.003 299.005);
  --accent-foreground: oklch(0.742 0.009 299.085);
  --destructive: oklch(0.584 0.229 28.666);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.159 293.858);
  --chart-1: oklch(0.574 0.159 293.858);
  --chart-2: oklch(0.191 0.003 299.005);
  --chart-3: oklch(0.191 0.003 299.005);
  --chart-4: oklch(0.223 0.004 298.966);
  --chart-5: oklch(0.569 0.168 293.42);
}