Elver for shadcn/ui

Elver is a shadcn/ui theme built around a deep orange primary color (#201709) with deep green accents (#1d2009). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#201709) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#040301black
#fdfdfcwhite
Card
#ffffffwhite
#040301black
Card foreground
#040301black
#fdfdfcwhite
Popover
#ffffffwhite
#040301black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#201709black
#201709black
Primary foreground
#dab681burlywood
#dab681burlywood
Secondary
#200b09black
#200b09black
Secondary foreground
#da8981darksalmon
#da8981darksalmon
Muted
#e3dedegainsboro
#211d1cblack
Muted foreground
#5b5352dimgray
#ada5a4darkgray
Accent
#1d2009black
#1d2009black
Accent foreground
#b0be37yellowgreen
#b0be37yellowgreen
Destructive
#8f220fsaddlebrown
#e23618orangered
Destructive foreground
#fbdbd5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#201709black
#201709black

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button9.28:1AAA
Secondary button7.06:1AAA
Muted text5.63:1AA
Accent8.14:1AAA
Destructive6.72:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button9.28:1AAA
Secondary button7.06:1AAA
Muted text6.93:1AA
Accent8.14:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.012 86.097);
  --muted: oklch(0.905 0.005 25.034);
  --muted-foreground: oklch(0.45 0.01 25.193);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.012 86.097);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.012 86.097);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.21 0.028 76.496);
  --primary-foreground: oklch(0.797 0.082 77.28);
  --secondary: oklch(0.183 0.036 27.698);
  --secondary-foreground: oklch(0.713 0.101 26.734);
  --accent: oklch(0.233 0.038 114.09);
  --accent-foreground: oklch(0.766 0.154 115.08);
  --destructive: oklch(0.43 0.148 32.294);
  --destructive-foreground: oklch(0.916 0.036 29.655);
  --ring: oklch(0.21 0.028 76.496);
  --chart-1: oklch(0.21 0.028 76.496);
  --chart-2: oklch(0.183 0.036 27.698);
  --chart-3: oklch(0.233 0.038 114.09);
  --chart-4: oklch(0.214 0.047 28.089);
  --chart-5: oklch(0.211 0.029 76.364);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.011 85.181);
  --foreground: oklch(0.993 0.001 78.309);
  --muted: oklch(0.234 0.007 25.257);
  --muted-foreground: oklch(0.728 0.009 25.095);
  --popover: oklch(0.097 0.011 85.181);
  --popover-foreground: oklch(0.993 0.001 78.309);
  --card: oklch(0.097 0.011 85.181);
  --card-foreground: oklch(0.993 0.001 78.309);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.21 0.028 76.496);
  --primary-foreground: oklch(0.797 0.082 77.28);
  --secondary: oklch(0.183 0.036 27.698);
  --secondary-foreground: oklch(0.713 0.101 26.734);
  --accent: oklch(0.233 0.038 114.09);
  --accent-foreground: oklch(0.766 0.154 115.08);
  --destructive: oklch(0.599 0.212 32.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.028 76.496);
  --chart-1: oklch(0.21 0.028 76.496);
  --chart-2: oklch(0.183 0.036 27.698);
  --chart-3: oklch(0.233 0.038 114.09);
  --chart-4: oklch(0.214 0.047 28.089);
  --chart-5: oklch(0.211 0.029 76.364);
}