Echidna for shadcn/ui

Echidna is a shadcn/ui theme built around a deep red primary color (#4f1212) with deep indigo accents (#12124f). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the deep red primary (#4f1212) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0b0505black
Foreground
#110303black
#fbf9f9snow
Card
#fcf3f3lavenderblush
#0e0606black
Card foreground
#0d0303black
#fdfcfcsnow
Popover
#fcf3f3lavenderblush
#0e0606black
Popover foreground
#0d0303black
#fdfcfcsnow
Primary
#4f1212maroon
#4f1212maroon
Primary foreground
#eba8a8lightpink
#eba8a8lightpink
Secondary
#124f12darkgreen
#124f12darkgreen
Secondary foreground
#a8eba8palegreen
#a8eba8palegreen
Muted
#d0e7d0gainsboro
#182f18black
Muted foreground
#425742darkslategray
#a8bda8darkgray
Accent
#12124fmidnightblue
#12124fmidnightblue
Accent foreground
#a8a8eblightsteelblue
#a8a8eblightsteelblue
Destructive
#7f2c06saddlebrown
#f45810orangered
Destructive foreground
#fccfbbpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f1212maroon
#4f1212maroon

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card18.63:1AAA
Primary button7.49:1AAA
Secondary button7.02:1AAA
Muted text5.98:1AA
Accent7.73:1AAA
Destructive6.53:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.55:1AAA
Primary button7.49:1AAA
Secondary button7.02:1AAA
Muted text7.16:1AAA
Accent7.73:1AAA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.268);
  --foreground: oklch(0.13 0.03 22.102);
  --muted: oklch(0.904 0.04 145.232);
  --muted-foreground: oklch(0.433 0.044 144.776);
  --popover: oklch(0.971 0.01 17.327);
  --popover-foreground: oklch(0.116 0.026 21.871);
  --card: oklch(0.971 0.01 17.327);
  --card-foreground: oklch(0.116 0.026 21.871);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.288 0.091 24.932);
  --primary-foreground: oklch(0.795 0.08 18.993);
  --secondary: oklch(0.375 0.11 142.981);
  --secondary-foreground: oklch(0.879 0.114 144.528);
  --accent: oklch(0.234 0.108 274.16);
  --accent-foreground: oklch(0.756 0.096 283.855);
  --destructive: oklch(0.411 0.123 40.604);
  --destructive-foreground: oklch(0.889 0.058 46.234);
  --ring: oklch(0.288 0.091 24.932);
  --chart-1: oklch(0.288 0.091 24.932);
  --chart-2: oklch(0.375 0.11 142.981);
  --chart-3: oklch(0.234 0.108 274.16);
  --chart-4: oklch(0.415 0.124 142.939);
  --chart-5: oklch(0.289 0.095 25.358);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 19.188);
  --foreground: oklch(0.984 0.002 17.186);
  --muted: oklch(0.28 0.052 144.044);
  --muted-foreground: oklch(0.777 0.038 145.197);
  --popover: oklch(0.136 0.016 19.292);
  --popover-foreground: oklch(0.992 0.001 17.172);
  --card: oklch(0.136 0.016 19.292);
  --card-foreground: oklch(0.992 0.001 17.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.288 0.091 24.932);
  --primary-foreground: oklch(0.795 0.08 18.993);
  --secondary: oklch(0.375 0.11 142.981);
  --secondary-foreground: oklch(0.879 0.114 144.528);
  --accent: oklch(0.234 0.108 274.16);
  --accent-foreground: oklch(0.756 0.096 283.855);
  --destructive: oklch(0.662 0.203 39.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.091 24.932);
  --chart-1: oklch(0.288 0.091 24.932);
  --chart-2: oklch(0.375 0.11 142.981);
  --chart-3: oklch(0.234 0.108 274.16);
  --chart-4: oklch(0.415 0.124 142.939);
  --chart-5: oklch(0.289 0.095 25.358);
}