Peaceful is a shadcn/ui theme built around a green primary color (#82edb2) with pink accents (#ed82bd). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#82edb2) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030705black |
| Foreground | #04100ablack | #ffffffwhite |
| Card | #fcfdfcwhite | #030705black |
| Card foreground | #04100ablack | #ffffffwhite |
| Popover | #fcfdfcwhite | #030705black |
| Popover foreground | #04100ablack | #ffffffwhite |
| Primary | #82edb2lightgreen | #82edb2lightgreen |
| Primary foreground | #08361cdarkgreen | #08361cdarkgreen |
| Secondary | #ed82bdhotpink | #ed82bdhotpink |
| Secondary foreground | #360821black | #360821black |
| Muted | #efebedlinen | #141012black |
| Muted foreground | #4c4248darkslategray | #bdb3b8silver |
| Accent | #ed82bdhotpink | #ed82bdhotpink |
| Accent foreground | #360821black | #360821black |
| Destructive | #782d0dsaddlebrown | #ea6e39tomato |
| Destructive foreground | #f8d0bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #82edb2lightgreen | #82edb2lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 9.47:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 9.47:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.78:1 | AA |
Paste this into your globals.css to use Peaceful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 162.568);
--foreground: oklch(0.159 0.024 160.67);
--muted: oklch(0.944 0.006 342.774);
--muted-foreground: oklch(0.393 0.016 343.603);
--popover: oklch(0.993 0.002 162.568);
--popover-foreground: oklch(0.159 0.024 160.67);
--card: oklch(0.993 0.002 162.568);
--card-foreground: oklch(0.159 0.024 160.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.867 0.13 158.03);
--primary-foreground: oklch(0.294 0.067 154.19);
--secondary: oklch(0.741 0.147 347.146);
--secondary-foreground: oklch(0.229 0.078 351.279);
--accent: oklch(0.741 0.147 347.146);
--accent-foreground: oklch(0.229 0.078 351.279);
--destructive: oklch(0.401 0.113 40.686);
--destructive-foreground: oklch(0.887 0.052 44.488);
--ring: oklch(0.867 0.13 158.03);
--chart-1: oklch(0.867 0.13 158.03);
--chart-2: oklch(0.741 0.147 347.146);
--chart-3: oklch(0.741 0.147 347.146);
--chart-4: oklch(0.767 0.131 346.511);
--chart-5: oklch(0.871 0.135 157.849);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.011 162.635);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.009 343.843);
--muted-foreground: oklch(0.775 0.014 343.045);
--popover: oklch(0.121 0.011 162.635);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.011 162.635);
--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.867 0.13 158.03);
--primary-foreground: oklch(0.294 0.067 154.19);
--secondary: oklch(0.741 0.147 347.146);
--secondary-foreground: oklch(0.229 0.078 351.279);
--accent: oklch(0.741 0.147 347.146);
--accent-foreground: oklch(0.229 0.078 351.279);
--destructive: oklch(0.678 0.168 42.108);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.867 0.13 158.03);
--chart-1: oklch(0.867 0.13 158.03);
--chart-2: oklch(0.741 0.147 347.146);
--chart-3: oklch(0.741 0.147 347.146);
--chart-4: oklch(0.767 0.131 346.511);
--chart-5: oklch(0.871 0.135 157.849);
}