Unsung for shadcn/ui

Unsung is a shadcn/ui theme built around a vivid green primary color (#2bc205) with muted light green accents (#d5e0d2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#2bc205) on a neutral background (#040803).

Color palette

TokenLightDark
Background
#fcfefbwhite
#040803black
Foreground
#050c03black
#f9fcf8mintcream
Card
#f8fcf7mintcream
#050b04black
Card foreground
#030802black
#fcfdfbsnow
Popover
#fcfefbwhite
#040803black
Popover foreground
#050c03black
#f9fcf8mintcream
Primary
#2bc205limegreen
#2bc205limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6ebe5gainsboro
#1c221bblack
Secondary foreground
#495946darkslategray
#b2c0afsilver
Muted
#ebf0ealinen
#10150fblack
Muted foreground
#444d42darkslategray
#b4bdb2silver
Accent
#d5e0d2gainsboro
#293725darkslategray
Accent foreground
#394b34darkslategray
#c1d2bcsilver
Destructive
#7e2d01saddlebrown
#ed5502orangered
Destructive foreground
#feceb3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2bc205limegreen
#2bc205limegreen

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.55:1AAA
Primary button2.38:1Fail
Secondary button6.20:1AA
Muted text7.63:1AAA
Accent6.89:1AA
Destructive6.48:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.44:1AAA
Primary button2.38:1Fail
Secondary button8.51:1AAA
Muted text9.56:1AAA
Accent7.96:1AAA
Destructive3.55: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.994 0.004 139.443);
  --foreground: oklch(0.143 0.027 137.714);
  --muted: oklch(0.95 0.01 139.442);
  --muted-foreground: oklch(0.409 0.022 139.433);
  --popover: oklch(0.994 0.004 139.443);
  --popover-foreground: oklch(0.143 0.027 137.714);
  --card: oklch(0.988 0.008 139.442);
  --card-foreground: oklch(0.124 0.023 137.631);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.709 0.233 141.277);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.935 0.009 139.442);
  --secondary-foreground: oklch(0.443 0.036 139.433);
  --accent: oklch(0.893 0.022 139.438);
  --accent-foreground: oklch(0.391 0.044 139.443);
  --destructive: oklch(0.411 0.122 42.323);
  --destructive-foreground: oklch(0.886 0.066 49.787);
  --ring: oklch(0.709 0.233 141.277);
  --chart-1: oklch(0.709 0.233 141.277);
  --chart-2: oklch(0.935 0.009 139.442);
  --chart-3: oklch(0.893 0.022 139.438);
  --chart-4: oklch(0.956 0.006 139.443);
  --chart-5: oklch(0.717 0.237 141.356);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.019 137.932);
  --foreground: oklch(0.987 0.006 139.443);
  --muted: oklch(0.188 0.014 139.433);
  --muted-foreground: oklch(0.789 0.019 139.438);
  --popover: oklch(0.123 0.019 137.932);
  --popover-foreground: oklch(0.987 0.006 139.443);
  --card: oklch(0.141 0.022 137.973);
  --card-foreground: oklch(0.994 0.003 139.443);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.709 0.233 141.277);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.244 0.016 139.432);
  --secondary-foreground: oklch(0.793 0.028 139.436);
  --accent: oklch(0.317 0.036 139.442);
  --accent-foreground: oklch(0.844 0.034 139.435);
  --destructive: oklch(0.647 0.201 40.324);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.233 141.277);
  --chart-1: oklch(0.709 0.233 141.277);
  --chart-2: oklch(0.244 0.016 139.432);
  --chart-3: oklch(0.317 0.036 139.442);
  --chart-4: oklch(0.278 0.02 139.432);
  --chart-5: oklch(0.717 0.237 141.356);
}