Unsung for shadcn/ui

Unsung is a shadcn/ui theme built around a near-black primary color (#030203) with muted light purple accents (#e7dfe5). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-black primary (#030203) on a purple-tinted background (#0e070c).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0e070cblack
Foreground
#040103black
#fcf8fbsnow
Card
#fefbfdsnow
#0e070cblack
Card foreground
#040103black
#fcf8fbsnow
Popover
#fefbfdsnow
#0e070cblack
Popover foreground
#040103black
#fcf8fbsnow
Primary
#030203black
#030203black
Primary foreground
#b780abrosybrown
#b780abrosybrown
Secondary
#e7dfe5gainsboro
#221c20black
Secondary foreground
#553f50darkslategray
#bfb0bcsilver
Muted
#efe6edlavender
#191017black
Muted foreground
#4f4a4edarkslategray
#b5b0b4darkgray
Accent
#e7dfe5gainsboro
#221c20black
Accent foreground
#553f50darkslategray
#bfb0bcsilver
Destructive
#712005maroon
#eb420aorangered
Destructive foreground
#fcc0aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030203black
#030203black

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.60:1AA
Secondary button7.25:1AAA
Muted text7.11:1AAA
Accent7.25:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button6.60:1AA
Secondary button8.12:1AAA
Muted text8.72:1AAA
Accent8.12:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 332.668);
  --foreground: oklch(0.086 0.016 333.372);
  --muted: oklch(0.934 0.013 332.838);
  --muted-foreground: oklch(0.416 0.008 332.928);
  --popover: oklch(0.991 0.003 332.668);
  --popover-foreground: oklch(0.086 0.016 333.372);
  --card: oklch(0.991 0.003 332.668);
  --card-foreground: oklch(0.086 0.016 333.372);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.089 0.009 333.033);
  --primary-foreground: oklch(0.669 0.09 334.576);
  --secondary: oklch(0.911 0.013 332.831);
  --secondary-foreground: oklch(0.398 0.041 334.135);
  --accent: oklch(0.911 0.013 332.831);
  --accent-foreground: oklch(0.398 0.041 334.135);
  --destructive: oklch(0.369 0.119 36.819);
  --destructive-foreground: oklch(0.856 0.075 39.226);
  --ring: oklch(0.089 0.009 333.033);
  --chart-1: oklch(0.089 0.009 333.033);
  --chart-2: oklch(0.911 0.013 332.831);
  --chart-3: oklch(0.911 0.013 332.831);
  --chart-4: oklch(0.936 0.009 332.768);
  --chart-5: oklch(0.088 0.01 333.079);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.018 334.018);
  --foreground: oklch(0.983 0.006 332.709);
  --muted: oklch(0.188 0.02 334.185);
  --muted-foreground: oklch(0.763 0.007 332.763);
  --popover: oklch(0.14 0.018 334.018);
  --popover-foreground: oklch(0.983 0.006 332.709);
  --card: oklch(0.14 0.018 334.018);
  --card-foreground: oklch(0.983 0.006 332.709);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.089 0.009 333.033);
  --primary-foreground: oklch(0.669 0.09 334.576);
  --secondary: oklch(0.234 0.013 333.452);
  --secondary-foreground: oklch(0.774 0.022 333.059);
  --accent: oklch(0.234 0.013 333.452);
  --accent-foreground: oklch(0.774 0.022 333.059);
  --destructive: oklch(0.624 0.213 35.437);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.089 0.009 333.033);
  --chart-1: oklch(0.089 0.009 333.033);
  --chart-2: oklch(0.234 0.013 333.452);
  --chart-3: oklch(0.234 0.013 333.452);
  --chart-4: oklch(0.265 0.016 333.507);
  --chart-5: oklch(0.088 0.01 333.079);
}