Unpleasant is a shadcn/ui theme built around a deep yellow primary color (#282110) with deep violet accents (#211028). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#282110) on a yellow-tinted background (#0e0c07).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0e0c07black |
| Foreground | #141005black | #ffffffwhite |
| Card | #fefdfbsnow | #0e0c07black |
| Card foreground | #141005black | #ffffffwhite |
| Popover | #fefdfbsnow | #0e0c07black |
| Popover foreground | #141005black | #ffffffwhite |
| Primary | #282110black | #282110black |
| Primary foreground | #d5c395tan | #d5c395tan |
| Secondary | #102821black | #102821black |
| Secondary foreground | #4cb899cadetblue | #4cb899cadetblue |
| Muted | #dcefealavender | #10231eblack |
| Muted foreground | #4a5451darkslategray | #abb5b2darkgray |
| Accent | #211028black | #211028black |
| Accent foreground | #c395d5plum | #c395d5plum |
| Destructive | #891501darkred | #fe4525orangered |
| Destructive foreground | #ffc7bdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #282110black | #282110black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 6.55:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Unpleasant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 88.813);
--foreground: oklch(0.175 0.022 89.935);
--muted: oklch(0.936 0.021 177.046);
--muted-foreground: oklch(0.436 0.013 176.838);
--popover: oklch(0.995 0.003 88.813);
--popover-foreground: oklch(0.175 0.022 89.935);
--card: oklch(0.995 0.003 88.813);
--card-foreground: oklch(0.175 0.022 89.935);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.252 0.031 88.572);
--primary-foreground: oklch(0.82 0.064 88.988);
--secondary: oklch(0.255 0.033 172.931);
--secondary-foreground: oklch(0.711 0.109 171.542);
--accent: oklch(0.21 0.051 315.743);
--accent-foreground: oklch(0.735 0.102 316.185);
--destructive: oklch(0.406 0.153 32.168);
--destructive-foreground: oklch(0.876 0.066 29.922);
--ring: oklch(0.252 0.031 88.572);
--chart-1: oklch(0.252 0.031 88.572);
--chart-2: oklch(0.255 0.033 172.931);
--chart-3: oklch(0.21 0.051 315.743);
--chart-4: oklch(0.295 0.04 172.574);
--chart-5: oklch(0.254 0.033 88.457);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.012 90.315);
--foreground: oklch(1 0 180);
--muted: oklch(0.238 0.027 173.712);
--muted-foreground: oklch(0.764 0.011 177.283);
--popover: oklch(0.154 0.012 90.315);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.154 0.012 90.315);
--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.252 0.031 88.572);
--primary-foreground: oklch(0.82 0.064 88.988);
--secondary: oklch(0.255 0.033 172.931);
--secondary-foreground: oklch(0.711 0.109 171.542);
--accent: oklch(0.21 0.051 315.743);
--accent-foreground: oklch(0.735 0.102 316.185);
--destructive: oklch(0.66 0.225 32.31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.031 88.572);
--chart-1: oklch(0.252 0.031 88.572);
--chart-2: oklch(0.255 0.033 172.931);
--chart-3: oklch(0.21 0.051 315.743);
--chart-4: oklch(0.295 0.04 172.574);
--chart-5: oklch(0.254 0.033 88.457);
}