Bright Midnight Wildfowl for shadcn/ui

Bright Midnight Wildfowl is a shadcn/ui theme built around a vivid deep blue primary color (#02178d) with vivid deep yellow accents (#8d7802). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#02178d) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#ffffffwhite
#020308black
Foreground
#030616black
#f4f5fawhitesmoke
Card
#ffffffwhite
#020308black
Card foreground
#030616black
#f4f5fawhitesmoke
Popover
#ffffffwhite
#020308black
Popover foreground
#030616black
#f4f5fawhitesmoke
Primary
#02178ddarkblue
#02178ddarkblue
Primary foreground
#c3ccfelightblue
#c3ccfelightblue
Secondary
#8d7802olive
#8d7802olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9e7d8antiquewhite
#272516black
Muted foreground
#55534adarkolivegreen
#b5b4aadarkgray
Accent
#8d7802olive
#8d7802olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e24603orangered
#fb550eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f1f1f3whitesmoke
#23242adarkslategray
Input
#f1f1f3whitesmoke
#23242adarkslategray
Ring
#02178ddarkblue
#02178ddarkblue

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button8.88:1AAA
Secondary button4.36:1AA Large
Muted text6.18:1AA
Accent4.36:1AA Large
Destructive4.10:1AA Large
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button8.88:1AAA
Secondary button4.36:1AA Large
Muted text7.39:1AAA
Accent4.36:1AA Large
Destructive3.26:1AA Large

CSS variables

Paste this into your globals.css to use Bright Midnight Wildfowl in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.037 269.373);
  --muted: oklch(0.925 0.02 98.617);
  --muted-foreground: oklch(0.441 0.015 98.774);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.037 269.373);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.037 269.373);
  --border: oklch(0.96 0.003 278.278);
  --input: oklch(0.96 0.003 278.278);
  --primary: oklch(0.311 0.187 264.583);
  --primary-foreground: oklch(0.854 0.071 276.97);
  --secondary: oklch(0.575 0.118 96.894);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.118 96.894);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.202 37.482);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.311 0.187 264.583);
  --chart-1: oklch(0.311 0.187 264.583);
  --chart-2: oklch(0.575 0.118 96.894);
  --chart-3: oklch(0.575 0.118 96.894);
  --chart-4: oklch(0.618 0.127 96.769);
  --chart-5: oklch(0.312 0.191 264.168);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.018 271.476);
  --foreground: oklch(0.972 0.007 278.216);
  --muted: oklch(0.262 0.026 99.403);
  --muted-foreground: oklch(0.768 0.013 98.556);
  --popover: oklch(0.1 0.018 271.476);
  --popover-foreground: oklch(0.972 0.007 278.216);
  --card: oklch(0.1 0.018 271.476);
  --card-foreground: oklch(0.972 0.007 278.216);
  --border: oklch(0.261 0.011 277.672);
  --input: oklch(0.261 0.011 277.672);
  --primary: oklch(0.311 0.187 264.583);
  --primary-foreground: oklch(0.854 0.071 276.97);
  --secondary: oklch(0.575 0.118 96.894);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.118 96.894);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.67 0.213 38.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.311 0.187 264.583);
  --chart-1: oklch(0.311 0.187 264.583);
  --chart-2: oklch(0.575 0.118 96.894);
  --chart-3: oklch(0.575 0.118 96.894);
  --chart-4: oklch(0.618 0.127 96.769);
  --chart-5: oklch(0.312 0.191 264.168);
}