Peaceful is a shadcn/ui theme built around a muted light pink primary color (#f2edef) with muted light pink accents (#dacdd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f2edef) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070305black |
| Foreground | #100409black | #ffffffwhite |
| Card | #fcfcfcsnow | #0b0407black |
| Card foreground | #0c0307black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b0407black |
| Popover foreground | #0c0307black | #ffffffwhite |
| Primary | #f2edefwhitesmoke | #f2edefwhitesmoke |
| Primary foreground | #664754dimgray | #664754dimgray |
| Secondary | #dacdd3lightgrey | #212121black |
| Secondary foreground | #433239darkslategray | #bbb9basilver |
| Muted | #e2d9ddgainsboro | #261d20black |
| Muted foreground | #433d3fdarkslategray | #c2bcbfsilver |
| Accent | #dacdd3lightgrey | #212121black |
| Accent foreground | #433239darkslategray | #bbb9basilver |
| Destructive | #a62c07firebrick | #f54914orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2edefwhitesmoke | #f2edefwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 3.59: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.135 0.027 351.296);
--muted: oklch(0.894 0.011 350.025);
--muted-foreground: oklch(0.366 0.01 350.41);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.023 349.6);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.023 349.6);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.007 349.866);
--primary-foreground: oklch(0.437 0.047 352.492);
--secondary: oklch(0.861 0.016 350.19);
--secondary-foreground: oklch(0.339 0.028 351.868);
--accent: oklch(0.861 0.016 350.19);
--accent-foreground: oklch(0.339 0.028 351.868);
--destructive: oklch(0.482 0.164 35.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.007 349.866);
--chart-1: oklch(0.951 0.007 349.866);
--chart-2: oklch(0.861 0.016 350.19);
--chart-3: oklch(0.861 0.016 350.19);
--chart-4: oklch(0.886 0.013 350.084);
--chart-5: oklch(0.95 0.008 349.899);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.015 349.4);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.016 351.453);
--muted-foreground: oklch(0.801 0.008 349.95);
--popover: oklch(0.124 0.017 349.49);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.017 349.49);
--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.951 0.007 349.866);
--primary-foreground: oklch(0.437 0.047 352.492);
--secondary: oklch(0.248 0.001 349.797);
--secondary-foreground: oklch(0.789 0.002 349.732);
--accent: oklch(0.248 0.001 349.797);
--accent-foreground: oklch(0.789 0.002 349.732);
--destructive: oklch(0.648 0.216 35.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.007 349.866);
--chart-1: oklch(0.951 0.007 349.866);
--chart-2: oklch(0.248 0.001 349.797);
--chart-3: oklch(0.248 0.001 349.797);
--chart-4: oklch(0.279 0.001 349.805);
--chart-5: oklch(0.95 0.008 349.899);
}