Elderberry Black Dinosaur for shadcn/ui

Elderberry Black Dinosaur is a shadcn/ui theme built around a deep blue primary color (#142c38) with deep blue accents (#141a38). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#142c38) on a blue-tinted background (#040c10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040c10black
Foreground
#010609black
#ffffffwhite
Card
#ffffffwhite
#040c10black
Card foreground
#010609black
#ffffffwhite
Popover
#ffffffwhite
#040c10black
Popover foreground
#010609black
#ffffffwhite
Primary
#142c38darkslategray
#142c38darkslategray
Primary foreground
#a1c9ddlightsteelblue
#a1c9ddlightsteelblue
Secondary
#143832darkslategray
#143832darkslategray
Secondary foreground
#a1ddd3lightblue
#a1ddd3lightblue
Muted
#d2e9e6gainsboro
#162d29darkslategray
Muted foreground
#606262dimgray
#9d9f9fdarkgray
Accent
#141a38midnightblue
#141a38midnightblue
Accent foreground
#a1abddlightsteelblue
#a1abddlightsteelblue
Destructive
#700b05maroon
#f64137tomato
Destructive foreground
#fbb0aclightpink
#ffffffwhite
Border
#ecedeewhitesmoke
#1d1f20black
Input
#ecedeewhitesmoke
#1d1f20black
Ring
#142c38darkslategray
#142c38darkslategray

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button8.20:1AAA
Secondary button8.37:1AAA
Muted text4.85:1AA
Accent7.58:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button8.20:1AAA
Secondary button8.37:1AAA
Muted text5.49:1AA
Accent7.58:1AAA
Destructive3.67:1AA Large

CSS variables

Paste this into your globals.css to use Elderberry Black Dinosaur in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.016 221.004);
  --muted: oklch(0.917 0.025 184.724);
  --muted-foreground: oklch(0.494 0.002 185.318);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.117 0.016 221.004);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.117 0.016 221.004);
  --border: oklch(0.947 0.002 228.772);
  --input: oklch(0.947 0.002 228.772);
  --primary: oklch(0.281 0.037 231.934);
  --primary-foreground: oklch(0.815 0.051 229.771);
  --secondary: oklch(0.313 0.043 180.868);
  --secondary-foreground: oklch(0.855 0.063 183.383);
  --accent: oklch(0.231 0.058 272.574);
  --accent-foreground: oklch(0.752 0.073 275.72);
  --destructive: oklch(0.349 0.134 29.489);
  --destructive-foreground: oklch(0.828 0.088 22.516);
  --ring: oklch(0.281 0.037 231.934);
  --chart-1: oklch(0.281 0.037 231.934);
  --chart-2: oklch(0.313 0.043 180.868);
  --chart-3: oklch(0.231 0.058 272.574);
  --chart-4: oklch(0.352 0.049 180.672);
  --chart-5: oklch(0.282 0.039 232.234);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.017 226.923);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.03 182.084);
  --muted-foreground: oklch(0.701 0.002 185.364);
  --popover: oklch(0.148 0.017 226.923);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.017 226.923);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.238 0.004 228.955);
  --input: oklch(0.238 0.004 228.955);
  --primary: oklch(0.281 0.037 231.934);
  --primary-foreground: oklch(0.815 0.051 229.771);
  --secondary: oklch(0.313 0.043 180.868);
  --secondary-foreground: oklch(0.855 0.063 183.383);
  --accent: oklch(0.231 0.058 272.574);
  --accent-foreground: oklch(0.752 0.073 275.72);
  --destructive: oklch(0.644 0.218 28.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.281 0.037 231.934);
  --chart-1: oklch(0.281 0.037 231.934);
  --chart-2: oklch(0.313 0.043 180.868);
  --chart-3: oklch(0.231 0.058 272.574);
  --chart-4: oklch(0.352 0.049 180.672);
  --chart-5: oklch(0.282 0.039 232.234);
}