Night Owl Theme for shadcn/ui

Night Owl Theme is a shadcn/ui theme built around a vivid orange primary color (#fa7c42) with vivid deep blue accents (#034072). The light mode uses a blue-tinted background (#011628). Dark mode keeps the vivid orange primary (#fa7c42) on a blue-tinted background (#011628).

Color palette

TokenLightDark
Background
#011628black
#011628black
Foreground
#d6deebgainsboro
#d6deebgainsboro
Card
#01111eblack
#01111eblack
Card foreground
#e7ecf3lavender
#e7ecf3lavender
Popover
#010e19black
#010e19black
Popover foreground
#f8f9fcghostwhite
#f8f9fcghostwhite
Primary
#fa7c42coral
#fa7c42coral
Primary foreground
#0a0300black
#0a0300black
Secondary
#53392ddarkolivegreen
#53392ddarkolivegreen
Secondary foreground
#e4d5cdlightgrey
#e4d5cdlightgrey
Muted
#22272bdarkslategray
#22272bdarkslategray
Muted foreground
#9ba7b0darkgray
#9ba7b0darkgray
Accent
#034072midnightblue
#034072midnightblue
Accent foreground
#aad8fdlightblue
#aad8fdlightblue
Destructive
#ee3611orangered
#ee3611orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#05243dmidnightblue
#05243dmidnightblue
Input
#062c4bmidnightblue
#062c4bmidnightblue
Ring
#fa7c42coral
#fa7c42coral

Contrast

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

Light mode
Text on background13.49:1AAA
Text on card16.10:1AAA
Primary button7.84:1AAA
Secondary button7.40:1AAA
Muted text6.15:1AA
Accent7.02:1AAA
Destructive4.05:1AA Large
Dark mode
Text on background13.49:1AAA
Text on card16.10:1AAA
Primary button7.84:1AAA
Secondary button7.40:1AAA
Muted text6.15:1AA
Accent7.02:1AAA
Destructive4.05:1AA Large

CSS variables

Paste this into your globals.css to use Night Owl Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.194 0.046 244.378);
  --foreground: oklch(0.898 0.02 259.946);
  --muted: oklch(0.268 0.011 242.723);
  --muted-foreground: oklch(0.722 0.019 242.55);
  --popover: oklch(0.156 0.033 239.225);
  --popover-foreground: oklch(0.983 0.003 259.937);
  --card: oklch(0.169 0.037 241.449);
  --card-foreground: oklch(0.941 0.011 259.944);
  --border: oklch(0.253 0.06 247.496);
  --input: oklch(0.287 0.07 248.306);
  --primary: oklch(0.723 0.17 43.717);
  --primary-foreground: oklch(0.113 0.024 63.064);
  --secondary: oklch(0.37 0.043 45.807);
  --secondary-foreground: oklch(0.882 0.02 46.611);
  --accent: oklch(0.367 0.103 250.423);
  --accent-foreground: oklch(0.862 0.07 243.356);
  --destructive: oklch(0.619 0.224 32.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.723 0.17 43.717);
  --chart-1: oklch(0.723 0.17 43.717);
  --chart-2: oklch(0.37 0.043 45.807);
  --chart-3: oklch(0.367 0.103 250.423);
  --chart-4: oklch(0.399 0.047 45.786);
  --chart-5: oklch(0.725 0.175 43.52);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.194 0.046 244.378);
  --foreground: oklch(0.898 0.02 259.946);
  --muted: oklch(0.268 0.011 242.723);
  --muted-foreground: oklch(0.722 0.019 242.55);
  --popover: oklch(0.156 0.033 239.225);
  --popover-foreground: oklch(0.983 0.003 259.937);
  --card: oklch(0.169 0.037 241.449);
  --card-foreground: oklch(0.941 0.011 259.944);
  --border: oklch(0.253 0.06 247.496);
  --input: oklch(0.287 0.07 248.306);
  --primary: oklch(0.723 0.17 43.717);
  --primary-foreground: oklch(0.113 0.024 63.064);
  --secondary: oklch(0.37 0.043 45.807);
  --secondary-foreground: oklch(0.882 0.02 46.611);
  --accent: oklch(0.367 0.103 250.423);
  --accent-foreground: oklch(0.862 0.07 243.356);
  --destructive: oklch(0.619 0.224 32.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.723 0.17 43.717);
  --chart-1: oklch(0.723 0.17 43.717);
  --chart-2: oklch(0.37 0.043 45.807);
  --chart-3: oklch(0.367 0.103 250.423);
  --chart-4: oklch(0.399 0.047 45.786);
  --chart-5: oklch(0.725 0.175 43.52);
}