Coleslaw is a shadcn/ui theme built around a vivid deep orange primary color (#170b03) with vivid deep violet accents (#0b0317). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#170b03) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #170b03black | #fcfaf8snow |
| Card | #ffffffwhite | #030202black |
| Card foreground | #170b03black | #fcfaf8snow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #170b03black | #fcfaf8snow |
| Primary | #170b03black | #170b03black |
| Primary foreground | #eb9a60sandybrown | #eb9a60sandybrown |
| Secondary | #03170bblack | #03170bblack |
| Secondary foreground | #19cc64mediumseagreen | #19cc64mediumseagreen |
| Muted | #cde5d7gainsboro | #1a3224darkslategray |
| Muted foreground | #545956dimgray | #a6aba8darkgray |
| Accent | #0b0317black | #0b0317black |
| Accent foreground | #d4bbf7thistle | #d4bbf7thistle |
| Destructive | #5c250amaroon | #ea773ecoral |
| Destructive foreground | #f5bea3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #170b03black | #170b03black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.59:1 | AAA |
| Secondary button | 8.73:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 11.79:1 | AAA |
| Destructive | 7.39:1 | AAA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.59:1 | AAA |
| Secondary button | 8.73:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 11.79:1 | AAA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Coleslaw in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.164 0.028 62.022);
--muted: oklch(0.9 0.032 160.141);
--muted-foreground: oklch(0.459 0.008 160.589);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.164 0.028 62.022);
--card: oklch(1 0 180);
--card-foreground: oklch(0.164 0.028 62.022);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.164 0.028 62.022);
--primary-foreground: oklch(0.757 0.122 55.225);
--secondary: oklch(0.182 0.037 156.83);
--secondary-foreground: oklch(0.742 0.197 150.387);
--accent: oklch(0.13 0.048 302.514);
--accent-foreground: oklch(0.833 0.086 303.603);
--destructive: oklch(0.34 0.088 43.823);
--destructive-foreground: oklch(0.845 0.073 47.837);
--ring: oklch(0.164 0.028 62.022);
--chart-1: oklch(0.164 0.028 62.022);
--chart-2: oklch(0.182 0.037 156.83);
--chart-3: oklch(0.13 0.048 302.514);
--chart-4: oklch(0.232 0.052 154.073);
--chart-5: oklch(0.164 0.029 62.391);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.006 63.274);
--foreground: oklch(0.985 0.003 58.323);
--muted: oklch(0.294 0.041 157.155);
--muted-foreground: oklch(0.736 0.007 160.779);
--popover: oklch(0.092 0.006 63.274);
--popover-foreground: oklch(0.985 0.003 58.323);
--card: oklch(0.092 0.006 63.274);
--card-foreground: oklch(0.985 0.003 58.323);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.164 0.028 62.022);
--primary-foreground: oklch(0.757 0.122 55.225);
--secondary: oklch(0.182 0.037 156.83);
--secondary-foreground: oklch(0.742 0.197 150.387);
--accent: oklch(0.13 0.048 302.514);
--accent-foreground: oklch(0.833 0.086 303.603);
--destructive: oklch(0.692 0.158 45.214);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.164 0.028 62.022);
--chart-1: oklch(0.164 0.028 62.022);
--chart-2: oklch(0.182 0.037 156.83);
--chart-3: oklch(0.13 0.048 302.514);
--chart-4: oklch(0.232 0.052 154.073);
--chart-5: oklch(0.164 0.029 62.391);
}