Apnea Dive Shrew for shadcn/ui

Apnea Dive Shrew is a shadcn/ui theme built around a blue primary color (#214cba) with yellow accents (#ba8f21). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#214cba) on a blue-tinted background (#040810).

Color palette

TokenLightDark
Background
#fbfcfewhite
#040810black
Foreground
#000000black
#fcfcfdwhite
Card
#f7f8fdghostwhite
#050914black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f8fdghostwhite
#050914black
Popover foreground
#000000black
#ffffffwhite
Primary
#214cbaroyalblue
#214cbaroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ba8f21darkgoldenrod
#ba8f21darkgoldenrod
Secondary foreground
#0d0a02black
#0d0a02black
Muted
#f4f1eclinen
#13110bblack
Muted foreground
#575247darkolivegreen
#b8b3a8darkgray
Accent
#ba8f21darkgoldenrod
#ba8f21darkgoldenrod
Accent foreground
#0d0a02black
#0d0a02black
Destructive
#b32705firebrick
#f94f24orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e3e5e8gainsboro
#202227black
Input
#e3e5e8gainsboro
#202227black
Ring
#214cbaroyalblue
#214cbaroyalblue

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card19.84:1AAA
Primary button7.44:1AAA
Secondary button6.63:1AA
Muted text6.90:1AA
Accent6.63:1AA
Destructive6.53:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.85:1AAA
Primary button7.44:1AAA
Secondary button6.63:1AA
Muted text9.02:1AAA
Accent6.63:1AA
Destructive3.39:1AA Large

CSS variables

Paste this into your globals.css to use Apnea Dive Shrew in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 268.767);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.008 88.844);
  --muted-foreground: oklch(0.441 0.019 88.994);
  --popover: oklch(0.98 0.007 268.743);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 268.743);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.92 0.005 268.756);
  --input: oklch(0.92 0.005 268.756);
  --primary: oklch(0.46 0.18 264.095);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.129 84.958);
  --secondary-foreground: oklch(0.145 0.021 94.181);
  --accent: oklch(0.673 0.129 84.958);
  --accent-foreground: oklch(0.145 0.021 94.181);
  --destructive: oklch(0.501 0.18 33.41);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.18 264.095);
  --chart-1: oklch(0.46 0.18 264.095);
  --chart-2: oklch(0.673 0.129 84.958);
  --chart-3: oklch(0.673 0.129 84.958);
  --chart-4: oklch(0.708 0.135 84.885);
  --chart-5: oklch(0.459 0.187 263.952);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.022 262.178);
  --foreground: oklch(0.992 0.001 268.785);
  --muted: oklch(0.178 0.012 89.012);
  --muted-foreground: oklch(0.768 0.017 88.916);
  --popover: oklch(0.143 0.026 263.835);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.026 263.835);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.009 268.503);
  --input: oklch(0.253 0.009 268.503);
  --primary: oklch(0.46 0.18 264.095);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.129 84.958);
  --secondary-foreground: oklch(0.145 0.021 94.181);
  --accent: oklch(0.673 0.129 84.958);
  --accent-foreground: oklch(0.145 0.021 94.181);
  --destructive: oklch(0.662 0.214 34.581);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.18 264.095);
  --chart-1: oklch(0.46 0.18 264.095);
  --chart-2: oklch(0.673 0.129 84.958);
  --chart-3: oklch(0.673 0.129 84.958);
  --chart-4: oklch(0.708 0.135 84.885);
  --chart-5: oklch(0.459 0.187 263.952);
}