Spawn for shadcn/ui

Spawn is a shadcn/ui theme built around a vivid violet primary color (#8125f8) with vivid green accents (#9df825). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#8125f8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#f7f3fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f3fcghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#8125f8blueviolet
#8125f8blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9df825greenyellow
#9df825greenyellow
Secondary foreground
#2e4f02darkgreen
#2e4f02darkgreen
Muted
#dee1dbgainsboro
#22241eblack
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#9df825greenyellow
#9df825greenyellow
Accent foreground
#2e4f02darkgreen
#2e4f02darkgreen
Destructive
#8e2201darkred
#fe5420orangered
Destructive foreground
#ffd0c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8125f8blueviolet
#8125f8blueviolet

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.16:1AAA
Primary button5.90:1AA
Secondary button7.12:1AAA
Muted text5.29:1AA
Accent7.12:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button5.90:1AA
Secondary button7.12:1AAA
Muted text6.44:1AA
Accent7.12:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 305.629);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.906 0.008 125.865);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.97 0.012 305.572);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.012 305.572);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.539 0.274 294.236);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.888 0.237 131.846);
  --secondary-foreground: oklch(0.387 0.106 131.924);
  --accent: oklch(0.888 0.237 131.846);
  --accent-foreground: oklch(0.387 0.106 131.924);
  --destructive: oklch(0.427 0.149 35.117);
  --destructive-foreground: oklch(0.895 0.056 37.592);
  --ring: oklch(0.539 0.274 294.236);
  --chart-1: oklch(0.539 0.274 294.236);
  --chart-2: oklch(0.888 0.237 131.846);
  --chart-3: oklch(0.888 0.237 131.846);
  --chart-4: oklch(0.894 0.229 131.167);
  --chart-5: oklch(0.54 0.279 293.678);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 305.726);
  --muted: oklch(0.256 0.012 126.352);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.539 0.274 294.236);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.888 0.237 131.846);
  --secondary-foreground: oklch(0.387 0.106 131.924);
  --accent: oklch(0.888 0.237 131.846);
  --accent-foreground: oklch(0.387 0.106 131.924);
  --destructive: oklch(0.674 0.215 36.059);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.539 0.274 294.236);
  --chart-1: oklch(0.539 0.274 294.236);
  --chart-2: oklch(0.888 0.237 131.846);
  --chart-3: oklch(0.888 0.237 131.846);
  --chart-4: oklch(0.894 0.229 131.167);
  --chart-5: oklch(0.54 0.279 293.678);
}