Chopstick is a shadcn/ui theme built around a light violet primary color (#cca6e3) with light green accents (#bce3a6). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#cca6e3) on a violet-tinted background (#0c0510).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #0c0510black |
| Foreground | #0c0411black | #ffffffwhite |
| Card | #f8f4fawhitesmoke | #0f0614black |
| Card foreground | #09030cblack | #ffffffwhite |
| Popover | #faf8fcghostwhite | #0c0510black |
| Popover foreground | #0c0411black | #ffffffwhite |
| Primary | #cca6e3plum | #cca6e3plum |
| Primary foreground | #311542midnightblue | #311542midnightblue |
| Secondary | #bce3a6silver | #bce3a6silver |
| Secondary foreground | #254215darkgreen | #254215darkgreen |
| Muted | #e0edd9gainsboro | #192612black |
| Muted foreground | #616260dimgray | #9e9f9ddarkgray |
| Accent | #bce3a6silver | #bce3a6silver |
| Accent foreground | #254215darkgreen | #254215darkgreen |
| Destructive | #aa1609firebrick | #f44434tomato |
| Destructive foreground | #fee9e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cca6e3plum | #cca6e3plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.05:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.13:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Chopstick in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 313.567);
--foreground: oklch(0.13 0.034 313.852);
--muted: oklch(0.931 0.03 133.811);
--muted-foreground: oklch(0.494 0.003 133.649);
--popover: oklch(0.982 0.006 313.567);
--popover-foreground: oklch(0.13 0.034 313.852);
--card: oklch(0.973 0.009 313.547);
--card-foreground: oklch(0.117 0.03 315.364);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.78 0.094 312.854);
--primary-foreground: oklch(0.261 0.085 311.083);
--secondary: oklch(0.872 0.091 134.321);
--secondary-foreground: oklch(0.344 0.079 135.725);
--accent: oklch(0.872 0.091 134.321);
--accent-foreground: oklch(0.344 0.079 135.725);
--destructive: oklch(0.471 0.181 30.097);
--destructive-foreground: oklch(0.949 0.023 23.833);
--ring: oklch(0.78 0.094 312.854);
--chart-1: oklch(0.78 0.094 312.854);
--chart-2: oklch(0.872 0.091 134.321);
--chart-3: oklch(0.872 0.091 134.321);
--chart-4: oklch(0.889 0.079 134.203);
--chart-5: oklch(0.778 0.1 312.807);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.029 313.758);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.04 134.822);
--muted-foreground: oklch(0.701 0.003 133.634);
--popover: oklch(0.132 0.029 313.758);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.033 312.809);
--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.78 0.094 312.854);
--primary-foreground: oklch(0.261 0.085 311.083);
--secondary: oklch(0.872 0.091 134.321);
--secondary-foreground: oklch(0.344 0.079 135.725);
--accent: oklch(0.872 0.091 134.321);
--accent-foreground: oklch(0.344 0.079 135.725);
--destructive: oklch(0.643 0.215 29.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.78 0.094 312.854);
--chart-1: oklch(0.78 0.094 312.854);
--chart-2: oklch(0.872 0.091 134.321);
--chart-3: oklch(0.872 0.091 134.321);
--chart-4: oklch(0.889 0.079 134.203);
--chart-5: oklch(0.778 0.1 312.807);
}