Peony is a shadcn/ui theme built around a muted light teal primary color (#d3dede) with muted light blue accents (#d3d8de). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted light teal primary (#d3dede) on a neutral background (#020808).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #020808black |
| Foreground | #010909black | #ffffffwhite |
| Card | #f8fbfcghostwhite | #020808black |
| Card foreground | #010909black | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #020808black |
| Popover foreground | #010909black | #ffffffwhite |
| Primary | #d3dedegainsboro | #d3dedegainsboro |
| Primary foreground | #364849darkslategray | #364849darkslategray |
| Secondary | #d3ded9gainsboro | #d3ded9gainsboro |
| Secondary foreground | #364941darkslategray | #364941darkslategray |
| Muted | #d3e4dcgainsboro | #1b2c25darkslategray |
| Muted foreground | #595f5cdimgray | #a0a6a3darkgray |
| Accent | #d3d8degainsboro | #d3d8degainsboro |
| Accent foreground | #363f49darkslategray | #363f49darkslategray |
| Destructive | #7b0e04maroon | #f84535tomato |
| Destructive foreground | #fcbbb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3dedegainsboro | #d3dedegainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 4.93:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Peony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 200.847);
--foreground: oklch(0.127 0.018 198.22);
--muted: oklch(0.903 0.021 167.156);
--muted-foreground: oklch(0.478 0.008 167.347);
--popover: oklch(0.987 0.003 200.847);
--popover-foreground: oklch(0.127 0.018 198.22);
--card: oklch(0.987 0.003 200.847);
--card-foreground: oklch(0.127 0.018 198.22);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.892 0.012 200.731);
--primary-foreground: oklch(0.388 0.023 200.266);
--secondary: oklch(0.892 0.014 167.368);
--secondary-foreground: oklch(0.387 0.028 165.617);
--accent: oklch(0.881 0.01 253.297);
--accent-foreground: oklch(0.363 0.022 253.555);
--destructive: oklch(0.374 0.143 30.326);
--destructive-foreground: oklch(0.851 0.076 24.685);
--ring: oklch(0.892 0.012 200.731);
--chart-1: oklch(0.892 0.012 200.731);
--chart-2: oklch(0.892 0.014 167.368);
--chart-3: oklch(0.881 0.01 253.297);
--chart-4: oklch(0.914 0.011 167.468);
--chart-5: oklch(0.894 0.014 200.701);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 198.818);
--foreground: oklch(1 0 180);
--muted: oklch(0.276 0.027 164.737);
--muted-foreground: oklch(0.72 0.007 167.535);
--popover: oklch(0.124 0.013 198.818);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.013 198.818);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.892 0.012 200.731);
--primary-foreground: oklch(0.388 0.023 200.266);
--secondary: oklch(0.892 0.014 167.368);
--secondary-foreground: oklch(0.387 0.028 165.617);
--accent: oklch(0.881 0.01 253.297);
--accent-foreground: oklch(0.363 0.022 253.555);
--destructive: oklch(0.651 0.217 29.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.892 0.012 200.731);
--chart-1: oklch(0.892 0.012 200.731);
--chart-2: oklch(0.892 0.014 167.368);
--chart-3: oklch(0.881 0.01 253.297);
--chart-4: oklch(0.914 0.011 167.468);
--chart-5: oklch(0.894 0.014 200.701);
}