Ashamed for shadcn/ui

Ashamed is a shadcn/ui theme built around a muted deep violet primary color (#131118) with muted deep green accents (#161811). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#131118) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040208black
#f7f6f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#020104black
#faf9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040208black
#f7f6f9whitesmoke
Primary
#131118black
#131118black
Primary foreground
#a89ebddarkgray
#a89ebddarkgray
Secondary
#161811black
#161811black
Secondary foreground
#b3bd9edarkgray
#b3bd9edarkgray
Muted
#dee1d5gainsboro
#262a1edarkslategray
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#161811black
#161811black
Accent foreground
#b3bd9edarkgray
#b3bd9edarkgray
Destructive
#77340dsaddlebrown
#e76a23chocolate
Destructive foreground
#f8d4bfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#131118black
#131118black

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.37:1AAA
Primary button7.41:1AAA
Secondary button9.10:1AAA
Muted text7.83:1AAA
Accent9.10:1AAA
Destructive6.62:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.70:1AAA
Primary button7.41:1AAA
Secondary button9.10:1AAA
Muted text7.99:1AAA
Accent9.10:1AAA
Destructive6.48:1AA

CSS variables

Paste this into your globals.css to use Ashamed in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.019 301.108);
  --muted: oklch(0.905 0.017 121.074);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.019 301.108);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.015 301.108);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.182 0.016 299.296);
  --primary-foreground: oklch(0.718 0.046 299.712);
  --secondary: oklch(0.205 0.015 122.027);
  --secondary-foreground: oklch(0.782 0.044 121.709);
  --accent: oklch(0.205 0.015 122.027);
  --accent-foreground: oklch(0.782 0.044 121.709);
  --destructive: oklch(0.411 0.106 46.004);
  --destructive-foreground: oklch(0.894 0.05 51.873);
  --ring: oklch(0.182 0.016 299.296);
  --chart-1: oklch(0.182 0.016 299.296);
  --chart-2: oklch(0.205 0.015 122.027);
  --chart-3: oklch(0.205 0.015 122.027);
  --chart-4: oklch(0.242 0.02 122.174);
  --chart-5: oklch(0.181 0.019 299.037);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.004 300.701);
  --muted: oklch(0.276 0.022 122.126);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.004 300.701);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 300.724);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.182 0.016 299.296);
  --primary-foreground: oklch(0.718 0.046 299.712);
  --secondary: oklch(0.205 0.015 122.027);
  --secondary-foreground: oklch(0.782 0.044 121.709);
  --accent: oklch(0.205 0.015 122.027);
  --accent-foreground: oklch(0.782 0.044 121.709);
  --destructive: oklch(0.666 0.173 45.86);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.182 0.016 299.296);
  --chart-1: oklch(0.182 0.016 299.296);
  --chart-2: oklch(0.205 0.015 122.027);
  --chart-3: oklch(0.205 0.015 122.027);
  --chart-4: oklch(0.242 0.02 122.174);
  --chart-5: oklch(0.181 0.019 299.037);
}