Colorless is a shadcn/ui theme built around a vivid green primary color (#5ca50d) with vivid green accents (#10a50d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#5ca50d) on a green-tinted background (#080a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080a05black |
| Foreground | #000000black | #f7f9f6whitesmoke |
| Card | #ffffffwhite | #080a05black |
| Card foreground | #000000black | #f7f9f6whitesmoke |
| Popover | #ffffffwhite | #080a05black |
| Popover foreground | #000000black | #f7f9f6whitesmoke |
| Primary | #5ca50dolivedrab | #5ca50dolivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a5a30ddarkgoldenrod | #a5a30ddarkgoldenrod |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7e7d5gainsboro | #2a2a18black |
| Muted foreground | #6d6d5adimgray | #a5a592darkgray |
| Accent | #10a50dforestgreen | #10a50dforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d51c0bfirebrick | #e91f0cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5ca50dolivedrab | #5ca50dolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 7.81:1 | AAA |
| Muted text | 4.20:1 | AA Large |
| Accent | 3.27:1 | AA Large |
| Destructive | 5.24:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 3.27:1 | AA Large |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Colorless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.024 106.076);
--muted-foreground: oklch(0.53 0.029 106.565);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.649 0.183 134.079);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.694 0.147 108.564);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.627 0.209 142.493);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.558 0.216 30.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.183 134.079);
--chart-1: oklch(0.649 0.183 134.079);
--chart-2: oklch(0.694 0.147 108.564);
--chart-3: oklch(0.627 0.209 142.493);
--chart-4: oklch(0.737 0.157 108.563);
--chart-5: oklch(0.656 0.186 134.304);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 127.181);
--foreground: oklch(0.98 0.004 127.841);
--muted: oklch(0.28 0.031 107.409);
--muted-foreground: oklch(0.717 0.028 106.281);
--popover: oklch(0.14 0.012 127.181);
--popover-foreground: oklch(0.98 0.004 127.841);
--card: oklch(0.14 0.012 127.181);
--card-foreground: oklch(0.98 0.004 127.841);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.649 0.183 134.079);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.694 0.147 108.564);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.627 0.209 142.493);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.595 0.232 30.071);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.183 134.079);
--chart-1: oklch(0.649 0.183 134.079);
--chart-2: oklch(0.694 0.147 108.564);
--chart-3: oklch(0.627 0.209 142.493);
--chart-4: oklch(0.737 0.157 108.563);
--chart-5: oklch(0.656 0.186 134.304);
}