Human is a shadcn/ui theme built around a vivid violet primary color (#a447fa) with muted light violet accents (#dbd7e0). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid violet primary (#a447fa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #000000black |
| Foreground | #0d0514black | #faf9fbghostwhite |
| Card | #faf8fcghostwhite | #000000black |
| Card foreground | #0d0514black | #faf9fbghostwhite |
| Popover | #faf8fcghostwhite | #000000black |
| Popover foreground | #0d0514black | #faf9fbghostwhite |
| Primary | #a447fablueviolet | #a447fablueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebeaeblavender | #1f1924black |
| Secondary foreground | #524e55darkslategray | #b8abc4silver |
| Muted | #e6deedlavender | #1a1221black |
| Muted foreground | #66616bdimgray | #99949edarkgray |
| Accent | #dbd7e0gainsboro | #33273fdarkslategray |
| Accent foreground | #433a4adarkslategray | #ccc0d8thistle |
| Destructive | #95390fsaddlebrown | #e96325chocolate |
| Destructive foreground | #fbe4daantiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a447fablueviolet | #a447fablueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 6.77:1 | AA |
| Muted text | 4.59:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Human in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 309.07);
--foreground: oklch(0.14 0.036 307.545);
--muted: oklch(0.911 0.021 308.878);
--muted-foreground: oklch(0.501 0.017 308.765);
--popover: oklch(0.982 0.005 309.07);
--popover-foreground: oklch(0.14 0.036 307.545);
--card: oklch(0.982 0.005 309.07);
--card-foreground: oklch(0.14 0.036 307.545);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.608 0.251 303.106);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.938 0.002 309.099);
--secondary-foreground: oklch(0.431 0.011 308.847);
--accent: oklch(0.885 0.013 308.977);
--accent-foreground: oklch(0.365 0.029 308.292);
--destructive: oklch(0.467 0.133 41.381);
--destructive-foreground: oklch(0.936 0.029 46.532);
--ring: oklch(0.608 0.251 303.106);
--chart-1: oklch(0.608 0.251 303.106);
--chart-2: oklch(0.938 0.002 309.099);
--chart-3: oklch(0.885 0.013 308.977);
--chart-4: oklch(0.961 0.001 309.11);
--chart-5: oklch(0.608 0.257 302.824);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.004 309.085);
--muted: oklch(0.2 0.031 307.462);
--muted-foreground: oklch(0.674 0.016 308.877);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.004 309.085);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.004 309.085);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.608 0.251 303.106);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.226 0.023 308.072);
--secondary-foreground: oklch(0.76 0.039 308.587);
--accent: oklch(0.297 0.046 307.451);
--accent-foreground: oklch(0.825 0.036 308.663);
--destructive: oklch(0.661 0.181 42.041);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.608 0.251 303.106);
--chart-1: oklch(0.608 0.251 303.106);
--chart-2: oklch(0.226 0.023 308.072);
--chart-3: oklch(0.297 0.046 307.451);
--chart-4: oklch(0.255 0.027 307.996);
--chart-5: oklch(0.608 0.257 302.824);
}