Distribution is a shadcn/ui theme built around a vivid deep green primary color (#516e0c) with vivid deep violet accents (#2a0c6e). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid deep green primary (#516e0c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #000000black |
| Foreground | #060902black | #f8f8f7whitesmoke |
| Card | #fbfcf8snow | #030303black |
| Card foreground | #030401black | #fafaf9snow |
| Popover | #fbfcf8snow | #030303black |
| Popover foreground | #030401black | #fafaf9snow |
| Primary | #516e0cdarkolivegreen | #516e0cdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2a0c6emidnightblue | #2a0c6emidnightblue |
| Secondary foreground | #c9b6f7thistle | #c9b6f7thistle |
| Muted | #efedf2whitesmoke | #0e0d12black |
| Muted foreground | #3f3a4bdarkslategray | #b9b4c5silver |
| Accent | #2a0c6emidnightblue | #2a0c6emidnightblue |
| Accent foreground | #c9b6f7thistle | #c9b6f7thistle |
| Destructive | #e14705orangered | #fa601eorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #516e0cdarkolivegreen | #516e0cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 9.41:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 4.12:1 | AA Large |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 9.60:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Distribution in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 120.085);
--foreground: oklch(0.131 0.022 119.885);
--muted: oklch(0.949 0.008 299.904);
--muted-foreground: oklch(0.359 0.03 298.611);
--popover: oklch(0.989 0.006 120.132);
--popover-foreground: oklch(0.104 0.018 119.885);
--card: oklch(0.989 0.006 120.132);
--card-foreground: oklch(0.104 0.018 119.885);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.122 126.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.284 0.149 285.489);
--secondary-foreground: oklch(0.814 0.093 298.075);
--accent: oklch(0.284 0.149 285.489);
--accent-foreground: oklch(0.814 0.093 298.075);
--destructive: oklch(0.611 0.2 37.617);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.122 126.278);
--chart-1: oklch(0.498 0.122 126.278);
--chart-2: oklch(0.284 0.149 285.489);
--chart-3: oklch(0.284 0.149 285.489);
--chart-4: oklch(0.307 0.164 285.03);
--chart-5: oklch(0.503 0.124 126.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.002 120.074);
--muted: oklch(0.162 0.012 298.803);
--muted-foreground: oklch(0.78 0.025 299.502);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.001 120.062);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.001 120.062);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.498 0.122 126.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.284 0.149 285.489);
--secondary-foreground: oklch(0.814 0.093 298.075);
--accent: oklch(0.284 0.149 285.489);
--accent-foreground: oklch(0.814 0.093 298.075);
--destructive: oklch(0.682 0.201 39.994);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.498 0.122 126.278);
--chart-1: oklch(0.498 0.122 126.278);
--chart-2: oklch(0.284 0.149 285.489);
--chart-3: oklch(0.284 0.149 285.489);
--chart-4: oklch(0.307 0.164 285.03);
--chart-5: oklch(0.503 0.124 126.488);
}