Wren is a shadcn/ui theme built around a near-white primary color (#fbf9fa) with muted purple accents (#c6aebf). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-white primary (#fbf9fa) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0a0509black |
| Foreground | #0d020ablack | #fbf8fbsnow |
| Card | #faf4f9whitesmoke | #0e070cblack |
| Card foreground | #090107black | #fdfcfdwhite |
| Popover | #fcf8fbsnow | #0a0509black |
| Popover foreground | #0d020ablack | #fbf8fbsnow |
| Primary | #fbf9fasnow | #fbf9fasnow |
| Primary foreground | #784a6adimgray | #784a6adimgray |
| Secondary | #d1c7celightgrey | #171116black |
| Secondary foreground | #382e35darkslategray | #baa1b2darkgray |
| Muted | #ede8eclavender | #171216black |
| Muted foreground | #5c5159dimgray | #aea3aadarkgray |
| Accent | #c6aebfsilver | #281a24black |
| Accent foreground | #271c23black | #c9acc0silver |
| Destructive | #c5410dfirebrick | #f15d22chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbf9fasnow | #fbf9fasnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Wren in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 335.972);
--foreground: oklch(0.12 0.034 337.187);
--muted: oklch(0.936 0.008 336.031);
--muted-foreground: oklch(0.449 0.018 336.597);
--popover: oklch(0.983 0.005 335.972);
--popover-foreground: oklch(0.12 0.034 337.187);
--card: oklch(0.974 0.008 336.026);
--card-foreground: oklch(0.105 0.029 336.553);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.983 0.003 335.934);
--primary-foreground: oklch(0.473 0.078 338.751);
--secondary: oklch(0.84 0.013 336.166);
--secondary-foreground: oklch(0.315 0.017 336.862);
--accent: oklch(0.777 0.035 336.692);
--accent-foreground: oklch(0.241 0.023 337.537);
--destructive: oklch(0.557 0.177 37.962);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.003 335.934);
--chart-1: oklch(0.983 0.003 335.934);
--chart-2: oklch(0.84 0.013 336.166);
--chart-3: oklch(0.777 0.035 336.692);
--chart-4: oklch(0.865 0.011 336.113);
--chart-5: oklch(0.983 0.004 335.942);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.014 336.171);
--foreground: oklch(0.983 0.004 335.953);
--muted: oklch(0.189 0.012 337.034);
--muted-foreground: oklch(0.727 0.016 336.272);
--popover: oklch(0.127 0.014 336.171);
--popover-foreground: oklch(0.983 0.004 335.953);
--card: oklch(0.14 0.016 337.255);
--card-foreground: oklch(0.992 0.002 335.91);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.983 0.003 335.934);
--primary-foreground: oklch(0.473 0.078 338.751);
--secondary: oklch(0.189 0.013 337.116);
--secondary-foreground: oklch(0.736 0.037 336.788);
--accent: oklch(0.24 0.028 337.92);
--accent-foreground: oklch(0.775 0.043 336.884);
--destructive: oklch(0.664 0.194 39.384);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.983 0.003 335.934);
--chart-1: oklch(0.983 0.003 335.934);
--chart-2: oklch(0.189 0.013 337.116);
--chart-3: oklch(0.24 0.028 337.92);
--chart-4: oklch(0.221 0.017 337.269);
--chart-5: oklch(0.983 0.004 335.942);
}