Base16 Dark Oceanic Next for shadcn/ui

Base16 Dark Oceanic Next is a shadcn/ui theme built around a muted light blue primary color (#c0c5ce) with blue accents (#345365). The light mode uses a blue-tinted background (#1a2a32). Dark mode keeps the muted light blue primary (#c0c5ce) on a blue-tinted background (#1a2a32).

Color palette

TokenLightDark
Background
#1a2a32darkslategray
#1a2a32darkslategray
Foreground
#c0c5cesilver
#c0c5cesilver
Card
#17242cdarkslategray
#17242cdarkslategray
Card foreground
#ced2d9lightgrey
#ced2d9lightgrey
Popover
#152128black
#152128black
Popover foreground
#dcdfe4gainsboro
#dcdfe4gainsboro
Primary
#c0c5cesilver
#c0c5cesilver
Primary foreground
#282c33darkslategray
#282c33darkslategray
Secondary
#3e3f41darkslategray
#3e3f41darkslategray
Secondary foreground
#d8d9dagainsboro
#d8d9dagainsboro
Muted
#2b3236darkslategray
#2b3236darkslategray
Muted foreground
#a6b2b9darkgray
#a6b2b9darkgray
Accent
#345365darkslategray
#345365darkslategray
Accent foreground
#dde8eelavender
#dde8eelavender
Destructive
#d22d14firebrick
#d22d14firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#28363edarkslategray
#28363edarkslategray
Input
#2e3e48darkslategray
#2e3e48darkslategray
Ring
#c0c5cesilver
#c0c5cesilver

Contrast

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

Light mode
Text on background8.56:1AAA
Text on card10.46:1AAA
Primary button8.08:1AAA
Secondary button7.41:1AAA
Muted text6.01:1AA
Accent6.55:1AA
Destructive5.09:1AA
Dark mode
Text on background8.56:1AAA
Text on card10.46:1AAA
Primary button8.08:1AAA
Secondary button7.41:1AAA
Muted text6.01:1AA
Accent6.55:1AA
Destructive5.09:1AA

CSS variables

Paste this into your globals.css to use Base16 Dark Oceanic Next in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.273 0.027 234.461);
  --foreground: oklch(0.822 0.013 263.019);
  --muted: oklch(0.312 0.013 233.21);
  --muted-foreground: oklch(0.758 0.017 232.903);
  --popover: oklch(0.241 0.022 234.311);
  --popover-foreground: oklch(0.904 0.008 263.038);
  --card: oklch(0.252 0.024 234.366);
  --card-foreground: oklch(0.863 0.011 263.028);
  --border: oklch(0.324 0.024 233.864);
  --input: oklch(0.354 0.027 233.909);
  --primary: oklch(0.822 0.013 263.019);
  --primary-foreground: oklch(0.293 0.014 262.899);
  --secondary: oklch(0.369 0.003 263.038);
  --secondary-foreground: oklch(0.884 0.001 263.051);
  --accent: oklch(0.426 0.047 234.854);
  --accent-foreground: oklch(0.924 0.014 232.793);
  --destructive: oklch(0.562 0.204 31.537);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.822 0.013 263.019);
  --chart-1: oklch(0.822 0.013 263.019);
  --chart-2: oklch(0.369 0.003 263.038);
  --chart-3: oklch(0.426 0.047 234.854);
  --chart-4: oklch(0.398 0.003 263.038);
  --chart-5: oklch(0.82 0.017 263.007);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.273 0.027 234.461);
  --foreground: oklch(0.822 0.013 263.019);
  --muted: oklch(0.312 0.013 233.21);
  --muted-foreground: oklch(0.758 0.017 232.903);
  --popover: oklch(0.241 0.022 234.311);
  --popover-foreground: oklch(0.904 0.008 263.038);
  --card: oklch(0.252 0.024 234.366);
  --card-foreground: oklch(0.863 0.011 263.028);
  --border: oklch(0.324 0.024 233.864);
  --input: oklch(0.354 0.027 233.909);
  --primary: oklch(0.822 0.013 263.019);
  --primary-foreground: oklch(0.293 0.014 262.899);
  --secondary: oklch(0.369 0.003 263.038);
  --secondary-foreground: oklch(0.884 0.001 263.051);
  --accent: oklch(0.426 0.047 234.854);
  --accent-foreground: oklch(0.924 0.014 232.793);
  --destructive: oklch(0.562 0.204 31.537);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.822 0.013 263.019);
  --chart-1: oklch(0.822 0.013 263.019);
  --chart-2: oklch(0.369 0.003 263.038);
  --chart-3: oklch(0.426 0.047 234.854);
  --chart-4: oklch(0.398 0.003 263.038);
  --chart-5: oklch(0.82 0.017 263.007);
}