Woeful is a shadcn/ui theme built around a muted purple primary color (#a58fa8) with muted teal accents (#8fa8a5). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted purple primary (#a58fa8) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #030203black |
| Foreground | #0c030dblack | #faf9fasnow |
| Card | #fbf8fcghostwhite | #030203black |
| Card foreground | #0c030dblack | #faf9fasnow |
| Popover | #fbf8fcghostwhite | #030203black |
| Popover foreground | #0c030dblack | #faf9fasnow |
| Primary | #a58fa8darkgray | #a58fa8darkgray |
| Primary foreground | #030203black | #030203black |
| Secondary | #a8a58fdarkgray | #a8a58fdarkgray |
| Secondary foreground | #030302black | #030302black |
| Muted | #e6e4d1gainsboro | #2e2c19darkslategray |
| Muted foreground | #4c4b3ddarkslategray | #c2c0b3silver |
| Accent | #8fa8a5darkgray | #8fa8a5darkgray |
| Accent foreground | #020303black | #020303black |
| Destructive | #ce170dfirebrick | #f2362ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a58fa8darkgray | #a58fa8darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Woeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 322.136);
--foreground: oklch(0.121 0.034 323.892);
--muted: oklch(0.914 0.025 100.741);
--muted-foreground: oklch(0.409 0.022 101.078);
--popover: oklch(0.983 0.007 322.136);
--popover-foreground: oklch(0.121 0.034 323.892);
--card: oklch(0.983 0.007 322.136);
--card-foreground: oklch(0.121 0.034 323.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.678 0.046 322.336);
--primary-foreground: oklch(0.09 0.004 322.517);
--secondary: oklch(0.72 0.032 100.974);
--secondary-foreground: oklch(0.094 0.003 101.253);
--accent: oklch(0.713 0.029 187.922);
--accent-foreground: oklch(0.094 0.003 188.73);
--destructive: oklch(0.542 0.213 29.431);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.046 322.336);
--chart-1: oklch(0.678 0.046 322.336);
--chart-2: oklch(0.72 0.032 100.974);
--chart-3: oklch(0.713 0.029 187.922);
--chart-4: oklch(0.742 0.03 100.908);
--chart-5: oklch(0.675 0.056 322.385);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.012 323.242);
--foreground: oklch(0.984 0.002 322.119);
--muted: oklch(0.29 0.032 101.674);
--muted-foreground: oklch(0.805 0.019 100.674);
--popover: oklch(0.088 0.012 323.242);
--popover-foreground: oklch(0.984 0.002 322.119);
--card: oklch(0.088 0.012 323.242);
--card-foreground: oklch(0.984 0.002 322.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.678 0.046 322.336);
--primary-foreground: oklch(0.09 0.004 322.517);
--secondary: oklch(0.72 0.032 100.974);
--secondary-foreground: oklch(0.094 0.003 101.253);
--accent: oklch(0.713 0.029 187.922);
--accent-foreground: oklch(0.094 0.003 188.73);
--destructive: oklch(0.627 0.224 28.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.046 322.336);
--chart-1: oklch(0.678 0.046 322.336);
--chart-2: oklch(0.72 0.032 100.974);
--chart-3: oklch(0.713 0.029 187.922);
--chart-4: oklch(0.742 0.03 100.908);
--chart-5: oklch(0.675 0.056 322.385);
}