Factor is a shadcn/ui theme built around a vivid green primary color (#36bc06) with vivid green accents (#06bc30). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#36bc06) on a green-tinted background (#060c04).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #060c04black |
| Foreground | #091405black | #ffffffwhite |
| Card | #f8fdf7mintcream | #060c04black |
| Card foreground | #091405black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #060c04black |
| Popover foreground | #091405black | #ffffffwhite |
| Primary | #36bc06limegreen | #36bc06limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #91bc06yellowgreen | #91bc06yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #f3f3f1whitesmoke | #0d0e0cblack |
| Muted foreground | #4b4e41darkslategray | #bbbeb1silver |
| Accent | #06bc30limegreen | #06bc30limegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7f130bmaroon | #ec3427crimson |
| Destructive foreground | #fac6c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #36bc06limegreen | #36bc06limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.30:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 2.51:1 | Fail |
| Secondary button | 9.40:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 2.54:1 | Fail |
| Destructive | 6.98:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 2.51:1 | Fail |
| Secondary button | 9.40:1 | AAA |
| Muted text | 10.24:1 | AAA |
| Accent | 2.54:1 | Fail |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Factor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 137.211);
--foreground: oklch(0.177 0.035 136.833);
--muted: oklch(0.964 0.003 117.13);
--muted-foreground: oklch(0.416 0.021 117.992);
--popover: oklch(0.989 0.009 137.211);
--popover-foreground: oklch(0.177 0.035 136.833);
--card: oklch(0.989 0.009 137.211);
--card-foreground: oklch(0.177 0.035 136.833);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.696 0.224 140.397);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.737 0.183 124.388);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.691 0.219 144.614);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.385 0.143 29.525);
--destructive-foreground: oklch(0.87 0.06 23.109);
--ring: oklch(0.696 0.224 140.397);
--chart-1: oklch(0.696 0.224 140.397);
--chart-2: oklch(0.737 0.183 124.388);
--chart-3: oklch(0.691 0.219 144.614);
--chart-4: oklch(0.78 0.194 124.445);
--chart-5: oklch(0.703 0.228 140.511);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.023 135.704);
--foreground: oklch(1 0 180);
--muted: oklch(0.161 0.004 117.555);
--muted-foreground: oklch(0.796 0.018 117.487);
--popover: oklch(0.142 0.023 135.704);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.023 135.704);
--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.696 0.224 140.397);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.737 0.183 124.388);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.691 0.219 144.614);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.616 0.221 29.264);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.224 140.397);
--chart-1: oklch(0.696 0.224 140.397);
--chart-2: oklch(0.737 0.183 124.388);
--chart-3: oklch(0.691 0.219 144.614);
--chart-4: oklch(0.78 0.194 124.445);
--chart-5: oklch(0.703 0.228 140.511);
}