Blaring for shadcn/ui

Blaring is a shadcn/ui theme built around a vivid deep blue primary color (#030d54) with vivid deep yellow accents (#544903). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#030d54) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020308black
Foreground
#05060fblack
#fcfcfdwhite
Card
#f8f8fcghostwhite
#03050cblack
Card foreground
#04050bblack
#ffffffwhite
Popover
#f8f8fcghostwhite
#03050cblack
Popover foreground
#04050bblack
#ffffffwhite
Primary
#030d54midnightblue
#030d54midnightblue
Primary foreground
#8d9cfbcornflowerblue
#8d9cfbcornflowerblue
Secondary
#544903darkolivegreen
#544903darkolivegreen
Secondary foreground
#f8dd2agold
#f8dd2agold
Muted
#f6f5efwhitesmoke
#100f09black
Muted foreground
#686550dimgray
#afac97darkgray
Accent
#544903darkolivegreen
#544903darkolivegreen
Accent foreground
#f8dd2agold
#f8dd2agold
Destructive
#682608maroon
#e45411chocolate
Destructive foreground
#f9c3aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030d54midnightblue
#030d54midnightblue

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.23:1AAA
Primary button6.94:1AA
Secondary button6.57:1AA
Muted text5.38:1AA
Accent6.57:1AA
Destructive7.14:1AAA
Dark mode
Text on background20.08:1AAA
Text on card20.39:1AAA
Primary button6.94:1AA
Secondary button6.57:1AA
Muted text8.36:1AAA
Accent6.57:1AA
Destructive3.77:1AA Large

CSS variables

Paste this into your globals.css to use Blaring in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 279.302);
  --foreground: oklch(0.129 0.021 274.357);
  --muted: oklch(0.969 0.008 99.462);
  --muted-foreground: oklch(0.502 0.032 100.168);
  --popover: oklch(0.981 0.005 279.261);
  --popover-foreground: oklch(0.117 0.018 273.996);
  --card: oklch(0.981 0.005 279.261);
  --card-foreground: oklch(0.117 0.018 273.996);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.223 0.125 265.429);
  --primary-foreground: oklch(0.721 0.14 275.697);
  --secondary: oklch(0.405 0.083 99.327);
  --secondary-foreground: oklch(0.893 0.177 99.587);
  --accent: oklch(0.405 0.083 99.327);
  --accent-foreground: oklch(0.893 0.177 99.587);
  --destructive: oklch(0.363 0.103 41.623);
  --destructive-foreground: oklch(0.858 0.071 46.087);
  --ring: oklch(0.223 0.125 265.429);
  --chart-1: oklch(0.223 0.125 265.429);
  --chart-2: oklch(0.405 0.083 99.327);
  --chart-3: oklch(0.405 0.083 99.327);
  --chart-4: oklch(0.453 0.093 99.1);
  --chart-5: oklch(0.223 0.128 264.756);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.017 273.175);
  --foreground: oklch(0.991 0.002 279.309);
  --muted: oklch(0.169 0.012 100.269);
  --muted-foreground: oklch(0.741 0.029 99.885);
  --popover: oklch(0.115 0.02 273.236);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.02 273.236);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.223 0.125 265.429);
  --primary-foreground: oklch(0.721 0.14 275.697);
  --secondary: oklch(0.405 0.083 99.327);
  --secondary-foreground: oklch(0.893 0.177 99.587);
  --accent: oklch(0.405 0.083 99.327);
  --accent-foreground: oklch(0.893 0.177 99.587);
  --destructive: oklch(0.631 0.191 40.119);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.125 265.429);
  --chart-1: oklch(0.223 0.125 265.429);
  --chart-2: oklch(0.405 0.083 99.327);
  --chart-3: oklch(0.405 0.083 99.327);
  --chart-4: oklch(0.453 0.093 99.1);
  --chart-5: oklch(0.223 0.128 264.756);
}