Vague Blue Gourami for shadcn/ui

Vague Blue Gourami is a shadcn/ui theme built around a blue primary color (#6aa3dc) with indigo accents (#6a6adc). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#6aa3dc) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#ffffffwhite
#020508black
Foreground
#030a11black
#f8fafbghostwhite
Card
#ffffffwhite
#020508black
Card foreground
#030a11black
#f8fafbghostwhite
Popover
#ffffffwhite
#020508black
Popover foreground
#030a11black
#f8fafbghostwhite
Primary
#6aa3dccornflowerblue
#6aa3dccornflowerblue
Primary foreground
#040a11black
#040a11black
Secondary
#6adcdcskyblue
#6adcdcskyblue
Secondary foreground
#041111black
#041111black
Muted
#e4e7e7gainsboro
#181b1bblack
Muted foreground
#425757darkslategray
#a8bdbdsilver
Accent
#6a6adcslateblue
#6a6adcslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb1501firebrick
#ef1901red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e9ebeclavender
#1f2123black
Input
#e9ebeclavender
#1f2123black
Ring
#6aa3dccornflowerblue
#6aa3dccornflowerblue

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.48:1AAA
Secondary button11.79:1AAA
Muted text6.17:1AA
Accent4.44:1AA Large
Destructive5.75:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.48:1AAA
Secondary button11.79:1AAA
Muted text8.81:1AAA
Accent4.44:1AA Large
Destructive4.38:1AA Large

CSS variables

Paste this into your globals.css to use Vague Blue Gourami in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.02 242.997);
  --muted: oklch(0.926 0.003 197.1);
  --muted-foreground: oklch(0.44 0.026 196.241);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.02 242.997);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.02 242.997);
  --border: oklch(0.938 0.002 247.845);
  --input: oklch(0.938 0.002 247.845);
  --primary: oklch(0.7 0.103 249.498);
  --primary-foreground: oklch(0.141 0.019 243.364);
  --secondary: oklch(0.829 0.104 195.34);
  --secondary-foreground: oklch(0.163 0.02 195.381);
  --accent: oklch(0.583 0.169 279.774);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.535 0.211 30.426);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.103 249.498);
  --chart-1: oklch(0.7 0.103 249.498);
  --chart-2: oklch(0.829 0.104 195.34);
  --chart-3: oklch(0.583 0.169 279.774);
  --chart-4: oklch(0.841 0.097 195.463);
  --chart-5: oklch(0.7 0.108 249.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.012 240.18);
  --foreground: oklch(0.984 0.002 247.847);
  --muted: oklch(0.219 0.005 196.818);
  --muted-foreground: oklch(0.783 0.023 196.682);
  --popover: oklch(0.112 0.012 240.18);
  --popover-foreground: oklch(0.984 0.002 247.847);
  --card: oklch(0.112 0.012 240.18);
  --card-foreground: oklch(0.984 0.002 247.847);
  --border: oklch(0.247 0.005 248.022);
  --input: oklch(0.247 0.005 248.022);
  --primary: oklch(0.7 0.103 249.498);
  --primary-foreground: oklch(0.141 0.019 243.364);
  --secondary: oklch(0.829 0.104 195.34);
  --secondary-foreground: oklch(0.163 0.02 195.381);
  --accent: oklch(0.583 0.169 279.774);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.603 0.239 30.293);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.103 249.498);
  --chart-1: oklch(0.7 0.103 249.498);
  --chart-2: oklch(0.829 0.104 195.34);
  --chart-3: oklch(0.583 0.169 279.774);
  --chart-4: oklch(0.841 0.097 195.463);
  --chart-5: oklch(0.7 0.108 249.606);
}