Free is a shadcn/ui theme built around a purple primary color (#b766c2) with neutral gray accents (#e3e3e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#b766c2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b030cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #070208black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #070208black | #ffffffwhite |
| Primary | #b766c2mediumorchid | #b766c2mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #e3e3e3gainsboro | #282429darkslategray |
| Secondary foreground | #4a4a4adarkslategray | #c2bbc3silver |
| Muted | #e9e2e2gainsboro | #1c161dblack |
| Muted foreground | #4d4242darkslategray | #bcb2bdsilver |
| Accent | #e3e3e3gainsboro | #282429darkslategray |
| Accent foreground | #4a4a4adarkslategray | #c2bbc3silver |
| Destructive | #70220amaroon | #ea4b1aorangered |
| Destructive foreground | #f8c4b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b766c2mediumorchid | #b766c2mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.55:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.81:1 | AA Large |
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.122 0.031 323.773);
--muted: oklch(0.918 0.008 17.308);
--muted-foreground: oklch(0.39 0.016 17.848);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.027 324.054);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.027 324.054);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.636 0.158 322.789);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.916 0 180);
--secondary-foreground: oklch(0.409 0 190.305);
--accent: oklch(0.916 0 180);
--accent-foreground: oklch(0.409 0 190.305);
--destructive: oklch(0.371 0.115 36.386);
--destructive-foreground: oklch(0.863 0.064 37.594);
--ring: oklch(0.636 0.158 322.789);
--chart-1: oklch(0.636 0.158 322.789);
--chart-2: oklch(0.916 0 180);
--chart-3: oklch(0.916 0 180);
--chart-4: oklch(0.939 0 180);
--chart-5: oklch(0.636 0.168 322.812);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.018 322.393);
--muted-foreground: oklch(0.775 0.02 322.198);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.636 0.158 322.789);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.266 0.01 322.242);
--secondary-foreground: oklch(0.801 0.013 322.168);
--accent: oklch(0.266 0.01 322.242);
--accent-foreground: oklch(0.801 0.013 322.168);
--destructive: oklch(0.631 0.203 35.937);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.636 0.158 322.789);
--chart-1: oklch(0.636 0.158 322.789);
--chart-2: oklch(0.266 0.01 322.242);
--chart-3: oklch(0.266 0.01 322.242);
--chart-4: oklch(0.297 0.012 322.248);
--chart-5: oklch(0.636 0.168 322.812);
}