Unsung for shadcn/ui

Unsung is a shadcn/ui theme built around a muted light indigo primary color (#eae9f2) with muted light green accents (#f1f2e9). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted light indigo primary (#eae9f2) on an indigo-tinted background (#07060e).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#07060eblack
Foreground
#060510black
#f6f6f9whitesmoke
Card
#fcfcfdwhite
#07060eblack
Card foreground
#060510black
#f6f6f9whitesmoke
Popover
#fcfcfdwhite
#07060eblack
Popover foreground
#060510black
#f6f6f9whitesmoke
Primary
#eae9f2lavender
#eae9f2lavender
Primary foreground
#433e6adarkslateblue
#433e6adarkslateblue
Secondary
#f1f2e9linen
#f1f2e9linen
Secondary foreground
#282a19black
#282a19black
Muted
#ebedd9beige
#242612black
Muted foreground
#555648darkolivegreen
#b5b7a9darkgray
Accent
#f1f2e9linen
#f1f2e9linen
Accent foreground
#282a19black
#282a19black
Destructive
#cf4a07chocolate
#f15609orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eae9f2lavender
#eae9f2lavender

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button8.13:1AAA
Secondary button12.94:1AAA
Muted text6.28:1AA
Accent12.94:1AAA
Destructive4.54:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button8.13:1AAA
Secondary button12.94:1AAA
Muted text7.54:1AAA
Accent12.94:1AAA
Destructive3.44: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.99 0.002 291.736);
  --foreground: oklch(0.124 0.026 288.948);
  --muted: oklch(0.94 0.028 112.327);
  --muted-foreground: oklch(0.448 0.023 112.716);
  --popover: oklch(0.99 0.002 291.736);
  --popover-foreground: oklch(0.124 0.026 288.948);
  --card: oklch(0.99 0.002 291.736);
  --card-foreground: oklch(0.124 0.026 288.948);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.936 0.012 291.528);
  --primary-foreground: oklch(0.391 0.073 287.87);
  --secondary: oklch(0.957 0.012 112.021);
  --secondary-foreground: oklch(0.277 0.03 113.785);
  --accent: oklch(0.957 0.012 112.021);
  --accent-foreground: oklch(0.277 0.03 113.785);
  --destructive: oklch(0.585 0.18 40.266);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.936 0.012 291.528);
  --chart-1: oklch(0.936 0.012 291.528);
  --chart-2: oklch(0.957 0.012 112.021);
  --chart-3: oklch(0.957 0.012 112.021);
  --chart-4: oklch(0.976 0.007 111.915);
  --chart-5: oklch(0.935 0.014 291.498);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.02 289.685);
  --foreground: oklch(0.973 0.005 291.685);
  --muted: oklch(0.262 0.035 114.328);
  --muted-foreground: oklch(0.774 0.02 112.258);
  --popover: oklch(0.129 0.02 289.685);
  --popover-foreground: oklch(0.973 0.005 291.685);
  --card: oklch(0.129 0.02 289.685);
  --card-foreground: oklch(0.973 0.005 291.685);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.936 0.012 291.528);
  --primary-foreground: oklch(0.391 0.073 287.87);
  --secondary: oklch(0.957 0.012 112.021);
  --secondary-foreground: oklch(0.277 0.03 113.785);
  --accent: oklch(0.957 0.012 112.021);
  --accent-foreground: oklch(0.277 0.03 113.785);
  --destructive: oklch(0.655 0.203 39.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.936 0.012 291.528);
  --chart-1: oklch(0.936 0.012 291.528);
  --chart-2: oklch(0.957 0.012 112.021);
  --chart-3: oklch(0.957 0.012 112.021);
  --chart-4: oklch(0.976 0.007 111.915);
  --chart-5: oklch(0.935 0.014 291.498);
}