Stir-fry is a shadcn/ui theme built around a muted light purple primary color (#cdc0ce) with muted light pink accents (#cec0c8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light purple primary (#cdc0ce) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #040104black | #f8f7f8whitesmoke |
| Card | #fcf8fcsnow | #030303black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #fcf8fcsnow | #030303black |
| Popover foreground | #000000black | #faf9fasnow |
| Primary | #cdc0cethistle | #cdc0cethistle |
| Primary foreground | #322833darkslategray | #322833darkslategray |
| Secondary | #c6c0cesilver | #c6c0cesilver |
| Secondary foreground | #2d2833darkslategray | #2d2833darkslategray |
| Muted | #e0dce5gainsboro | #1e1a23black |
| Muted foreground | #4e4b53darkslategray | #afacb4darkgray |
| Accent | #cec0c8silver | #cec0c8silver |
| Accent foreground | #33282fdarkslategray | #33282fdarkslategray |
| Destructive | #941405darkred | #f6250eorangered |
| Destructive foreground | #fdd3cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cdc0cethistle | #cdc0cethistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Stir-fry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 323.152);
--foreground: oklch(0.086 0.018 324.73);
--muted: oklch(0.899 0.014 304.831);
--muted-foreground: oklch(0.419 0.014 304.597);
--popover: oklch(0.982 0.007 323.17);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 323.17);
--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.822 0.023 323.262);
--primary-foreground: oklch(0.294 0.024 323.501);
--secondary: oklch(0.817 0.02 304.714);
--secondary-foreground: oklch(0.288 0.021 304.046);
--accent: oklch(0.822 0.018 341.53);
--accent-foreground: oklch(0.293 0.02 342.509);
--destructive: oklch(0.427 0.163 30.584);
--destructive-foreground: oklch(0.901 0.049 25.522);
--ring: oklch(0.822 0.023 323.262);
--chart-1: oklch(0.822 0.023 323.262);
--chart-2: oklch(0.817 0.02 304.714);
--chart-3: oklch(0.822 0.018 341.53);
--chart-4: oklch(0.842 0.017 304.77);
--chart-5: oklch(0.821 0.029 323.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 323.147);
--muted: oklch(0.226 0.02 303.838);
--muted-foreground: oklch(0.75 0.012 304.828);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 323.143);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 323.143);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.822 0.023 323.262);
--primary-foreground: oklch(0.294 0.024 323.501);
--secondary: oklch(0.817 0.02 304.714);
--secondary-foreground: oklch(0.288 0.021 304.046);
--accent: oklch(0.822 0.018 341.53);
--accent-foreground: oklch(0.293 0.02 342.509);
--destructive: oklch(0.623 0.24 30.428);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.822 0.023 323.262);
--chart-1: oklch(0.822 0.023 323.262);
--chart-2: oklch(0.817 0.02 304.714);
--chart-3: oklch(0.822 0.018 341.53);
--chart-4: oklch(0.842 0.017 304.77);
--chart-5: oklch(0.821 0.029 323.294);
}