Mankind is a shadcn/ui theme built around a muted light green primary color (#f0f2e9) with muted light green accents (#d6d9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f0f2e9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #f0f2e9linen | #f0f2e9linen |
| Primary foreground | #262919black | #262919black |
| Secondary | #d6d9c9lightgrey | #1c1e15black |
| Secondary foreground | #3e422edarkslategray | #bac0a5silver |
| Muted | #eeefecwhitesmoke | #131310black |
| Muted foreground | #4d4d4cdarkslategray | #b3b3b2darkgray |
| Accent | #d6d9c9lightgrey | #1c1e15black |
| Accent foreground | #3e422edarkslategray | #bac0a5silver |
| Destructive | #671c09maroon | #ec4f27chocolate |
| Destructive foreground | #f8baablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f2e9linen | #f0f2e9linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.10:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 13.10:1 | AAA |
| Secondary button | 8.97:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 8.97:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Mankind in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.004 115.653);
--muted-foreground: oklch(0.42 0.003 115.689);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.956 0.012 115.808);
--primary-foreground: oklch(0.274 0.029 117.57);
--secondary: oklch(0.879 0.023 116.048);
--secondary-foreground: oklch(0.37 0.033 117.25);
--accent: oklch(0.879 0.023 116.048);
--accent-foreground: oklch(0.37 0.033 117.25);
--destructive: oklch(0.347 0.111 34.642);
--destructive-foreground: oklch(0.841 0.075 34.474);
--ring: oklch(0.956 0.012 115.808);
--chart-1: oklch(0.956 0.012 115.808);
--chart-2: oklch(0.879 0.023 116.048);
--chart-3: oklch(0.879 0.023 116.048);
--chart-4: oklch(0.9 0.019 115.96);
--chart-5: oklch(0.957 0.013 115.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 115.616);
--muted: oklch(0.186 0.006 116.143);
--muted-foreground: oklch(0.767 0.002 115.63);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 115.616);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 115.616);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.956 0.012 115.808);
--primary-foreground: oklch(0.274 0.029 117.57);
--secondary: oklch(0.229 0.016 116.887);
--secondary-foreground: oklch(0.795 0.036 116.413);
--accent: oklch(0.229 0.016 116.887);
--accent-foreground: oklch(0.795 0.036 116.413);
--destructive: oklch(0.64 0.201 34.767);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.956 0.012 115.808);
--chart-1: oklch(0.956 0.012 115.808);
--chart-2: oklch(0.229 0.016 116.887);
--chart-3: oklch(0.229 0.016 116.887);
--chart-4: oklch(0.266 0.02 116.992);
--chart-5: oklch(0.957 0.013 115.835);
}