Peony is a shadcn/ui theme built around a blue primary color (#3f658d) with neutral gray accents (#c9cccf). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#3f658d) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #010304black |
| Foreground | #060d14black | #f5f7f9whitesmoke |
| Card | #f8fafcghostwhite | #010304black |
| Card foreground | #060d14black | #f5f7f9whitesmoke |
| Popover | #f8fafcghostwhite | #010304black |
| Popover foreground | #060d14black | #f5f7f9whitesmoke |
| Primary | #3f658ddarkslateblue | #3f658ddarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c9cccflightgrey | #15191eblack |
| Secondary foreground | #303336darkslategray | #a5b2c0darkgray |
| Muted | #e6edf4lavender | #0b1219black |
| Muted foreground | #414549darkslategray | #b6babesilver |
| Accent | #c9cccflightgrey | #15191eblack |
| Accent foreground | #303336darkslategray | #a5b2c0darkgray |
| Destructive | #983010saddlebrown | #e74c1dchocolate |
| Destructive foreground | #fce5dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f658ddarkslateblue | #3f658ddarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.64:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 9.67:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Peony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 249.679);
--foreground: oklch(0.153 0.02 248.439);
--muted: oklch(0.943 0.012 249.766);
--muted-foreground: oklch(0.387 0.009 249.861);
--popover: oklch(0.984 0.003 249.679);
--popover-foreground: oklch(0.153 0.02 248.439);
--card: oklch(0.984 0.003 249.679);
--card-foreground: oklch(0.153 0.02 248.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.496 0.078 251.149);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.844 0.005 249.701);
--secondary-foreground: oklch(0.319 0.006 249.817);
--accent: oklch(0.844 0.005 249.701);
--accent-foreground: oklch(0.319 0.006 249.817);
--destructive: oklch(0.462 0.145 36.202);
--destructive-foreground: oklch(0.939 0.026 37.636);
--ring: oklch(0.496 0.078 251.149);
--chart-1: oklch(0.496 0.078 251.149);
--chart-2: oklch(0.844 0.005 249.701);
--chart-3: oklch(0.844 0.005 249.701);
--chart-4: oklch(0.868 0.004 249.692);
--chart-5: oklch(0.495 0.083 251.312);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.01 241.927);
--foreground: oklch(0.976 0.003 249.683);
--muted: oklch(0.177 0.018 250.525);
--muted-foreground: oklch(0.787 0.008 249.739);
--popover: oklch(0.089 0.01 241.927);
--popover-foreground: oklch(0.976 0.003 249.683);
--card: oklch(0.089 0.01 241.927);
--card-foreground: oklch(0.976 0.003 249.683);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.496 0.078 251.149);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.213 0.011 250.099);
--secondary-foreground: oklch(0.758 0.024 249.932);
--accent: oklch(0.213 0.011 250.099);
--accent-foreground: oklch(0.758 0.024 249.932);
--destructive: oklch(0.629 0.199 36.119);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.078 251.149);
--chart-1: oklch(0.496 0.078 251.149);
--chart-2: oklch(0.213 0.011 250.099);
--chart-3: oklch(0.213 0.011 250.099);
--chart-4: oklch(0.245 0.014 250.137);
--chart-5: oklch(0.495 0.083 251.312);
}