Shameful for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.58:1AAA
Text on card18.72:1AAA
Primary button8.36:1AAA
Secondary button8.25:1AAA
Muted text5.91:1AA
Accent8.37:1AAA
Destructive7.37:1AAA
Dark mode
Text on background19.55:1AAA
Text on card19.59:1AAA
Primary button8.36:1AAA
Secondary button8.25:1AAA
Muted text8.03:1AAA
Accent8.37:1AAA
Destructive6.48:1AA

CSS variables

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);
}