Wild for shadcn/ui

Wild is a shadcn/ui theme built around a vivid deep indigo primary color (#1b0684) with neutral gray accents (#cbcace). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid deep indigo primary (#1b0684) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#040307black
Foreground
#030308black
#fcfcfdwhite
Card
#f8f7fdghostwhite
#040307black
Card foreground
#030308black
#fcfcfdwhite
Popover
#f8f7fdghostwhite
#040307black
Popover foreground
#030308black
#fcfcfdwhite
Primary
#1b0684midnightblue
#1b0684midnightblue
Primary foreground
#cac0fcthistle
#cac0fcthistle
Secondary
#cbcacelightgrey
#1e1d20black
Secondary foreground
#323135darkslategray
#b6b5basilver
Muted
#dbdae2gainsboro
#1e1d25black
Muted foreground
#585568dimgray
#9a97aadarkgray
Accent
#cbcacelightgrey
#1e1d20black
Accent foreground
#323135darkslategray
#b6b5basilver
Destructive
#9f3609saddlebrown
#d94a0dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b0684midnightblue
#1b0684midnightblue

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button8.87:1AAA
Secondary button7.91:1AAA
Muted text5.17:1AA
Accent7.91:1AAA
Destructive6.97:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button8.87:1AAA
Secondary button8.21:1AAA
Muted text5.86:1AA
Accent8.21:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 293.918);
  --foreground: oklch(0.099 0.019 292.778);
  --muted: oklch(0.891 0.012 293.819);
  --muted-foreground: oklch(0.459 0.031 292.797);
  --popover: oklch(0.979 0.008 293.918);
  --popover-foreground: oklch(0.099 0.019 292.778);
  --card: oklch(0.979 0.008 293.918);
  --card-foreground: oklch(0.099 0.019 292.778);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.294 0.181 273.085);
  --primary-foreground: oklch(0.836 0.084 292.115);
  --secondary: oklch(0.841 0.006 293.94);
  --secondary-foreground: oklch(0.315 0.007 293.635);
  --accent: oklch(0.841 0.006 293.94);
  --accent-foreground: oklch(0.315 0.007 293.635);
  --destructive: oklch(0.481 0.148 39.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.181 273.085);
  --chart-1: oklch(0.294 0.181 273.085);
  --chart-2: oklch(0.841 0.006 293.94);
  --chart-3: oklch(0.841 0.006 293.94);
  --chart-4: oklch(0.865 0.005 293.963);
  --chart-5: oklch(0.294 0.185 272.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.013 293.236);
  --foreground: oklch(0.99 0.002 294.02);
  --muted: oklch(0.236 0.017 292.729);
  --muted-foreground: oklch(0.686 0.028 293.307);
  --popover: oklch(0.105 0.013 293.236);
  --popover-foreground: oklch(0.99 0.002 294.02);
  --card: oklch(0.105 0.013 293.236);
  --card-foreground: oklch(0.99 0.002 294.02);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.294 0.181 273.085);
  --primary-foreground: oklch(0.836 0.084 292.115);
  --secondary: oklch(0.234 0.005 293.691);
  --secondary-foreground: oklch(0.775 0.008 293.871);
  --accent: oklch(0.234 0.005 293.691);
  --accent-foreground: oklch(0.775 0.008 293.871);
  --destructive: oklch(0.602 0.189 38.672);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.181 273.085);
  --chart-1: oklch(0.294 0.181 273.085);
  --chart-2: oklch(0.234 0.005 293.691);
  --chart-3: oklch(0.234 0.005 293.691);
  --chart-4: oklch(0.265 0.006 293.665);
  --chart-5: oklch(0.294 0.185 272.284);
}