Midnight Edition Ocelot for shadcn/ui

Midnight Edition Ocelot is a shadcn/ui theme built around a deep blue primary color (#111722) with deep indigo accents (#131122). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#111722) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#fbfcfewhite
#04070bblack
Foreground
#060b14black
#f8fafbghostwhite
Card
#f8f9fcghostwhite
#05090fblack
Card foreground
#050910black
#fcfcfdwhite
Popover
#fbfcfewhite
#04070bblack
Popover foreground
#060b14black
#f8fafbghostwhite
Primary
#111722black
#111722black
Primary foreground
#98accdlightsteelblue
#98accdlightsteelblue
Secondary
#112022black
#112022black
Secondary foreground
#98c7cdlightsteelblue
#98c7cdlightsteelblue
Muted
#e3ecedlavender
#121b1cblack
Muted foreground
#626464dimgray
#9b9c9ddarkgray
Accent
#131122black
#112022black
Accent foreground
#9e98cddarkgray
#9e98cddarkgray
Destructive
#75180amaroon
#d32c12firebrick
Destructive foreground
#f9c1b9lightpink
#ffffffwhite
Border
#eff0f0whitesmoke
#5dcecemediumturquoise
Input
#eff0f0whitesmoke
#202122black
Ring
#111722black
#111722black

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card18.96:1AAA
Primary button7.77:1AAA
Secondary button9.05:1AAA
Muted text4.96:1AA
Accent6.93:1AA
Destructive7.03:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.45:1AAA
Primary button7.77:1AAA
Secondary button9.05:1AAA
Muted text6.36:1AA
Accent6.24:1AA
Destructive5.06:1AA

CSS variables

Paste this into your globals.css to use Midnight Edition Ocelot in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 259.936);
  --foreground: oklch(0.149 0.02 257.465);
  --muted: oklch(0.937 0.01 206.378);
  --muted-foreground: oklch(0.502 0.002 206.414);
  --popover: oklch(0.991 0.002 259.936);
  --popover-foreground: oklch(0.149 0.02 257.465);
  --card: oklch(0.983 0.004 259.939);
  --card-foreground: oklch(0.138 0.017 254.887);
  --border: oklch(0.954 0.001 259.935);
  --input: oklch(0.954 0.001 259.935);
  --primary: oklch(0.205 0.024 259.738);
  --primary-foreground: oklch(0.741 0.053 259.873);
  --secondary: oklch(0.232 0.022 206.407);
  --secondary-foreground: oklch(0.798 0.05 206.262);
  --accent: oklch(0.188 0.036 287.803);
  --accent-foreground: oklch(0.704 0.078 289.584);
  --destructive: oklch(0.371 0.129 31.643);
  --destructive-foreground: oklch(0.859 0.065 28.516);
  --ring: oklch(0.205 0.024 259.738);
  --chart-1: oklch(0.205 0.024 259.738);
  --chart-2: oklch(0.232 0.022 206.407);
  --chart-3: oklch(0.188 0.036 287.803);
  --chart-4: oklch(0.269 0.027 206.467);
  --chart-5: oklch(0.204 0.027 259.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 253.02);
  --foreground: oklch(0.983 0.003 259.937);
  --muted: oklch(0.214 0.014 206.264);
  --muted-foreground: oklch(0.692 0.002 206.422);
  --popover: oklch(0.125 0.014 253.02);
  --popover-foreground: oklch(0.983 0.003 259.937);
  --card: oklch(0.138 0.016 255.251);
  --card-foreground: oklch(0.992 0.001 259.935);
  --border: oklch(0.787 0.102 195.273);
  --input: oklch(0.247 0.003 259.945);
  --primary: oklch(0.205 0.024 259.738);
  --primary-foreground: oklch(0.741 0.053 259.873);
  --secondary: oklch(0.232 0.022 206.407);
  --secondary-foreground: oklch(0.798 0.05 206.262);
  --accent: oklch(0.231 0.021 206.479);
  --accent-foreground: oklch(0.704 0.078 289.584);
  --destructive: oklch(0.564 0.205 31.508);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.205 0.024 259.738);
  --chart-1: oklch(0.205 0.024 259.738);
  --chart-2: oklch(0.232 0.022 206.407);
  --chart-3: oklch(0.231 0.021 206.479);
  --chart-4: oklch(0.269 0.027 206.467);
  --chart-5: oklch(0.204 0.027 259.705);
}