Pleasant is a shadcn/ui theme built around a muted green primary color (#78917c) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted green primary (#78917c) on a green-tinted background (#070e08).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #070e08black |
| Foreground | #061308black | #f7f8f7whitesmoke |
| Card | #f8fcf8mintcream | #070e08black |
| Card foreground | #061308black | #f7f8f7whitesmoke |
| Popover | #f8fcf8mintcream | #070e08black |
| Popover foreground | #061308black | #f7f8f7whitesmoke |
| Primary | #78917cgray | #78917cgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d6d6d6lightgrey | #1c211dblack |
| Secondary foreground | #3d3d3ddarkslategray | #b1beb3silver |
| Muted | #ddd9d9gainsboro | #222622black |
| Muted foreground | #5d5656dimgray | #a2a9a3darkgray |
| Accent | #d6d6d6lightgrey | #1c211dblack |
| Accent foreground | #3d3d3ddarkslategray | #b1beb3silver |
| Destructive | #973511saddlebrown | #dc4d18chocolate |
| Destructive foreground | #fbe6dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #78917cgray | #78917cgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.35:1 | AAA |
| Text on card | 18.35:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.38:1 | AAA |
| Text on card | 18.38:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Pleasant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 149.603);
--foreground: oklch(0.171 0.03 147.746);
--muted: oklch(0.889 0.005 17.245);
--muted-foreground: oklch(0.459 0.009 17.498);
--popover: oklch(0.987 0.006 149.603);
--popover-foreground: oklch(0.171 0.03 147.746);
--card: oklch(0.987 0.006 149.603);
--card-foreground: oklch(0.171 0.03 147.746);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.631 0.042 148.823);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.877 0 180);
--secondary-foreground: oklch(0.361 0 180);
--accent: oklch(0.877 0 180);
--accent-foreground: oklch(0.361 0 180);
--destructive: oklch(0.466 0.14 38.247);
--destructive-foreground: oklch(0.941 0.025 41.12);
--ring: oklch(0.631 0.042 148.823);
--chart-1: oklch(0.631 0.042 148.823);
--chart-2: oklch(0.877 0 180);
--chart-3: oklch(0.877 0 180);
--chart-4: oklch(0.9 0 188.746);
--chart-5: oklch(0.636 0.054 148.565);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.017 148.747);
--foreground: oklch(0.978 0.002 149.654);
--muted: oklch(0.262 0.009 149.24);
--muted-foreground: oklch(0.728 0.012 149.48);
--popover: oklch(0.152 0.017 148.747);
--popover-foreground: oklch(0.978 0.002 149.654);
--card: oklch(0.152 0.017 148.747);
--card-foreground: oklch(0.978 0.002 149.654);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.631 0.042 148.823);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.242 0.012 149.048);
--secondary-foreground: oklch(0.788 0.021 149.349);
--accent: oklch(0.242 0.012 149.048);
--accent-foreground: oklch(0.788 0.021 149.349);
--destructive: oklch(0.611 0.189 37.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.042 148.823);
--chart-1: oklch(0.631 0.042 148.823);
--chart-2: oklch(0.242 0.012 149.048);
--chart-3: oklch(0.242 0.012 149.048);
--chart-4: oklch(0.275 0.015 149.005);
--chart-5: oklch(0.636 0.054 148.565);
}