Trapped Darkness Warbler for shadcn/ui

Trapped Darkness Warbler is a shadcn/ui theme built around a deep blue primary color (#0b192d) with muted light blue accents (#b7c2d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0b192d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020508black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#020508black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020508black
#ffffffwhite
Primary
#0b192dblack
#0b192dblack
Primary foreground
#87ace3skyblue
#87ace3skyblue
Secondary
#d0d5dclightgrey
#202327darkslategray
Secondary foreground
#343b46darkslategray
#b6bbc3silver
Muted
#ecedeewhitesmoke
#111213black
Muted foreground
#555f6ddimgray
#929caadarkgray
Accent
#b7c2d1lightsteelblue
#2f3641darkslategray
Accent foreground
#222935darkslategray
#cad0d8lightgrey
Destructive
#ca1b12firebrick
#e11e14crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f2f2f3whitesmoke
#252627darkslategray
Input
#f2f2f3whitesmoke
#252627darkslategray
Ring
#0b192dblack
#0b192dblack

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.61:1AAA
Secondary button7.65:1AAA
Muted text5.52:1AA
Accent8.10:1AAA
Destructive5.72:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.61:1AAA
Secondary button8.17:1AAA
Muted text6.76:1AA
Accent7.81:1AAA
Destructive4.76:1AA

CSS variables

Paste this into your globals.css to use Trapped Darkness Warbler in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.109 0.013 250.464);
  --muted: oklch(0.946 0.002 258.317);
  --muted-foreground: oklch(0.481 0.025 258.372);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.109 0.013 250.464);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.109 0.013 250.464);
  --border: oklch(0.962 0.001 258.314);
  --input: oklch(0.962 0.001 258.314);
  --primary: oklch(0.212 0.046 258.309);
  --primary-foreground: oklch(0.738 0.09 258.312);
  --secondary: oklch(0.871 0.011 258.343);
  --secondary-foreground: oklch(0.351 0.022 258.369);
  --accent: oklch(0.81 0.025 258.366);
  --accent-foreground: oklch(0.281 0.024 258.352);
  --destructive: oklch(0.536 0.207 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.046 258.309);
  --chart-1: oklch(0.212 0.046 258.309);
  --chart-2: oklch(0.871 0.011 258.343);
  --chart-3: oklch(0.81 0.025 258.366);
  --chart-4: oklch(0.896 0.009 258.337);
  --chart-5: oklch(0.211 0.048 258.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.18 0.002 258.344);
  --muted-foreground: oklch(0.689 0.023 258.368);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.268 0.003 258.338);
  --input: oklch(0.268 0.003 258.338);
  --primary: oklch(0.212 0.046 258.309);
  --primary-foreground: oklch(0.738 0.09 258.312);
  --secondary: oklch(0.255 0.009 258.369);
  --secondary-foreground: oklch(0.791 0.013 258.348);
  --accent: oklch(0.332 0.021 258.368);
  --accent-foreground: oklch(0.855 0.014 258.348);
  --destructive: oklch(0.581 0.225 29.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.046 258.309);
  --chart-1: oklch(0.212 0.046 258.309);
  --chart-2: oklch(0.255 0.009 258.369);
  --chart-3: oklch(0.332 0.021 258.368);
  --chart-4: oklch(0.286 0.011 258.37);
  --chart-5: oklch(0.211 0.048 258.332);
}