Chopstick is a shadcn/ui theme built around a muted green primary color (#818967) with muted light green accents (#c9d0b4). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#818967) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #060703black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f9faf5whitesmoke | #090a05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f9faf5whitesmoke | #090a05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #818967gray | #818967gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d3d6c7lightgrey | #151514black |
| Secondary foreground | #3a3e2ddarkslategray | #afb0abdarkgray |
| Muted | #dfe3d3gainsboro | #282c1cdarkslategray |
| Muted foreground | #4a4e3bdarkolivegreen | #bfc4b1silver |
| Accent | #c9d0b4silver | #282923darkslategray |
| Accent foreground | #2e321fdarkslategray | #c2c4basilver |
| Destructive | #8d2207darkred | #f34316orangered |
| Destructive foreground | #fcd4cabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #818967gray | #818967gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Chopstick in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 117.163);
--foreground: oklch(0 0 0);
--muted: oklch(0.909 0.021 117.501);
--muted-foreground: oklch(0.416 0.031 118.448);
--popover: oklch(0.983 0.007 117.207);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.007 117.207);
--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.613 0.049 118.544);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.87 0.021 117.519);
--secondary-foreground: oklch(0.355 0.029 118.56);
--accent: oklch(0.845 0.039 117.906);
--accent-foreground: oklch(0.308 0.032 119.019);
--destructive: oklch(0.424 0.146 34.014);
--destructive-foreground: oklch(0.901 0.048 34.341);
--ring: oklch(0.613 0.049 118.544);
--chart-1: oklch(0.613 0.049 118.544);
--chart-2: oklch(0.87 0.021 117.519);
--chart-3: oklch(0.845 0.039 117.906);
--chart-4: oklch(0.891 0.018 117.439);
--chart-5: oklch(0.622 0.059 118.826);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 117.279);
--foreground: oklch(1 0 180);
--muted: oklch(0.283 0.028 118.885);
--muted-foreground: oklch(0.811 0.027 117.676);
--popover: oklch(0.142 0.013 117.279);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.013 117.279);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.613 0.049 118.544);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.195 0.002 117.305);
--secondary-foreground: oklch(0.754 0.007 117.246);
--accent: oklch(0.279 0.011 117.799);
--accent-foreground: oklch(0.817 0.014 117.393);
--destructive: oklch(0.638 0.218 34.022);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.613 0.049 118.544);
--chart-1: oklch(0.613 0.049 118.544);
--chart-2: oklch(0.195 0.002 117.305);
--chart-3: oklch(0.279 0.011 117.799);
--chart-4: oklch(0.229 0.003 117.333);
--chart-5: oklch(0.622 0.059 118.826);
}