Peaceful is a shadcn/ui theme built around a green primary color (#6dc468) with neutral gray accents (#d1d6d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6dc468) on a green-tinted background (#050a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a05black |
| Foreground | #051005black | #f8fcf8mintcream |
| Card | #fcfcfcsnow | #070e07black |
| Card foreground | #040c04black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #070e07black |
| Popover foreground | #040c04black | #fcfdfcwhite |
| Primary | #6dc468darkseagreen | #6dc468darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #d1d6d1lightgrey | #2b2b2bdarkslategray |
| Secondary foreground | #373e37darkslategray | #c4c4c4silver |
| Muted | #dee3ddgainsboro | #221c1cblack |
| Muted foreground | #516850darkolivegreen | #af9797rosybrown |
| Accent | #d1d6d1lightgrey | #2b2b2bdarkslategray |
| Accent foreground | #373e37darkslategray | #c4c4c4silver |
| Destructive | #c04207firebrick | #f65409orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6dc468darkseagreen | #6dc468darkseagreen |
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 | 9.78:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 5.23:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 9.78:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Peaceful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.157 0.03 142.557);
--muted: oklch(0.911 0.01 144.064);
--muted-foreground: oklch(0.491 0.046 143.559);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.14 0.026 142.508);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.026 142.508);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.745 0.153 142.855);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.872 0.009 144.071);
--secondary-foreground: oklch(0.356 0.015 143.881);
--accent: oklch(0.872 0.009 144.071);
--accent-foreground: oklch(0.356 0.015 143.881);
--destructive: oklch(0.55 0.172 39.335);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.153 142.855);
--chart-1: oklch(0.745 0.153 142.855);
--chart-2: oklch(0.872 0.009 144.071);
--chart-3: oklch(0.872 0.009 144.071);
--chart-4: oklch(0.895 0.007 144.083);
--chart-5: oklch(0.751 0.162 142.792);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.016 143.113);
--foreground: oklch(0.986 0.005 144.098);
--muted: oklch(0.232 0.01 17.868);
--muted-foreground: oklch(0.699 0.028 17.854);
--popover: oklch(0.152 0.019 143.156);
--popover-foreground: oklch(0.993 0.003 144.114);
--card: oklch(0.152 0.019 143.156);
--card-foreground: oklch(0.993 0.003 144.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.745 0.153 142.855);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.29 0 180);
--secondary-foreground: oklch(0.821 0 171.87);
--accent: oklch(0.29 0 180);
--accent-foreground: oklch(0.821 0 171.87);
--destructive: oklch(0.661 0.209 38.876);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.153 142.855);
--chart-1: oklch(0.745 0.153 142.855);
--chart-2: oklch(0.29 0 180);
--chart-3: oklch(0.29 0 180);
--chart-4: oklch(0.321 0 180);
--chart-5: oklch(0.751 0.162 142.792);
}