Spontaneous Havana Blue for shadcn/ui

Spontaneous Havana Blue is a shadcn/ui theme built around a vivid light blue primary color (#c3d7ff) with near-white accents (#ededed). The light mode uses a neutral background (#ffffff). Dark mode switches to a light cyan primary (#a4d9e4) on a teal-tinted background (#050f0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0eblack
Foreground
#010504black
#fcfdfdwhite
Card
#ffffffwhite
#050f0eblack
Card foreground
#010504black
#fcfdfdwhite
Popover
#ffffffwhite
#050f0eblack
Popover foreground
#010504black
#fcfdfdwhite
Primary
#c3d7ffpowderblue
#a4d9e4lightblue
Primary foreground
#000000black
#000000black
Secondary
#dceceflavender
#2c3a38darkslategray
Secondary foreground
#313534darkslategray
#c5d3d1lightgrey
Muted
#dfe7e6gainsboro
#18201fblack
Muted foreground
#445a57darkslategray
#a5bbb8darkgray
Accent
#edededwhitesmoke
#202b29darkslategray
Accent foreground
#1f2827darkslategray
#d5e2e0gainsboro
Destructive
#e91c11red
#ff1509red
Destructive foreground
#fff9f8snow
#ffffffwhite
Border
#eef1f1whitesmoke
#202826darkslategray
Input
#eef1f1whitesmoke
#202826darkslategray
Ring
#238677seagreen
#238677seagreen

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button14.48:1AAA
Secondary button10.25:1AAA
Muted text5.86:1AA
Accent12.93:1AAA
Destructive4.33:1AA Large
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button13.60:1AAA
Secondary button7.72:1AAA
Muted text8.22:1AAA
Accent10.95:1AAA
Destructive3.91:1AA Large

CSS variables

Paste this into your globals.css to use Spontaneous Havana Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.015 186.059);
  --muted: oklch(0.921 0.009 186.358);
  --muted-foreground: oklch(0.449 0.027 184.957);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.015 186.059);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.015 186.059);
  --border: oklch(0.957 0.004 186.498);
  --input: oklch(0.957 0.004 186.498);
  --primary: oklch(0.877 0.06 264.202);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.933 0.017 211.041);
  --secondary-foreground: oklch(0.324 0.004 186.255);
  --accent: oklch(0.947 0 158.199);
  --accent-foreground: oklch(0.268 0.012 185.389);
  --destructive: oklch(0.595 0.233 29.417);
  --destructive-foreground: oklch(0.986 0.007 20.977);
  --ring: oklch(0.56 0.091 180.437);
  --chart-1: oklch(0.877 0.06 264.202);
  --chart-2: oklch(0.933 0.017 211.041);
  --chart-3: oklch(0.947 0 158.199);
  --chart-4: oklch(0.953 0.012 211.038);
  --chart-5: oklch(0.876 0.061 264.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.017 184.488);
  --foreground: oklch(0.993 0.001 186.58);
  --muted: oklch(0.235 0.012 185.294);
  --muted-foreground: oklch(0.774 0.025 185.768);
  --popover: oklch(0.159 0.017 184.488);
  --popover-foreground: oklch(0.993 0.001 186.58);
  --card: oklch(0.159 0.017 184.488);
  --card-foreground: oklch(0.993 0.001 186.58);
  --border: oklch(0.267 0.011 185.486);
  --input: oklch(0.267 0.011 185.486);
  --primary: oklch(0.852 0.057 211.269);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.334 0.018 185.179);
  --secondary-foreground: oklch(0.855 0.015 186.157);
  --accent: oklch(0.279 0.016 185.07);
  --accent-foreground: oklch(0.902 0.015 186.176);
  --destructive: oklch(0.633 0.253 29.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.56 0.091 180.437);
  --chart-1: oklch(0.852 0.057 211.269);
  --chart-2: oklch(0.334 0.018 185.179);
  --chart-3: oklch(0.279 0.016 185.07);
  --chart-4: oklch(0.366 0.02 185.14);
  --chart-5: oklch(0.854 0.059 211.3);
}