Subnautical Shrew for shadcn/ui

Subnautical Shrew is a shadcn/ui theme built around a vivid deep blue primary color (#032554) with muted light blue accents (#c8d0da). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid deep blue primary (#032554) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#010204black
Foreground
#020508black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#010204black
Card foreground
#020508black
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#010204black
Popover foreground
#020508black
#fcfcfdwhite
Primary
#032554midnightblue
#032554midnightblue
Primary foreground
#8ebbfblightskyblue
#8ebbfblightskyblue
Secondary
#c8d0dalightgrey
#141414black
Secondary foreground
#2d3643darkslategray
#adadaddarkgray
Muted
#e3e7edlavender
#1c1212black
Muted foreground
#555f6ddimgray
#aa9292rosybrown
Accent
#c8d0dalightgrey
#141414black
Accent foreground
#2d3643darkslategray
#adadaddarkgray
Destructive
#d23804orangered
#fb5d28tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#ebedeflavender
#22252bdarkslategray
Input
#ebedeflavender
#22252bdarkslategray
Ring
#032554midnightblue
#032554midnightblue

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button7.65:1AAA
Secondary button7.82:1AAA
Muted text5.22:1AA
Accent7.82:1AAA
Destructive4.88:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button7.65:1AAA
Secondary button8.18:1AAA
Muted text6.31:1AA
Accent8.18:1AAA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 256.674);
  --foreground: oklch(0.11 0.013 248.633);
  --muted: oklch(0.927 0.009 256.689);
  --muted-foreground: oklch(0.482 0.025 256.792);
  --popover: oklch(0.982 0.005 256.674);
  --popover-foreground: oklch(0.11 0.013 248.633);
  --card: oklch(0.982 0.005 256.674);
  --card-foreground: oklch(0.11 0.013 248.633);
  --border: oklch(0.945 0.004 256.669);
  --input: oklch(0.945 0.004 256.669);
  --primary: oklch(0.272 0.094 257.948);
  --primary-foreground: oklch(0.785 0.104 256.873);
  --secondary: oklch(0.854 0.016 256.72);
  --secondary-foreground: oklch(0.331 0.025 256.821);
  --accent: oklch(0.854 0.016 256.72);
  --accent-foreground: oklch(0.331 0.025 256.821);
  --destructive: oklch(0.571 0.197 35.177);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.094 257.948);
  --chart-1: oklch(0.272 0.094 257.948);
  --chart-2: oklch(0.854 0.016 256.72);
  --chart-3: oklch(0.854 0.016 256.72);
  --chart-4: oklch(0.879 0.013 256.709);
  --chart-5: oklch(0.272 0.097 257.917);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 250.198);
  --foreground: oklch(0.992 0.001 256.655);
  --muted: oklch(0.195 0.016 18.632);
  --muted-foreground: oklch(0.682 0.028 17.856);
  --popover: oklch(0.088 0.008 250.198);
  --popover-foreground: oklch(0.992 0.001 256.655);
  --card: oklch(0.088 0.008 250.198);
  --card-foreground: oklch(0.992 0.001 256.655);
  --border: oklch(0.265 0.011 256.777);
  --input: oklch(0.265 0.011 256.777);
  --primary: oklch(0.272 0.094 257.948);
  --primary-foreground: oklch(0.785 0.104 256.873);
  --secondary: oklch(0.193 0 164.055);
  --secondary-foreground: oklch(0.749 0 158.199);
  --accent: oklch(0.193 0 164.055);
  --accent-foreground: oklch(0.749 0 158.199);
  --destructive: oklch(0.679 0.203 37.508);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.272 0.094 257.948);
  --chart-1: oklch(0.272 0.094 257.948);
  --chart-2: oklch(0.193 0 164.055);
  --chart-3: oklch(0.193 0 164.055);
  --chart-4: oklch(0.227 0 164.055);
  --chart-5: oklch(0.272 0.097 257.917);
}