Wooden is a shadcn/ui theme built around a muted deep violet primary color (#0d0a10) with muted deep purple accents (#100a0f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#0d0a10) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08050ablack |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #fcfcfcsnow | #0b070dblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #0b070dblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #0d0a10black | #0d0a10black |
| Primary foreground | #ab92b9darkgray | #ab92b9darkgray |
| Secondary | #0b0a10black | #0b0a10black |
| Secondary foreground | #9792b9darkgray | #9792b9darkgray |
| Muted | #e5e4eclavender | #14131bblack |
| Muted foreground | #444158darkslategray | #aaa7bedarkgray |
| Accent | #100a0fblack | #100a0fblack |
| Accent foreground | #b992b4darkgray | #b992b4darkgray |
| Destructive | #9e0300darkred | #fa0400red |
| Destructive foreground | #ffd2d1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0a10black | #0d0a10black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 7.87:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Wooden in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.01 292.341);
--muted-foreground: oklch(0.388 0.039 290.584);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.152 0.013 313.068);
--primary-foreground: oklch(0.696 0.063 313.05);
--secondary: oklch(0.148 0.012 290.95);
--secondary-foreground: oklch(0.679 0.058 290.89);
--accent: oklch(0.154 0.014 330.738);
--accent-foreground: oklch(0.708 0.066 330.78);
--destructive: oklch(0.44 0.179 29.468);
--destructive-foreground: oklch(0.902 0.051 19.282);
--ring: oklch(0.152 0.013 313.068);
--chart-1: oklch(0.152 0.013 313.068);
--chart-2: oklch(0.148 0.012 290.95);
--chart-3: oklch(0.154 0.014 330.738);
--chart-4: oklch(0.179 0.018 290.519);
--chart-5: oklch(0.151 0.015 313.006);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.014 314.556);
--foreground: oklch(0.984 0.003 313.59);
--muted: oklch(0.193 0.015 291.058);
--muted-foreground: oklch(0.738 0.033 291.693);
--popover: oklch(0.138 0.015 313.587);
--popover-foreground: oklch(0.992 0.001 313.598);
--card: oklch(0.138 0.015 313.587);
--card-foreground: oklch(0.992 0.001 313.598);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.152 0.013 313.068);
--primary-foreground: oklch(0.696 0.063 313.05);
--secondary: oklch(0.148 0.012 290.95);
--secondary-foreground: oklch(0.679 0.058 290.89);
--accent: oklch(0.154 0.014 330.738);
--accent-foreground: oklch(0.708 0.066 330.78);
--destructive: oklch(0.619 0.253 29.367);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.152 0.013 313.068);
--chart-1: oklch(0.152 0.013 313.068);
--chart-2: oklch(0.148 0.012 290.95);
--chart-3: oklch(0.154 0.014 330.738);
--chart-4: oklch(0.179 0.018 290.519);
--chart-5: oklch(0.151 0.015 313.006);
}