Peony is a shadcn/ui theme built around a teal primary color (#43b681) with muted light teal accents (#cad8d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#43b681) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #43b681mediumseagreen | #43b681mediumseagreen |
| Primary foreground | #0c2218black | #0c2218black |
| Secondary | #e0e6e3gainsboro | #26362edarkslategray |
| Secondary foreground | #42524adarkslategray | #bdd0c8silver |
| Muted | #d5ddd9gainsboro | #222a27darkslategray |
| Muted foreground | #5e6461dimgray | #9ba19edarkgray |
| Accent | #cad8d2lightgrey | #355a49darkslategray |
| Accent foreground | #2f4139darkslategray | #d8e8e1gainsboro |
| Destructive | #b73e01firebrick | #fe6d25tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #43b681mediumseagreen | #43b681mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 4.36:1 | AA Large |
| Accent | 7.38:1 | AAA |
| Destructive | 5.69:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 7.43:1 | AAA |
Paste this into your globals.css to use Peony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.89 0.011 166.583);
--muted-foreground: oklch(0.497 0.008 166.441);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.698 0.131 159.642);
--primary-foreground: oklch(0.229 0.034 161.848);
--secondary: oklch(0.92 0.008 166.679);
--secondary-foreground: oklch(0.422 0.024 165.264);
--accent: oklch(0.871 0.018 166.322);
--accent-foreground: oklch(0.357 0.027 164.632);
--destructive: oklch(0.53 0.167 39.769);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.698 0.131 159.642);
--chart-1: oklch(0.698 0.131 159.642);
--chart-2: oklch(0.92 0.008 166.679);
--chart-3: oklch(0.871 0.018 166.322);
--chart-4: oklch(0.942 0.006 166.747);
--chart-5: oklch(0.707 0.138 159.189);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.277 0.014 165.477);
--muted-foreground: oklch(0.703 0.008 166.607);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.698 0.131 159.642);
--primary-foreground: oklch(0.229 0.034 161.848);
--secondary: oklch(0.315 0.024 164.593);
--secondary-foreground: oklch(0.842 0.024 166.111);
--accent: oklch(0.434 0.052 163.048);
--accent-foreground: oklch(0.918 0.02 166.314);
--destructive: oklch(0.705 0.193 42.932);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.698 0.131 159.642);
--chart-1: oklch(0.698 0.131 159.642);
--chart-2: oklch(0.315 0.024 164.593);
--chart-3: oklch(0.434 0.052 163.048);
--chart-4: oklch(0.348 0.028 164.513);
--chart-5: oklch(0.707 0.138 159.189);
}