Shameless for shadcn/ui

Shameless is a shadcn/ui theme built around an indigo primary color (#2b34b1) with violet accents (#652bb1). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#2b34b1) on an indigo-tinted background (#06070e).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#06070eblack
Foreground
#040516black
#f9f9fbghostwhite
Card
#f7f7fdghostwhite
#080911black
Card foreground
#030412black
#fcfcfdwhite
Popover
#f7f7fdghostwhite
#080911black
Popover foreground
#030412black
#fcfcfdwhite
Primary
#2b34b1darkslateblue
#2b34b1darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2b77b1steelblue
#2b77b1steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9dfe3gainsboro
#1c2226black
Muted foreground
#59656edimgray
#919da6darkgray
Accent
#652bb1rebeccapurple
#652bb1rebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b92f13firebrick
#e23918orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b34b1darkslateblue
#2b34b1darkslateblue

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.15:1AAA
Primary button9.46:1AAA
Secondary button4.82:1AA
Muted text4.42:1AA Large
Accent8.32:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.38:1AAA
Primary button9.46:1AAA
Secondary button4.82:1AA
Muted text5.80:1AA
Accent8.32:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 283.046);
  --foreground: oklch(0.125 0.04 274.243);
  --muted: oklch(0.899 0.009 240.422);
  --muted-foreground: oklch(0.499 0.021 240.897);
  --popover: oklch(0.979 0.007 282.983);
  --popover-foreground: oklch(0.115 0.035 274.369);
  --card: oklch(0.979 0.007 282.983);
  --card-foreground: oklch(0.115 0.035 274.369);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.41 0.194 271.153);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.549 0.116 245.566);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.448 0.196 297.448);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.518 0.178 32.881);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.41 0.194 271.153);
  --chart-1: oklch(0.41 0.194 271.153);
  --chart-2: oklch(0.549 0.116 245.566);
  --chart-3: oklch(0.448 0.196 297.448);
  --chart-4: oklch(0.577 0.123 245.626);
  --chart-5: oklch(0.407 0.202 270.382);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.016 280.061);
  --foreground: oklch(0.983 0.002 283.078);
  --muted: oklch(0.247 0.012 241.006);
  --muted-foreground: oklch(0.689 0.02 240.687);
  --popover: oklch(0.142 0.019 280.152);
  --popover-foreground: oklch(0.992 0.001 283.092);
  --card: oklch(0.142 0.019 280.152);
  --card-foreground: oklch(0.992 0.001 283.092);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.41 0.194 271.153);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.549 0.116 245.566);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.448 0.196 297.448);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.601 0.21 32.797);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.41 0.194 271.153);
  --chart-1: oklch(0.41 0.194 271.153);
  --chart-2: oklch(0.549 0.116 245.566);
  --chart-3: oklch(0.448 0.196 297.448);
  --chart-4: oklch(0.577 0.123 245.626);
  --chart-5: oklch(0.407 0.202 270.382);
}