Shameful is a shadcn/ui theme built around a vivid indigo primary color (#9a7cfd) with muted light indigo accents (#cecbd7). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#9a7cfd) on an indigo-tinted background (#08050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #08050fblack |
| Foreground | #010105black | #f6f6f9whitesmoke |
| Card | #fcfbfewhite | #08050fblack |
| Card foreground | #010105black | #f6f6f9whitesmoke |
| Popover | #fcfbfewhite | #08050fblack |
| Popover foreground | #010105black | #f6f6f9whitesmoke |
| Primary | #9a7cfdmediumpurple | #9a7cfdmediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #cecbd7lightgrey | #23212cdarkslategray |
| Secondary foreground | #34313fdarkslategray | #bab6c9silver |
| Muted | #eae6f4lavender | #0e0b19black |
| Muted foreground | #514e5adarkslategray | #a8a5b1darkgray |
| Accent | #cecbd7lightgrey | #23212cdarkslategray |
| Accent foreground | #34313fdarkslategray | #bab6c9silver |
| Destructive | #b3320ffirebrick | #ef6039tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9a7cfdmediumpurple | #9a7cfdmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.41:1 | AA |
Paste this into your globals.css to use Shameful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 297.013);
--foreground: oklch(0.07 0.025 296.112);
--muted: oklch(0.932 0.018 296.722);
--muted-foreground: oklch(0.432 0.019 296.262);
--popover: oklch(0.99 0.004 297.013);
--popover-foreground: oklch(0.07 0.025 296.112);
--card: oklch(0.99 0.004 297.013);
--card-foreground: oklch(0.07 0.025 296.112);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.675 0.184 291.427);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.848 0.017 296.726);
--secondary-foreground: oklch(0.322 0.026 295.602);
--accent: oklch(0.848 0.017 296.726);
--accent-foreground: oklch(0.322 0.026 295.602);
--destructive: oklch(0.512 0.171 34.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.675 0.184 291.427);
--chart-1: oklch(0.675 0.184 291.427);
--chart-2: oklch(0.848 0.017 296.726);
--chart-3: oklch(0.848 0.017 296.726);
--chart-4: oklch(0.874 0.014 296.796);
--chart-5: oklch(0.672 0.189 291.189);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.024 295.618);
--foreground: oklch(0.974 0.005 296.996);
--muted: oklch(0.162 0.028 293.698);
--muted-foreground: oklch(0.728 0.017 296.656);
--popover: oklch(0.127 0.024 295.618);
--popover-foreground: oklch(0.974 0.005 296.996);
--card: oklch(0.127 0.024 295.618);
--card-foreground: oklch(0.974 0.005 296.996);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.675 0.184 291.427);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.254 0.022 295.511);
--secondary-foreground: oklch(0.785 0.027 296.453);
--accent: oklch(0.254 0.022 295.511);
--accent-foreground: oklch(0.785 0.027 296.453);
--destructive: oklch(0.667 0.184 36.148);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.675 0.184 291.427);
--chart-1: oklch(0.675 0.184 291.427);
--chart-2: oklch(0.254 0.022 295.511);
--chart-3: oklch(0.254 0.022 295.511);
--chart-4: oklch(0.282 0.025 295.429);
--chart-5: oklch(0.672 0.189 291.189);
}