Dogwood is a shadcn/ui theme built around a vivid deep pink primary color (#5c0528) with vivid deep red accents (#5c0e05). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep pink primary (#5c0528) on a pink-tinted background (#0f0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0f0509black |
| Foreground | #000000black | #f9f6f7whitesmoke |
| Card | #fefbfcsnow | #0f0509black |
| Card foreground | #000000black | #f9f6f7whitesmoke |
| Popover | #fefbfcsnow | #0f0509black |
| Popover foreground | #000000black | #f9f6f7whitesmoke |
| Primary | #5c0528maroon | #5c0528maroon |
| Primary foreground | #f99ac0lightpink | #f99ac0lightpink |
| Secondary | #5c0553indigo | #5c0553indigo |
| Secondary foreground | #f99af0violet | #f99af0violet |
| Muted | #f0dbeelavender | #240f22black |
| Muted foreground | #615160dimgray | #ae9eacdarkgray |
| Accent | #5c0e05maroon | #5c0e05maroon |
| Accent foreground | #f9a39alightsalmon | #f9a39alightsalmon |
| Destructive | #c83b14firebrick | #eb5b33tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c0528maroon | #5c0528maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.05:1 | AA |
Paste this into your globals.css to use Dogwood in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 350.741);
--foreground: oklch(0 0 0);
--muted: oklch(0.914 0.033 328.984);
--muted-foreground: oklch(0.457 0.031 329.314);
--popover: oklch(0.99 0.004 350.741);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.004 350.741);
--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.309 0.118 5.055);
--primary-foreground: oklch(0.793 0.122 354.712);
--secondary: oklch(0.33 0.142 333.277);
--secondary-foreground: oklch(0.81 0.155 330.542);
--accent: oklch(0.308 0.111 30.786);
--accent-foreground: oklch(0.799 0.104 26.554);
--destructive: oklch(0.556 0.184 35.018);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.309 0.118 5.055);
--chart-1: oklch(0.309 0.118 5.055);
--chart-2: oklch(0.33 0.142 333.277);
--chart-3: oklch(0.308 0.111 30.786);
--chart-4: oklch(0.364 0.158 333.369);
--chart-5: oklch(0.311 0.12 5.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.023 352.035);
--foreground: oklch(0.975 0.004 350.734);
--muted: oklch(0.209 0.046 330.829);
--muted-foreground: oklch(0.717 0.028 329.01);
--popover: oklch(0.136 0.023 352.035);
--popover-foreground: oklch(0.975 0.004 350.734);
--card: oklch(0.136 0.023 352.035);
--card-foreground: oklch(0.975 0.004 350.734);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.309 0.118 5.055);
--primary-foreground: oklch(0.793 0.122 354.712);
--secondary: oklch(0.33 0.142 333.277);
--secondary-foreground: oklch(0.81 0.155 330.542);
--accent: oklch(0.308 0.111 30.786);
--accent-foreground: oklch(0.799 0.104 26.554);
--destructive: oklch(0.653 0.187 36.04);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.309 0.118 5.055);
--chart-1: oklch(0.309 0.118 5.055);
--chart-2: oklch(0.33 0.142 333.277);
--chart-3: oklch(0.308 0.111 30.786);
--chart-4: oklch(0.364 0.158 333.369);
--chart-5: oklch(0.311 0.12 5.561);
}