Pleasant is a shadcn/ui theme built around a vivid deep orange primary color (#140801) with vivid deep violet accents (#080114). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the vivid deep orange primary (#140801) on an orange-tinted background (#100904).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf9f8snow | #100904black |
| Foreground | #160a04black | #ffffffwhite |
| Card | #faf7f5whitesmoke | #140b05black |
| Card foreground | #120803black | #ffffffwhite |
| Popover | #faf7f5whitesmoke | #140b05black |
| Popover foreground | #120803black | #ffffffwhite |
| Primary | #140801black | #140801black |
| Primary foreground | #fa8c4ccoral | #fa8c4ccoral |
| Secondary | #011408black | #011408black |
| Secondary foreground | #06db54springgreen | #06db54springgreen |
| Muted | #d7e0dagainsboro | #1f2823darkslategray |
| Muted foreground | #4f5451darkslategray | #abb0addarkgray |
| Accent | #080114black | #080114black |
| Accent foreground | #ccaffdplum | #ccaffdplum |
| Destructive | #8a2605saddlebrown | #f86230tomato |
| Destructive foreground | #fdd2c4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #140801black | #140801black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 8.39:1 | AAA |
| Secondary button | 10.21:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 10.87:1 | AAA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.39:1 | AAA |
| Secondary button | 10.21:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 10.87:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Pleasant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 52.544);
--foreground: oklch(0.161 0.026 56.32);
--muted: oklch(0.897 0.012 158.434);
--muted-foreground: oklch(0.441 0.008 158.321);
--popover: oklch(0.977 0.004 52.526);
--popover-foreground: oklch(0.147 0.023 59.775);
--card: oklch(0.977 0.004 52.526);
--card-foreground: oklch(0.147 0.023 59.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.148 0.032 63.352);
--primary-foreground: oklch(0.749 0.155 48.75);
--secondary: oklch(0.168 0.039 155.945);
--secondary-foreground: oklch(0.777 0.228 147.229);
--accent: oklch(0.11 0.054 301.768);
--accent-foreground: oklch(0.807 0.111 300.776);
--destructive: oklch(0.424 0.14 36.255);
--destructive-foreground: oklch(0.897 0.052 39.267);
--ring: oklch(0.148 0.032 63.352);
--chart-1: oklch(0.148 0.032 63.352);
--chart-2: oklch(0.168 0.039 155.945);
--chart-3: oklch(0.11 0.054 301.768);
--chart-4: oklch(0.224 0.057 152.144);
--chart-5: oklch(0.149 0.033 63.873);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.018 58.043);
--foreground: oklch(1 0 180);
--muted: oklch(0.266 0.016 157.374);
--muted-foreground: oklch(0.752 0.007 158.516);
--popover: oklch(0.16 0.021 54.647);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.021 54.647);
--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.148 0.032 63.352);
--primary-foreground: oklch(0.749 0.155 48.75);
--secondary: oklch(0.168 0.039 155.945);
--secondary-foreground: oklch(0.777 0.228 147.229);
--accent: oklch(0.11 0.054 301.768);
--accent-foreground: oklch(0.807 0.111 300.776);
--destructive: oklch(0.681 0.194 37.941);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.148 0.032 63.352);
--chart-1: oklch(0.148 0.032 63.352);
--chart-2: oklch(0.168 0.039 155.945);
--chart-3: oklch(0.11 0.054 301.768);
--chart-4: oklch(0.224 0.057 152.144);
--chart-5: oklch(0.149 0.033 63.873);
}