Adored is a shadcn/ui theme built around a muted green primary color (#8ba25d) with muted light green accents (#cbd2bc). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the muted green primary (#8ba25d) on a green-tinted background (#0c1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #0c1005black |
| Foreground | #0a0e02black | #fdfdfbsnow |
| Card | #f9fcf2floralwhite | #0f1406black |
| Card foreground | #060901black | #ffffffwhite |
| Popover | #f9fcf2floralwhite | #0f1406black |
| Popover foreground | #060901black | #ffffffwhite |
| Primary | #8ba25dgray | #8ba25dgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d5d8cflightgrey | #151612black |
| Secondary foreground | #3d4134darkslategray | #b0b6a5darkgray |
| Muted | #e3e4e2gainsboro | #1d1d1bblack |
| Muted foreground | #5a5b57dimgray | #a6a8a4darkgray |
| Accent | #cbd2bcsilver | #282d20darkslategray |
| Accent foreground | #313725darkslategray | #c3cab4silver |
| Destructive | #952109darkred | #f03d19orangered |
| Destructive foreground | #fcdbd4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ba25dgray | #8ba25dgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 18.90:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.69:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Adored in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 121.637);
--foreground: oklch(0.153 0.031 121.817);
--muted: oklch(0.918 0.004 121.561);
--muted-foreground: oklch(0.469 0.006 121.694);
--popover: oklch(0.987 0.013 121.71);
--popover-foreground: oklch(0.133 0.026 121.045);
--card: oklch(0.987 0.013 121.71);
--card-foreground: oklch(0.133 0.026 121.045);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.678 0.097 124.023);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.878 0.013 121.738);
--secondary-foreground: oklch(0.367 0.022 122.482);
--accent: oklch(0.852 0.031 122.092);
--accent-foreground: oklch(0.326 0.032 123.145);
--destructive: oklch(0.439 0.155 32.689);
--destructive-foreground: oklch(0.916 0.039 31.182);
--ring: oklch(0.678 0.097 124.023);
--chart-1: oklch(0.678 0.097 124.023);
--chart-2: oklch(0.878 0.013 121.738);
--chart-3: oklch(0.852 0.031 122.092);
--chart-4: oklch(0.9 0.011 121.688);
--chart-5: oklch(0.687 0.107 124.279);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.025 122.824);
--foreground: oklch(0.994 0.003 121.535);
--muted: oklch(0.231 0.005 121.876);
--muted-foreground: oklch(0.728 0.005 121.609);
--popover: oklch(0.18 0.028 123.698);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.18 0.028 123.698);
--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.678 0.097 124.023);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.199 0.008 122.164);
--secondary-foreground: oklch(0.766 0.024 121.991);
--accent: oklch(0.288 0.024 122.853);
--accent-foreground: oklch(0.828 0.031 122.093);
--destructive: oklch(0.629 0.22 32.762);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.097 124.023);
--chart-1: oklch(0.678 0.097 124.023);
--chart-2: oklch(0.199 0.008 122.164);
--chart-3: oklch(0.288 0.024 122.853);
--chart-4: oklch(0.235 0.011 122.245);
--chart-5: oklch(0.687 0.107 124.279);
}