Widow is a shadcn/ui theme built around a light green primary color (#e8ecda) with light green accents (#dfecda). The light mode uses a neutral background (#fcfdf6). Dark mode keeps the light green primary (#e8ecda) on a neutral background (#070802).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf6snow | #070802black |
| Foreground | #070802black | #fafbf9snow |
| Card | #fcfdf6snow | #070802black |
| Card foreground | #070802black | #fafbf9snow |
| Popover | #fcfdf6snow | #070802black |
| Popover foreground | #070802black | #fafbf9snow |
| Primary | #e8ecdabeige | #e8ecdabeige |
| Primary foreground | #1b1e10black | #1b1e10black |
| Secondary | #ece7daantiquewhite | #ece7daantiquewhite |
| Secondary foreground | #1e1a10black | #1e1a10black |
| Muted | #ebe4d1antiquewhite | #2e2714black |
| Muted foreground | #45423adarkslategray | #c5c2basilver |
| Accent | #dfecdagainsboro | #dfecdagainsboro |
| Accent foreground | #141e10black | #141e10black |
| Destructive | #940505darkred | #f93939tomato |
| Destructive foreground | #fdcecepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8ecdabeige | #e8ecdabeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 14.06:1 | AAA |
| Secondary button | 14.03:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 14.01:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 14.06:1 | AAA |
| Secondary button | 14.03:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 14.01:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Widow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.009 116.5);
--foreground: oklch(0.131 0.021 116.817);
--muted: oklch(0.918 0.027 88.949);
--muted-foreground: oklch(0.381 0.014 88.979);
--popover: oklch(0.992 0.009 116.5);
--popover-foreground: oklch(0.131 0.021 116.817);
--card: oklch(0.992 0.009 116.5);
--card-foreground: oklch(0.131 0.021 116.817);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.024 116.8);
--primary-foreground: oklch(0.228 0.027 118.546);
--secondary: oklch(0.928 0.018 88.906);
--secondary-foreground: oklch(0.22 0.02 88.921);
--accent: oklch(0.928 0.028 136.699);
--accent-foreground: oklch(0.221 0.031 137.14);
--destructive: oklch(0.421 0.17 28.859);
--destructive-foreground: oklch(0.891 0.054 18.222);
--ring: oklch(0.935 0.024 116.8);
--chart-1: oklch(0.935 0.024 116.8);
--chart-2: oklch(0.928 0.018 88.906);
--chart-3: oklch(0.928 0.028 136.699);
--chart-4: oklch(0.948 0.013 88.876);
--chart-5: oklch(0.937 0.026 116.843);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.017 116.731);
--foreground: oklch(0.987 0.002 116.371);
--muted: oklch(0.275 0.033 88.602);
--muted-foreground: oklch(0.814 0.012 88.881);
--popover: oklch(0.128 0.017 116.731);
--popover-foreground: oklch(0.987 0.002 116.371);
--card: oklch(0.128 0.017 116.731);
--card-foreground: oklch(0.987 0.002 116.371);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.024 116.8);
--primary-foreground: oklch(0.228 0.027 118.546);
--secondary: oklch(0.928 0.018 88.906);
--secondary-foreground: oklch(0.22 0.02 88.921);
--accent: oklch(0.928 0.028 136.699);
--accent-foreground: oklch(0.221 0.031 137.14);
--destructive: oklch(0.643 0.227 26.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.024 116.8);
--chart-1: oklch(0.935 0.024 116.8);
--chart-2: oklch(0.928 0.018 88.906);
--chart-3: oklch(0.928 0.028 136.699);
--chart-4: oklch(0.948 0.013 88.876);
--chart-5: oklch(0.937 0.026 116.843);
}