Woeful is a shadcn/ui theme built around a near-black primary color (#020302) with near-black accents (#030203). The light mode uses a neutral background (#f6fdf7). Dark mode keeps the near-black primary (#020302) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf7mintcream | #010401black |
| Foreground | #030c04black | #f9fbf9mintcream |
| Card | #f6fdf7mintcream | #010401black |
| Card foreground | #030c04black | #f9fbf9mintcream |
| Popover | #f6fdf7mintcream | #010401black |
| Popover foreground | #030c04black | #f9fbf9mintcream |
| Primary | #020302black | #020302black |
| Primary foreground | #81b687darkseagreen | #81b687darkseagreen |
| Secondary | #030203black | #030203black |
| Secondary foreground | #b681b0rosybrown | #b681b0rosybrown |
| Muted | #dcd6dbgainsboro | #292329darkslategray |
| Muted foreground | #5a585adimgray | #a7a5a6darkgray |
| Accent | #030203black | #030203black |
| Accent foreground | #b681b0rosybrown | #b681b0rosybrown |
| Destructive | #bc4906chocolate | #f97c34coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020302black | #020302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 4.91:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 5.14:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 7.96:1 | AAA |
Paste this into your globals.css to use Woeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.011 149.001);
--foreground: oklch(0.141 0.027 147.778);
--muted: oklch(0.882 0.01 329.263);
--muted-foreground: oklch(0.464 0.003 329.218);
--popover: oklch(0.988 0.011 149.001);
--popover-foreground: oklch(0.141 0.027 147.778);
--card: oklch(0.988 0.011 149.001);
--card-foreground: oklch(0.141 0.027 147.778);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.094 0.008 148.558);
--primary-foreground: oklch(0.727 0.088 147.576);
--secondary: oklch(0.089 0.009 329.71);
--secondary-foreground: oklch(0.671 0.092 330.632);
--accent: oklch(0.089 0.009 329.71);
--accent-foreground: oklch(0.671 0.092 330.632);
--destructive: oklch(0.553 0.162 42.691);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.008 148.558);
--chart-1: oklch(0.094 0.008 148.558);
--chart-2: oklch(0.089 0.009 329.71);
--chart-3: oklch(0.089 0.009 329.71);
--chart-4: oklch(0.142 0.015 330.111);
--chart-5: oklch(0.095 0.009 148.494);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.018 147.873);
--foreground: oklch(0.986 0.003 149.099);
--muted: oklch(0.266 0.013 329.703);
--muted-foreground: oklch(0.723 0.003 329.182);
--popover: oklch(0.097 0.018 147.873);
--popover-foreground: oklch(0.986 0.003 149.099);
--card: oklch(0.097 0.018 147.873);
--card-foreground: oklch(0.986 0.003 149.099);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.008 148.558);
--primary-foreground: oklch(0.727 0.088 147.576);
--secondary: oklch(0.089 0.009 329.71);
--secondary-foreground: oklch(0.671 0.092 330.632);
--accent: oklch(0.089 0.009 329.71);
--accent-foreground: oklch(0.671 0.092 330.632);
--destructive: oklch(0.72 0.173 47.14);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.094 0.008 148.558);
--chart-1: oklch(0.094 0.008 148.558);
--chart-2: oklch(0.089 0.009 329.71);
--chart-3: oklch(0.089 0.009 329.71);
--chart-4: oklch(0.142 0.015 330.111);
--chart-5: oklch(0.095 0.009 148.494);
}