Drinking is a shadcn/ui theme built around a muted yellow primary color (#85846b) with neutral gray accents (#d4d4d3). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted yellow primary (#85846b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #0c0c03black | #f8f8f6whitesmoke |
| Card | #fbfbf8snow | #030303black |
| Card foreground | #080802black | #fbfaf9snow |
| Popover | #fbfbf8snow | #030303black |
| Popover foreground | #080802black | #fbfaf9snow |
| Primary | #85846bgray | #85846bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d4d4d3lightgrey | #37362adarkslategray |
| Secondary foreground | #3b3b3adarkslategray | #d0d0c2lightgrey |
| Muted | #deded8gainsboro | #272621darkslategray |
| Muted foreground | #51503ddarkolivegreen | #c2c1aesilver |
| Accent | #d4d4d3lightgrey | #37362adarkslategray |
| Accent foreground | #3b3b3adarkslategray | #d0d0c2lightgrey |
| Destructive | #b82c05firebrick | #f94e1forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85846bgray | #85846bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 5.49:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.49:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Drinking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 104.006);
--foreground: oklch(0.151 0.022 106.623);
--muted: oklch(0.899 0.007 104.111);
--muted-foreground: oklch(0.428 0.03 105.09);
--popover: oklch(0.988 0.004 104.04);
--popover-foreground: oklch(0.131 0.019 106.823);
--card: oklch(0.988 0.004 104.04);
--card-foreground: oklch(0.131 0.019 106.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.036 104.943);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.87 0.001 103.994);
--secondary-foreground: oklch(0.353 0.002 104.064);
--accent: oklch(0.87 0.001 103.994);
--accent-foreground: oklch(0.353 0.002 104.064);
--destructive: oklch(0.514 0.182 34.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.607 0.036 104.943);
--chart-1: oklch(0.607 0.036 104.943);
--chart-2: oklch(0.87 0.001 103.994);
--chart-3: oklch(0.87 0.001 103.994);
--chart-4: oklch(0.893 0.001 103.989);
--chart-5: oklch(0.616 0.046 105.152);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.002 104.015);
--muted: oklch(0.268 0.01 104.578);
--muted-foreground: oklch(0.805 0.026 104.512);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 104);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.607 0.036 104.943);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.33 0.02 104.962);
--secondary-foreground: oklch(0.854 0.018 104.327);
--accent: oklch(0.33 0.02 104.962);
--accent-foreground: oklch(0.854 0.018 104.327);
--destructive: oklch(0.661 0.214 35.207);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.607 0.036 104.943);
--chart-1: oklch(0.607 0.036 104.943);
--chart-2: oklch(0.33 0.02 104.962);
--chart-3: oklch(0.33 0.02 104.962);
--chart-4: oklch(0.363 0.023 104.988);
--chart-5: oklch(0.616 0.046 105.152);
}