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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.73:1 | AA |
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);
}