Pleasant is a shadcn/ui theme built around a near-black primary color (#000000) with near-white accents (#e9e7e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000000) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080303black |
| Foreground | #080202black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0b0404black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #ffffffwhite | #080303black |
| Popover foreground | #080202black | #fdfcfcsnow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #e9e7e7linen | #352c2cdarkslategray |
| Secondary foreground | #544a4adarkslategray | #cfc4c4silver |
| Muted | #f2e8e8linen | #170d0dblack |
| Muted foreground | #484747darkslategray | #b8b7b7silver |
| Accent | #e9e7e7linen | #352c2cdarkslategray |
| Accent foreground | #544a4adarkslategray | #cfc4c4silver |
| Destructive | #8d2007darkred | #f2370dorangered |
| Destructive foreground | #fcd3cabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.72:1 | AAA |
| Accent | 6.93:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 9.54:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Pleasant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.016 20.215);
--muted: oklch(0.94 0.01 17.343);
--muted-foreground: oklch(0.398 0.002 17.237);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.105 0.016 20.215);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.013 20.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.929 0.003 17.211);
--secondary-foreground: oklch(0.42 0.013 17.672);
--accent: oklch(0.929 0.003 17.211);
--accent-foreground: oklch(0.42 0.013 17.672);
--destructive: oklch(0.422 0.148 33.317);
--destructive-foreground: oklch(0.899 0.048 32.774);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.929 0.003 17.211);
--chart-3: oklch(0.929 0.003 17.211);
--chart-4: oklch(0.953 0.002 17.192);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 19.87);
--foreground: oklch(0.991 0.002 17.192);
--muted: oklch(0.173 0.017 18.918);
--muted-foreground: oklch(0.78 0.002 17.192);
--popover: oklch(0.106 0.015 19.87);
--popover-foreground: oklch(0.991 0.002 17.192);
--card: oklch(0.121 0.017 19.883);
--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 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.302 0.014 17.971);
--secondary-foreground: oklch(0.829 0.012 17.399);
--accent: oklch(0.302 0.014 17.971);
--accent-foreground: oklch(0.829 0.012 17.399);
--destructive: oklch(0.627 0.227 32.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.302 0.014 17.971);
--chart-3: oklch(0.302 0.014 17.971);
--chart-4: oklch(0.331 0.016 18);
--chart-5: oklch(0 0 0);
}