Shameful is a shadcn/ui theme built around a near-black primary color (#1b1d1c) with near-black accents (#1d1c1b). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the near-black primary (#1b1d1c) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #020303black |
| Foreground | #02120dblack | #f5faf8mintcream |
| Card | #f3fbf9mintcream | #040706black |
| Card foreground | #020e0ablack | #f8fcfamintcream |
| Popover | #f7fdfbmintcream | #020303black |
| Popover foreground | #02120dblack | #f5faf8mintcream |
| Primary | #1b1d1cblack | #1b1d1cblack |
| Primary foreground | #b3b7b6silver | #b3b7b6silver |
| Secondary | #1c1b1dblack | #1c1b1dblack |
| Secondary foreground | #b6b3b7silver | #b6b3b7silver |
| Muted | #e4d5ecgainsboro | #22132ablack |
| Muted foreground | #4f4e50darkslategray | #b0afb1darkgray |
| Accent | #1d1c1bblack | #1d1c1bblack |
| Accent foreground | #b7b6b3silver | #b7b6b3silver |
| Destructive | #5c190amaroon | #eb6547tomato |
| Destructive foreground | #f5b2a3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b1d1cblack | #1b1d1cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.58:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 7.37:1 | AAA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Shameful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 174.408);
--foreground: oklch(0.165 0.027 171.312);
--muted: oklch(0.892 0.036 314.634);
--muted-foreground: oklch(0.426 0.003 314.794);
--popover: oklch(0.988 0.006 174.408);
--popover-foreground: oklch(0.165 0.027 171.312);
--card: oklch(0.982 0.009 174.316);
--card-foreground: oklch(0.147 0.023 173.703);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.228 0.003 174.231);
--primary-foreground: oklch(0.776 0.005 174.385);
--secondary: oklch(0.225 0.004 314.748);
--secondary-foreground: oklch(0.77 0.007 314.782);
--accent: oklch(0.228 0.002 84.575);
--accent-foreground: oklch(0.776 0.004 84.566);
--destructive: oklch(0.322 0.1 33.999);
--destructive-foreground: oklch(0.822 0.081 33.024);
--ring: oklch(0.228 0.003 174.231);
--chart-1: oklch(0.228 0.003 174.231);
--chart-2: oklch(0.225 0.004 314.748);
--chart-3: oklch(0.228 0.002 84.575);
--chart-4: oklch(0.257 0.004 314.742);
--chart-5: oklch(0.23 0.005 173.877);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 174.728);
--foreground: oklch(0.98 0.006 174.42);
--muted: oklch(0.22 0.049 313.64);
--muted-foreground: oklch(0.756 0.003 314.811);
--popover: oklch(0.096 0.007 174.728);
--popover-foreground: oklch(0.98 0.006 174.42);
--card: oklch(0.121 0.009 174.728);
--card-foreground: oklch(0.987 0.004 174.477);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.228 0.003 174.231);
--primary-foreground: oklch(0.776 0.005 174.385);
--secondary: oklch(0.225 0.004 314.748);
--secondary-foreground: oklch(0.77 0.007 314.782);
--accent: oklch(0.228 0.002 84.575);
--accent-foreground: oklch(0.776 0.004 84.566);
--destructive: oklch(0.669 0.172 34.12);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.228 0.003 174.231);
--chart-1: oklch(0.228 0.003 174.231);
--chart-2: oklch(0.225 0.004 314.748);
--chart-3: oklch(0.228 0.002 84.575);
--chart-4: oklch(0.257 0.004 314.742);
--chart-5: oklch(0.23 0.005 173.877);
}