Unsung for shadcn/ui

Unsung is a shadcn/ui theme built around a light green primary color (#c6ebd5) with light orange accents (#ebd5c6). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the light green primary (#c6ebd5) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#030705black
Foreground
#010402black
#f9fafaghostwhite
Card
#f4faf7whitesmoke
#040b07black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fcf9mintcream
#030705black
Popover foreground
#010402black
#f9fafaghostwhite
Primary
#c6ebd5lightgrey
#c6ebd5lightgrey
Primary foreground
#07130cblack
#07130cblack
Secondary
#d5c6ebthistle
#d5c6ebthistle
Secondary foreground
#3a215fmidnightblue
#3a215fmidnightblue
Muted
#e2e0e6gainsboro
#1b191fblack
Muted foreground
#594e6adimgray
#a095b1darkgray
Accent
#ebd5c6wheat
#ebd5c6wheat
Accent foreground
#5f3a21saddlebrown
#5f3a21saddlebrown
Destructive
#7d2308maroon
#f14f1eorangered
Destructive foreground
#fbcbbcpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6ebd5lightgrey
#c6ebd5lightgrey

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.92:1AAA
Primary button14.71:1AAA
Secondary button8.39:1AAA
Muted text5.88:1AA
Accent7.04:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.49:1AAA
Primary button14.71:1AAA
Secondary button8.39:1AAA
Muted text6.15:1AA
Accent7.04:1AAA
Destructive3.58: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.987 0.005 160.105);
  --foreground: oklch(0.099 0.017 160.084);
  --muted: oklch(0.91 0.009 304.208);
  --muted-foreground: oklch(0.446 0.046 302.843);
  --popover: oklch(0.987 0.005 160.105);
  --popover-foreground: oklch(0.099 0.017 160.084);
  --card: oklch(0.981 0.008 160.04);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.05 158.918);
  --primary-foreground: oklch(0.172 0.024 157.172);
  --secondary: oklch(0.851 0.054 303.439);
  --secondary-foreground: oklch(0.314 0.107 298.476);
  --accent: oklch(0.887 0.032 55.933);
  --accent-foreground: oklch(0.386 0.065 53.27);
  --destructive: oklch(0.396 0.128 35.898);
  --destructive-foreground: oklch(0.879 0.059 37.592);
  --ring: oklch(0.909 0.05 158.918);
  --chart-1: oklch(0.909 0.05 158.918);
  --chart-2: oklch(0.851 0.054 303.439);
  --chart-3: oklch(0.887 0.032 55.933);
  --chart-4: oklch(0.881 0.043 303.651);
  --chart-5: oklch(0.91 0.053 158.837);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 160.138);
  --foreground: oklch(0.985 0.001 160.199);
  --muted: oklch(0.219 0.012 303.531);
  --muted-foreground: oklch(0.69 0.042 303.48);
  --popover: oklch(0.122 0.014 160.138);
  --popover-foreground: oklch(0.985 0.001 160.199);
  --card: oklch(0.139 0.016 160.061);
  --card-foreground: oklch(0.993 0.001 160.216);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.05 158.918);
  --primary-foreground: oklch(0.172 0.024 157.172);
  --secondary: oklch(0.851 0.054 303.439);
  --secondary-foreground: oklch(0.314 0.107 298.476);
  --accent: oklch(0.887 0.032 55.933);
  --accent-foreground: oklch(0.386 0.065 53.27);
  --destructive: oklch(0.647 0.206 36.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.05 158.918);
  --chart-1: oklch(0.909 0.05 158.918);
  --chart-2: oklch(0.851 0.054 303.439);
  --chart-3: oklch(0.887 0.032 55.933);
  --chart-4: oklch(0.881 0.043 303.651);
  --chart-5: oklch(0.91 0.053 158.837);
}