Interesting Impression of Obscurity for shadcn/ui

Interesting Impression of Obscurity is a shadcn/ui theme built around a vivid blue primary color (#0d47a1) with vivid light blue accents (#82b1ff). The light mode uses a neutral background (#fffefe). Dark mode switches to a deep blue primary (#1a237e) on a neutral background (#121212).

Color palette

TokenLightDark
Background
#fffefewhite
#121212black
Foreground
#212121black
#e0e0e0gainsboro
Card
#f5f5f5whitesmoke
#1e1e1eblack
Card foreground
#212121black
#e0e0e0gainsboro
Popover
#e0e0e0gainsboro
#2c2c2cdarkslategray
Popover foreground
#212121black
#e0e0e0gainsboro
Primary
#0d47a1darkslateblue
#1a237emidnightblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9e9e9edarkgray
#546e7adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1f3f3whitesmoke
#757575gray
Muted foreground
#b0bec5silver
#9e9e9edarkgray
Accent
#82b1fflightskyblue
#64b5f6cornflowerblue
Accent foreground
#212121black
#ffffffwhite
Destructive
#d32f2fcrimson
#d32f2fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e0e0e0gainsboro
#2c2c2cdarkslategray
Input
#f5f5f5whitesmoke
#1e1e1eblack
Ring
#64b5f6cornflowerblue
#82b1fflightskyblue

Contrast

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

Light mode
Text on background15.98:1AAA
Text on card14.77:1AAA
Primary button8.63:1AAA
Secondary button2.67:1Fail
Muted text1.71:1Fail
Accent7.42:1AAA
Destructive4.97:1AA
Dark mode
Text on background14.19:1AAA
Text on card12.63:1AAA
Primary button13.24:1AAA
Secondary button5.40:1AA
Muted text1.71:1Fail
Accent2.21:1Fail
Destructive4.97:1AA

CSS variables

Paste this into your globals.css to use Interesting Impression of Obscurity in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.998 0.001 6.626);
  --foreground: oklch(0.248 0 180);
  --muted: oklch(0.964 0.002 186.53);
  --muted-foreground: oklch(0.793 0.018 229.071);
  --popover: oklch(0.907 0 180);
  --popover-foreground: oklch(0.248 0 180);
  --card: oklch(0.97 0 187.595);
  --card-foreground: oklch(0.248 0 180);
  --border: oklch(0.907 0 180);
  --input: oklch(0.97 0 187.595);
  --primary: oklch(0.422 0.157 259.916);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.699 0 169.695);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.759 0.124 260.183);
  --accent-foreground: oklch(0.248 0 180);
  --destructive: oklch(0.568 0.2 26.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.123 244.746);
  --chart-1: oklch(0.422 0.157 259.916);
  --chart-2: oklch(0.699 0 169.695);
  --chart-3: oklch(0.759 0.124 260.183);
  --chart-4: oklch(0.724 0 171.87);
  --chart-5: oklch(0.422 0.162 260.087);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.182 0 169.695);
  --foreground: oklch(0.907 0 180);
  --muted: oklch(0.562 0 135);
  --muted-foreground: oklch(0.699 0 169.695);
  --popover: oklch(0.293 0 180);
  --popover-foreground: oklch(0.907 0 180);
  --card: oklch(0.235 0 180);
  --card-foreground: oklch(0.907 0 180);
  --border: oklch(0.293 0 180);
  --input: oklch(0.235 0 180);
  --primary: oklch(0.321 0.151 270.289);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.522 0.036 227.886);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.748 0.123 244.746);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.568 0.2 26.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.759 0.124 260.183);
  --chart-1: oklch(0.321 0.151 270.289);
  --chart-2: oklch(0.522 0.036 227.886);
  --chart-3: oklch(0.748 0.123 244.746);
  --chart-4: oklch(0.549 0.038 227.898);
  --chart-5: oklch(0.319 0.157 269.622);
}