Leek is a shadcn/ui theme built around a neutral gray primary color (#434441) with neutral gray accents (#444143). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the neutral gray primary (#434441) on a green-tinted background (#090b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #090b05black |
| Foreground | #000000black | #f8faf5whitesmoke |
| Card | #f9fcf3floralwhite | #0c0e06black |
| Card foreground | #000000black | #fafbf8snow |
| Popover | #f9fcf3floralwhite | #0c0e06black |
| Popover foreground | #000000black | #fafbf8snow |
| Primary | #434441darkslategray | #434441darkslategray |
| Primary foreground | #dcdcdbgainsboro | #dcdcdbgainsboro |
| Secondary | #414344darkslategray | #414344darkslategray |
| Secondary foreground | #dbdcdcgainsboro | #dbdcdcgainsboro |
| Muted | #dae6eclavender | #132025black |
| Muted foreground | #3f4446darkslategray | #b9bec0silver |
| Accent | #444143darkslategray | #444143darkslategray |
| Accent foreground | #dcdbdcgainsboro | #dcdbdcgainsboro |
| Destructive | #b8280ffirebrick | #ef583etomato |
| Destructive foreground | #fffbfasnow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #434441darkslategray | #434441darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 8.90:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.15:1 | AA |
Paste this into your globals.css to use Leek in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 120.176);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.015 225.172);
--muted-foreground: oklch(0.382 0.007 225.201);
--popover: oklch(0.986 0.012 120.246);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.012 120.246);
--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.384 0.005 120.237);
--primary-foreground: oklch(0.894 0.002 120.075);
--secondary: oklch(0.381 0.003 225.066);
--secondary-foreground: oklch(0.893 0.001 224.998);
--accent: oklch(0.378 0.005 336.102);
--accent-foreground: oklch(0.892 0.002 335.912);
--destructive: oklch(0.511 0.183 32.088);
--destructive-foreground: oklch(0.991 0.004 29.481);
--ring: oklch(0.384 0.005 120.237);
--chart-1: oklch(0.384 0.005 120.237);
--chart-2: oklch(0.381 0.003 225.066);
--chart-3: oklch(0.378 0.005 336.102);
--chart-4: oklch(0.41 0.003 225.068);
--chart-5: oklch(0.389 0.011 120.528);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 119.971);
--foreground: oklch(0.982 0.006 120.141);
--muted: oklch(0.233 0.02 226.461);
--muted-foreground: oklch(0.799 0.006 225.065);
--popover: oklch(0.158 0.017 121.153);
--popover-foreground: oklch(0.988 0.004 120.106);
--card: oklch(0.158 0.017 121.153);
--card-foreground: oklch(0.988 0.004 120.106);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.384 0.005 120.237);
--primary-foreground: oklch(0.894 0.002 120.075);
--secondary: oklch(0.381 0.003 225.066);
--secondary-foreground: oklch(0.893 0.001 224.998);
--accent: oklch(0.378 0.005 336.102);
--accent-foreground: oklch(0.892 0.002 335.912);
--destructive: oklch(0.658 0.191 32.266);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.384 0.005 120.237);
--chart-1: oklch(0.384 0.005 120.237);
--chart-2: oklch(0.381 0.003 225.066);
--chart-3: oklch(0.378 0.005 336.102);
--chart-4: oklch(0.41 0.003 225.068);
--chart-5: oklch(0.389 0.011 120.528);
}