Colorless is a shadcn/ui theme built around a light yellow primary color (#f6f7e3) with light green accents (#ecf7e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f6f7e3) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #040501black | #f9faf5whitesmoke |
| Card | #ffffffwhite | #070703black |
| Card foreground | #040501black | #f9faf5whitesmoke |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #040501black | #f9faf5whitesmoke |
| Primary | #f6f7e3beige | #f6f7e3beige |
| Primary foreground | #32340fdarkslategray | #32340fdarkslategray |
| Secondary | #f7eee3linen | #f7eee3linen |
| Secondary foreground | #34230fblack | #34230fblack |
| Muted | #ece2d5antiquewhite | #2a2013black |
| Muted foreground | #72675adimgray | #a59a8drosybrown |
| Accent | #ecf7e3beige | #ecf7e3beige |
| Accent foreground | #1f340fdarkgreen | #1f340fdarkgreen |
| Destructive | #8c2303darkred | #fb5d2dtomato |
| Destructive foreground | #fed1c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f7e3beige | #f6f7e3beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 11.84:1 | AAA |
| Secondary button | 13.14:1 | AAA |
| Muted text | 4.30:1 | AA Large |
| Accent | 12.21:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 11.84:1 | AAA |
| Secondary button | 13.14:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 12.21:1 | AAA |
| Destructive | 6.69: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.108 0.019 110.965);
--muted: oklch(0.916 0.021 73.039);
--muted-foreground: oklch(0.521 0.025 72.777);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.019 110.965);
--card: oklch(1 0 180);
--card-foreground: oklch(0.108 0.019 110.965);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.97 0.026 109.205);
--primary-foreground: oklch(0.313 0.056 111.895);
--secondary: oklch(0.954 0.018 73.075);
--secondary-foreground: oklch(0.271 0.041 70.038);
--accent: oklch(0.963 0.029 130.722);
--accent-foreground: oklch(0.297 0.065 133.278);
--destructive: oklch(0.424 0.145 35.257);
--destructive-foreground: oklch(0.895 0.054 37.592);
--ring: oklch(0.97 0.026 109.205);
--chart-1: oklch(0.97 0.026 109.205);
--chart-2: oklch(0.954 0.018 73.075);
--chart-3: oklch(0.963 0.029 130.722);
--chart-4: oklch(0.974 0.01 73.142);
--chart-5: oklch(0.972 0.028 109.23);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 110.234);
--foreground: oklch(0.982 0.006 108.82);
--muted: oklch(0.251 0.027 71.646);
--muted-foreground: oklch(0.693 0.023 72.934);
--popover: oklch(0.128 0.015 110.234);
--popover-foreground: oklch(0.982 0.006 108.82);
--card: oklch(0.128 0.015 110.234);
--card-foreground: oklch(0.982 0.006 108.82);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.026 109.205);
--primary-foreground: oklch(0.313 0.056 111.895);
--secondary: oklch(0.954 0.018 73.075);
--secondary-foreground: oklch(0.271 0.041 70.038);
--accent: oklch(0.963 0.029 130.722);
--accent-foreground: oklch(0.297 0.065 133.278);
--destructive: oklch(0.68 0.202 36.736);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.97 0.026 109.205);
--chart-1: oklch(0.97 0.026 109.205);
--chart-2: oklch(0.954 0.018 73.075);
--chart-3: oklch(0.963 0.029 130.722);
--chart-4: oklch(0.974 0.01 73.142);
--chart-5: oklch(0.972 0.028 109.23);
}