Cuckoo for shadcn/ui

Cuckoo is a shadcn/ui theme built around a deep indigo primary color (#0c0a29) with deep yellow accents (#27290a). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the deep indigo primary (#0c0a29) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#030307black
Foreground
#000000black
#ffffffwhite
Card
#f3f3fcaliceblue
#05040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f7fdghostwhite
#030307black
Popover foreground
#000000black
#ffffffwhite
Primary
#0c0a29black
#0c0a29black
Primary foreground
#8b85e0mediumpurple
#8b85e0mediumpurple
Secondary
#27290ablack
#27290ablack
Secondary foreground
#c1cb34yellowgreen
#c1cb34yellowgreen
Muted
#e9ead6antiquewhite
#272915black
Muted foreground
#46463edarkslategray
#c0c1b9silver
Accent
#27290ablack
#27290ablack
Accent foreground
#c1cb34yellowgreen
#c1cb34yellowgreen
Destructive
#cc3314firebrick
#ed6145tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0a29black
#0c0a29black

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card18.99:1AAA
Primary button5.97:1AA
Secondary button8.47:1AAA
Muted text7.82:1AAA
Accent8.47:1AAA
Destructive5.17:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.38:1AAA
Primary button5.97:1AA
Secondary button8.47:1AAA
Muted text8.19:1AAA
Accent8.47:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.008 289.317);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.027 110.009);
  --muted-foreground: oklch(0.392 0.013 110.093);
  --popover: oklch(0.977 0.008 289.317);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.966 0.013 289.232);
  --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.172 0.059 281.125);
  --primary-foreground: oklch(0.662 0.132 285.226);
  --secondary: oklch(0.269 0.047 112.713);
  --secondary-foreground: oklch(0.808 0.165 113.404);
  --accent: oklch(0.269 0.047 112.713);
  --accent-foreground: oklch(0.808 0.165 113.404);
  --destructive: oklch(0.557 0.194 32.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.172 0.059 281.125);
  --chart-1: oklch(0.172 0.059 281.125);
  --chart-2: oklch(0.269 0.047 112.713);
  --chart-3: oklch(0.269 0.047 112.713);
  --chart-4: oklch(0.316 0.058 112.886);
  --chart-5: oklch(0.17 0.062 280.494);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.015 287.284);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.272 0.034 111.746);
  --muted-foreground: oklch(0.807 0.011 109.731);
  --popover: oklch(0.101 0.015 287.284);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.116 0.018 287.268);
  --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.172 0.059 281.125);
  --primary-foreground: oklch(0.662 0.132 285.226);
  --secondary: oklch(0.269 0.047 112.713);
  --secondary-foreground: oklch(0.808 0.165 113.404);
  --accent: oklch(0.269 0.047 112.713);
  --accent-foreground: oklch(0.808 0.165 113.404);
  --destructive: oklch(0.666 0.178 33.108);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.172 0.059 281.125);
  --chart-1: oklch(0.172 0.059 281.125);
  --chart-2: oklch(0.269 0.047 112.713);
  --chart-3: oklch(0.269 0.047 112.713);
  --chart-4: oklch(0.316 0.058 112.886);
  --chart-5: oklch(0.17 0.062 280.494);
}