Free is a shadcn/ui theme built around a near-white primary color (#e8eae6) with near-white accents (#eae6e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#e8eae6) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #0e1505black | #fafbf9snow |
| Card | #fcfcfcsnow | #050803black |
| Card foreground | #0b1004black | #fcfdfcwhite |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #0e1505black | #fafbf9snow |
| Primary | #e8eae6linen | #e8eae6linen |
| Primary foreground | #50554adarkslategray | #50554adarkslategray |
| Secondary | #e6e8ealavender | #e6e8ealavender |
| Secondary foreground | #4a5055darkslategray | #4a5055darkslategray |
| Muted | #d1dce6gainsboro | #19252edarkslategray |
| Muted foreground | #38434cdarkslategray | #b3bec7silver |
| Accent | #eae6e8lavender | #eae6e8lavender |
| Accent foreground | #554a50darkslategray | #554a50darkslategray |
| Destructive | #ab470dsaddlebrown | #ee6c20chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8eae6linen | #e8eae6linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 5.79:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.26:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Free in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.033 128.201);
--muted: oklch(0.89 0.018 242.467);
--muted-foreground: oklch(0.378 0.021 242.953);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.181 0.033 128.201);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.164 0.028 127.139);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.934 0.005 126.491);
--primary-foreground: oklch(0.44 0.019 126.986);
--secondary: oklch(0.931 0.003 242.232);
--secondary-foreground: oklch(0.426 0.011 242.549);
--accent: oklch(0.929 0.004 342.728);
--accent-foreground: oklch(0.421 0.018 343.619);
--destructive: oklch(0.523 0.145 44.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.005 126.491);
--chart-1: oklch(0.934 0.005 126.491);
--chart-2: oklch(0.931 0.003 242.232);
--chart-3: oklch(0.929 0.004 342.728);
--chart-4: oklch(0.954 0.002 242.219);
--chart-5: oklch(0.935 0.006 126.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.014 125.585);
--foreground: oklch(0.986 0.002 126.451);
--muted: oklch(0.257 0.025 243.601);
--muted-foreground: oklch(0.795 0.018 242.486);
--popover: oklch(0.1 0.014 125.585);
--popover-foreground: oklch(0.986 0.002 126.451);
--card: oklch(0.126 0.017 125.585);
--card-foreground: oklch(0.993 0.001 126.44);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.934 0.005 126.491);
--primary-foreground: oklch(0.44 0.019 126.986);
--secondary: oklch(0.931 0.003 242.232);
--secondary-foreground: oklch(0.426 0.011 242.549);
--accent: oklch(0.929 0.004 342.728);
--accent-foreground: oklch(0.421 0.018 343.619);
--destructive: oklch(0.679 0.18 45.407);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.934 0.005 126.491);
--chart-1: oklch(0.934 0.005 126.491);
--chart-2: oklch(0.931 0.003 242.232);
--chart-3: oklch(0.929 0.004 342.728);
--chart-4: oklch(0.954 0.002 242.219);
--chart-5: oklch(0.935 0.006 126.518);
}