Unsung for shadcn/ui

Unsung is a shadcn/ui theme built around a deep violet primary color (#1e122b) with deep green accents (#122b1e). The light mode uses a neutral background (#faf7fd). Dark mode keeps the deep violet primary (#1e122b) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#050208black
Foreground
#030104black
#f7f6f9whitesmoke
Card
#faf7fdghostwhite
#050208black
Card foreground
#030104black
#f7f6f9whitesmoke
Popover
#faf7fdghostwhite
#050208black
Popover foreground
#030104black
#f7f6f9whitesmoke
Primary
#1e122bblack
#1e122bblack
Primary foreground
#b79bd4plum
#b79bd4plum
Secondary
#2b1e12black
#2b1e12black
Secondary foreground
#d4b79btan
#d4b79btan
Muted
#e8e0d9gainsboro
#261e17black
Muted foreground
#5f5449darkolivegreen
#b6aaa0darkgray
Accent
#122b1eblack
#122b1eblack
Accent foreground
#54b683mediumseagreen
#54b683mediumseagreen
Destructive
#c2410afirebrick
#f57138tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e122bblack
#1e122bblack

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button7.33:1AAA
Secondary button8.50:1AAA
Muted text5.64:1AA
Accent6.04:1AA
Destructive5.17:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button7.33:1AAA
Secondary button8.50:1AAA
Muted text7.20:1AAA
Accent6.04:1AA
Destructive7.27:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 307.689);
  --foreground: oklch(0.081 0.018 309.335);
  --muted: oklch(0.911 0.013 65.8);
  --muted-foreground: oklch(0.453 0.022 65.319);
  --popover: oklch(0.98 0.008 307.689);
  --popover-foreground: oklch(0.081 0.018 309.335);
  --card: oklch(0.98 0.008 307.689);
  --card-foreground: oklch(0.081 0.018 309.335);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.213 0.049 304.901);
  --primary-foreground: oklch(0.734 0.086 306.407);
  --secondary: oklch(0.248 0.029 63.977);
  --secondary-foreground: oklch(0.797 0.051 65.095);
  --accent: oklch(0.264 0.039 159.535);
  --accent-foreground: oklch(0.702 0.12 158.521);
  --destructive: oklch(0.553 0.174 38.704);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.213 0.049 304.901);
  --chart-1: oklch(0.213 0.049 304.901);
  --chart-2: oklch(0.248 0.029 63.977);
  --chart-3: oklch(0.264 0.039 159.535);
  --chart-4: oklch(0.282 0.035 63.781);
  --chart-5: oklch(0.211 0.052 304.631);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.021 309.234);
  --foreground: oklch(0.974 0.005 307.729);
  --muted: oklch(0.243 0.018 64.949);
  --muted-foreground: oklch(0.746 0.02 65.639);
  --popover: oklch(0.102 0.021 309.234);
  --popover-foreground: oklch(0.974 0.005 307.729);
  --card: oklch(0.102 0.021 309.234);
  --card-foreground: oklch(0.974 0.005 307.729);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.213 0.049 304.901);
  --primary-foreground: oklch(0.734 0.086 306.407);
  --secondary: oklch(0.248 0.029 63.977);
  --secondary-foreground: oklch(0.797 0.051 65.095);
  --accent: oklch(0.264 0.039 159.535);
  --accent-foreground: oklch(0.702 0.12 158.521);
  --destructive: oklch(0.697 0.176 41.942);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.213 0.049 304.901);
  --chart-1: oklch(0.213 0.049 304.901);
  --chart-2: oklch(0.248 0.029 63.977);
  --chart-3: oklch(0.264 0.039 159.535);
  --chart-4: oklch(0.282 0.035 63.781);
  --chart-5: oklch(0.211 0.052 304.631);
}