Pleasing is a shadcn/ui theme built around a muted indigo primary color (#7e77a6) with muted violet accents (#9577a6). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the muted indigo primary (#7e77a6) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #020104black |
| Foreground | #060410black | #ffffffwhite |
| Card | #f8f7fdghostwhite | #020104black |
| Card foreground | #060410black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #020104black |
| Popover foreground | #060410black | #ffffffwhite |
| Primary | #7e77a6lightslategray | #7e77a6lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7789a6lightslategray | #7789a6lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eaeef5lavender | #0a0e15black |
| Muted foreground | #535965dimgray | #9aa1acdarkgray |
| Accent | #9577a6lightslategray | #9577a6lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #95370esaddlebrown | #ed7440tomato |
| Destructive foreground | #fce4damistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e77a6lightslategray | #7e77a6lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 5.89:1 | AA |
| Muted text | 6.05:1 | AA |
| Accent | 5.48:1 | AA |
| Destructive | 6.10:1 | AA |
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 5.89:1 | AA |
| Muted text | 7.43:1 | AAA |
| Accent | 5.48:1 | AA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Pleasing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 292.408);
--foreground: oklch(0.121 0.029 289.452);
--muted: oklch(0.949 0.011 261.508);
--muted-foreground: oklch(0.464 0.021 261.44);
--popover: oklch(0.979 0.007 292.408);
--popover-foreground: oklch(0.121 0.029 289.452);
--card: oklch(0.979 0.007 292.408);
--card-foreground: oklch(0.121 0.029 289.452);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.594 0.071 290.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.626 0.05 261.314);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.077 312.824);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.465 0.137 40.085);
--destructive-foreground: oklch(0.935 0.03 44.687);
--ring: oklch(0.594 0.071 290.154);
--chart-1: oklch(0.594 0.071 290.154);
--chart-2: oklch(0.626 0.05 261.314);
--chart-3: oklch(0.616 0.077 312.824);
--chart-4: oklch(0.652 0.046 261.352);
--chart-5: oklch(0.586 0.082 289.74);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.013 291.03);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.017 261.197);
--muted-foreground: oklch(0.706 0.019 261.486);
--popover: oklch(0.08 0.013 291.03);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.08 0.013 291.03);
--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.594 0.071 290.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.626 0.05 261.314);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.077 312.824);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.692 0.164 42.416);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.594 0.071 290.154);
--chart-1: oklch(0.594 0.071 290.154);
--chart-2: oklch(0.626 0.05 261.314);
--chart-3: oklch(0.616 0.077 312.824);
--chart-4: oklch(0.652 0.046 261.352);
--chart-5: oklch(0.586 0.082 289.74);
}