Pleasing is a shadcn/ui theme built around a muted deep green primary color (#3c5844) with muted deep teal accents (#3c5852). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#3c5844) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b06black |
| Foreground | #020804black | #f4faf6whitesmoke |
| Card | #ffffffwhite | #040b06black |
| Card foreground | #020804black | #f4faf6whitesmoke |
| Popover | #ffffffwhite | #040b06black |
| Popover foreground | #020804black | #f4faf6whitesmoke |
| Primary | #3c5844darkslategray | #3c5844darkslategray |
| Primary foreground | #dee8e1gainsboro | #dee8e1gainsboro |
| Secondary | #42583cdarkslategray | #42583cdarkslategray |
| Secondary foreground | #e0e8degainsboro | #e0e8degainsboro |
| Muted | #d5e6d1gainsboro | #1d2e19black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #3c5852darkslategray | #3c5852darkslategray |
| Accent foreground | #dee8e6gainsboro | #dee8e6gainsboro |
| Destructive | #d30c09red | #f51d19red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c5844darkslategray | #3c5844darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 5.50:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.41:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Pleasing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.02 155.375);
--muted: oklch(0.906 0.033 139.436);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.02 155.375);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.02 155.375);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.432 0.047 153.584);
--primary-foreground: oklch(0.922 0.015 155.554);
--secondary: oklch(0.434 0.053 139.448);
--secondary-foreground: oklch(0.922 0.017 139.439);
--accent: oklch(0.436 0.035 180.776);
--accent-foreground: oklch(0.923 0.012 182.835);
--destructive: oklch(0.547 0.22 29.069);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.047 153.584);
--chart-1: oklch(0.432 0.047 153.584);
--chart-2: oklch(0.434 0.053 139.448);
--chart-3: oklch(0.436 0.035 180.776);
--chart-4: oklch(0.464 0.057 139.449);
--chart-5: oklch(0.436 0.054 153.225);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.018 155.394);
--foreground: oklch(0.98 0.008 155.71);
--muted: oklch(0.28 0.043 139.477);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.14 0.018 155.394);
--popover-foreground: oklch(0.98 0.008 155.71);
--card: oklch(0.14 0.018 155.394);
--card-foreground: oklch(0.98 0.008 155.71);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.432 0.047 153.584);
--primary-foreground: oklch(0.922 0.015 155.554);
--secondary: oklch(0.434 0.053 139.448);
--secondary-foreground: oklch(0.922 0.017 139.439);
--accent: oklch(0.436 0.035 180.776);
--accent-foreground: oklch(0.923 0.012 182.835);
--destructive: oklch(0.618 0.242 28.679);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.047 153.584);
--chart-1: oklch(0.432 0.047 153.584);
--chart-2: oklch(0.434 0.053 139.448);
--chart-3: oklch(0.436 0.035 180.776);
--chart-4: oklch(0.464 0.057 139.449);
--chart-5: oklch(0.436 0.054 153.225);
}