Shameful is a shadcn/ui theme built around a muted indigo primary color (#575785) with muted green accents (#578557). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#575785) on an indigo-tinted background (#03030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #03030cblack |
| Foreground | #040415black | #f7f7f8whitesmoke |
| Card | #fbfbfeghostwhite | #03030cblack |
| Card foreground | #040415black | #f7f7f8whitesmoke |
| Popover | #fbfbfeghostwhite | #03030cblack |
| Popover foreground | #040415black | #f7f7f8whitesmoke |
| Primary | #575785darkslateblue | #575785darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #855757dimgray | #855757dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfd8d8gainsboro | #272120black |
| Muted foreground | #553f3fdarkslategray | #c0aaaadarkgray |
| Accent | #578557dimgray | #578557dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #621304maroon | #f7411dorangered |
| Destructive foreground | #fbac9dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #575785darkslateblue | #575785darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 4.30:1 | AA Large |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 4.30:1 | AA Large |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Shameful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 287.116);
--foreground: oklch(0.123 0.041 279.657);
--muted: oklch(0.888 0.007 18.482);
--muted-foreground: oklch(0.392 0.031 19.67);
--popover: oklch(0.99 0.003 287.116);
--popover-foreground: oklch(0.123 0.041 279.657);
--card: oklch(0.99 0.003 287.116);
--card-foreground: oklch(0.123 0.041 279.657);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.476 0.074 284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.06 20.466);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.085 144.735);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.328 0.114 33.289);
--destructive-foreground: oklch(0.818 0.096 31.731);
--ring: oklch(0.476 0.074 284);
--chart-1: oklch(0.476 0.074 284);
--chart-2: oklch(0.507 0.06 20.466);
--chart-3: oklch(0.57 0.085 144.735);
--chart-4: oklch(0.532 0.064 20.485);
--chart-5: oklch(0.468 0.084 283.404);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.027 282.064);
--foreground: oklch(0.975 0.002 287.132);
--muted: oklch(0.253 0.01 18.972);
--muted-foreground: oklch(0.758 0.025 18.892);
--popover: oklch(0.106 0.027 282.064);
--popover-foreground: oklch(0.975 0.002 287.132);
--card: oklch(0.106 0.027 282.064);
--card-foreground: oklch(0.975 0.002 287.132);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.476 0.074 284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.06 20.466);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.085 144.735);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.644 0.223 32.846);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.476 0.074 284);
--chart-1: oklch(0.476 0.074 284);
--chart-2: oklch(0.507 0.06 20.466);
--chart-3: oklch(0.57 0.085 144.735);
--chart-4: oklch(0.532 0.064 20.485);
--chart-5: oklch(0.468 0.084 283.404);
}