Unused for shadcn/ui

Unused is a shadcn/ui theme built around a near-black primary color (#050406) with near-black accents (#050604). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the near-black primary (#050406) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#040307black
Foreground
#04020dblack
#ffffffwhite
Card
#f8f7fdghostwhite
#040307black
Card foreground
#04020dblack
#ffffffwhite
Popover
#f8f7fdghostwhite
#040307black
Popover foreground
#04020dblack
#ffffffwhite
Primary
#050406black
#050406black
Primary foreground
#9792aadarkgray
#9792aadarkgray
Secondary
#050604black
#050604black
Secondary foreground
#a5aa92darkgray
#a5aa92darkgray
Muted
#edefe6linen
#171910black
Muted foreground
#42433ddarkslategray
#c1c2bcsilver
Accent
#050604black
#050604black
Accent foreground
#a5aa92darkgray
#a5aa92darkgray
Destructive
#822503saddlebrown
#f04405orangered
Destructive foreground
#fecbb9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050406black
#050406black

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.81:1AA
Secondary button8.47:1AAA
Muted text8.61:1AAA
Accent8.47:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button6.81:1AA
Secondary button8.47:1AAA
Muted text9.90:1AAA
Accent8.47:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 295.432);
  --foreground: oklch(0.105 0.032 293.748);
  --muted: oklch(0.949 0.012 115.812);
  --muted-foreground: oklch(0.379 0.011 116.097);
  --popover: oklch(0.979 0.008 295.432);
  --popover-foreground: oklch(0.105 0.032 293.748);
  --card: oklch(0.979 0.008 295.432);
  --card-foreground: oklch(0.105 0.032 293.748);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.112 0.004 295.418);
  --primary-foreground: oklch(0.673 0.034 294.631);
  --secondary: oklch(0.119 0.004 115.72);
  --secondary-foreground: oklch(0.727 0.033 116.413);
  --accent: oklch(0.119 0.004 115.72);
  --accent-foreground: oklch(0.727 0.033 116.413);
  --destructive: oklch(0.407 0.134 37.129);
  --destructive-foreground: oklch(0.882 0.063 40.931);
  --ring: oklch(0.112 0.004 295.418);
  --chart-1: oklch(0.112 0.004 295.418);
  --chart-2: oklch(0.119 0.004 115.72);
  --chart-3: oklch(0.119 0.004 115.72);
  --chart-4: oklch(0.163 0.006 116.291);
  --chart-5: oklch(0.111 0.005 295.375);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.017 294.834);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.017 117.108);
  --muted-foreground: oklch(0.813 0.009 115.779);
  --popover: oklch(0.102 0.017 294.834);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.017 294.834);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.112 0.004 295.418);
  --primary-foreground: oklch(0.673 0.034 294.631);
  --secondary: oklch(0.119 0.004 115.72);
  --secondary-foreground: oklch(0.727 0.033 116.413);
  --accent: oklch(0.119 0.004 115.72);
  --accent-foreground: oklch(0.727 0.033 116.413);
  --destructive: oklch(0.633 0.216 35.747);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.112 0.004 295.418);
  --chart-1: oklch(0.112 0.004 295.418);
  --chart-2: oklch(0.119 0.004 115.72);
  --chart-3: oklch(0.119 0.004 115.72);
  --chart-4: oklch(0.163 0.006 116.291);
  --chart-5: oklch(0.111 0.005 295.375);
}