Coffee is a shadcn/ui theme built around a deep orange primary color (#472e0b) with deep green accents (#42470b). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep orange primary (#472e0b) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070503black |
| Foreground | #050301black | #fbfaf9snow |
| Card | #fdfaf7snow | #0b0805black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fefdfbsnow | #070503black |
| Popover foreground | #050301black | #fbfaf9snow |
| Primary | #472e0bdarkolivegreen | #472e0bdarkolivegreen |
| Primary foreground | #efc995burlywood | #efc995burlywood |
| Secondary | #47100bmaroon | #47100bmaroon |
| Secondary foreground | #ef9c95darksalmon | #ef9c95darksalmon |
| Muted | #f6ebealinen | #150a09black |
| Muted foreground | #524342darkslategray | #bdaeaddarkgray |
| Accent | #42470bdarkolivegreen | #42470bdarkolivegreen |
| Accent foreground | #d4e23cgreenyellow | #d4e23cgreenyellow |
| Destructive | #b80000darkred | #f00000red |
| Destructive foreground | #ffebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #472e0bdarkolivegreen | #472e0bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 9.08:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Coffee in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 76.639);
--foreground: oklch(0.098 0.016 86.572);
--muted: oklch(0.948 0.012 23.706);
--muted-foreground: oklch(0.399 0.021 24.164);
--popover: oklch(0.994 0.003 76.639);
--popover-foreground: oklch(0.098 0.016 86.572);
--card: oklch(0.987 0.006 76.626);
--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.324 0.061 71.083);
--primary-foreground: oklch(0.857 0.081 75.666);
--secondary: oklch(0.268 0.085 29.117);
--secondary-foreground: oklch(0.774 0.101 25.325);
--accent: oklch(0.381 0.079 114.432);
--accent-foreground: oklch(0.874 0.179 114.337);
--destructive: oklch(0.491 0.201 29.234);
--destructive-foreground: oklch(0.955 0.022 17.549);
--ring: oklch(0.324 0.061 71.083);
--chart-1: oklch(0.324 0.061 71.083);
--chart-2: oklch(0.268 0.085 29.117);
--chart-3: oklch(0.381 0.079 114.432);
--chart-4: oklch(0.299 0.098 29.311);
--chart-5: oklch(0.326 0.062 70.628);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.01 81.905);
--foreground: oklch(0.986 0.002 76.641);
--muted: oklch(0.162 0.02 25.239);
--muted-foreground: oklch(0.764 0.017 23.814);
--popover: oklch(0.12 0.01 81.905);
--popover-foreground: oklch(0.986 0.002 76.641);
--card: oklch(0.137 0.011 81.787);
--card-foreground: oklch(0.993 0.001 76.646);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.324 0.061 71.083);
--primary-foreground: oklch(0.857 0.081 75.666);
--secondary: oklch(0.268 0.085 29.117);
--secondary-foreground: oklch(0.774 0.101 25.325);
--accent: oklch(0.381 0.079 114.432);
--accent-foreground: oklch(0.874 0.179 114.337);
--destructive: oklch(0.599 0.246 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.324 0.061 71.083);
--chart-1: oklch(0.324 0.061 71.083);
--chart-2: oklch(0.268 0.085 29.117);
--chart-3: oklch(0.381 0.079 114.432);
--chart-4: oklch(0.299 0.098 29.311);
--chart-5: oklch(0.326 0.062 70.628);
}