blue2 for shadcn/ui

blue2 is a shadcn/ui theme built around a vivid indigo primary color (#3a14b8) with vivid violet accents (#8c14b8). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the vivid indigo primary (#3a14b8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#000000black
Foreground
#000000black
#f9f9fbghostwhite
Card
#f8f6fdghostwhite
#000000black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#f8f6fdghostwhite
#000000black
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#3a14b8indigo
#3a14b8indigo
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1440b8darkslateblue
#1440b8darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecedeewhitesmoke
#111113black
Muted foreground
#5b5e67dimgray
#989ba4darkgray
Accent
#8c14b8darkviolet
#8c14b8darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b1405maroon
#f6583ctomato
Destructive foreground
#fbb4a7lightpink
#000000black
Border
#e1e0e6gainsboro
#1d1c22black
Input
#e1e0e6gainsboro
#1d1c22black
Ring
#3a14b8indigo
#3a14b8indigo

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button10.63:1AAA
Secondary button8.56:1AAA
Muted text5.51:1AA
Accent7.22:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button10.63:1AAA
Secondary button8.56:1AAA
Muted text6.77:1AA
Accent7.22:1AAA
Destructive6.37:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.009 296.91);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.002 270.102);
  --muted-foreground: oklch(0.483 0.014 269.857);
  --popover: oklch(0.978 0.009 296.91);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.009 296.91);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.91 0.008 296.927);
  --input: oklch(0.91 0.008 296.927);
  --primary: oklch(0.392 0.224 279.122);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.43 0.194 264.158);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.23 313.762);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.346 0.123 32.41);
  --destructive-foreground: oklch(0.833 0.085 30.181);
  --ring: oklch(0.392 0.224 279.122);
  --chart-1: oklch(0.392 0.224 279.122);
  --chart-2: oklch(0.43 0.194 264.158);
  --chart-3: oklch(0.488 0.23 313.762);
  --chart-4: oklch(0.452 0.206 264.129);
  --chart-5: oklch(0.392 0.229 278.185);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 297.029);
  --muted: oklch(0.179 0.003 269.96);
  --muted-foreground: oklch(0.691 0.013 269.959);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 297.029);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 297.029);
  --border: oklch(0.229 0.012 296.138);
  --input: oklch(0.229 0.012 296.138);
  --primary: oklch(0.392 0.224 279.122);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.43 0.194 264.158);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.23 313.762);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.198 32.307);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.392 0.224 279.122);
  --chart-1: oklch(0.392 0.224 279.122);
  --chart-2: oklch(0.43 0.194 264.158);
  --chart-3: oklch(0.488 0.23 313.762);
  --chart-4: oklch(0.452 0.206 264.129);
  --chart-5: oklch(0.392 0.229 278.185);
}