Regal Azure Cockroach for shadcn/ui

Regal Azure Cockroach is a shadcn/ui theme built around an indigo primary color (#7175b7) with muted indigo accents (#b1b3c8). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the indigo primary (#7175b7) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#030307black
Foreground
#02020eblack
#f8f9fbghostwhite
Card
#f8f8fcghostwhite
#04050bblack
Card foreground
#010209black
#fcfcfdwhite
Popover
#fbfcfdwhite
#030307black
Popover foreground
#02020eblack
#f8f9fbghostwhite
Primary
#7175b7slateblue
#7175b7slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbcbd2lightgrey
#17171cblack
Secondary foreground
#31323adarkslategray
#abacbadarkgray
Muted
#f0f1f4whitesmoke
#0b0b0fblack
Muted foreground
#454654darkslategray
#abacbadarkgray
Accent
#b1b3c8silver
#212230darkslategray
Accent foreground
#1e1e2ablack
#b7b8cdsilver
Destructive
#8b1409darkred
#f24536tomato
Destructive foreground
#fccecapink
#ffffffwhite
Border
#ededeewhitesmoke
#202122black
Input
#ededeewhitesmoke
#202122black
Ring
#7175b7slateblue
#7175b7slateblue

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.57:1AAA
Primary button4.25:1AA Large
Secondary button7.90:1AAA
Muted text8.22:1AAA
Accent7.96:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.88:1AAA
Primary button4.25:1AA Large
Secondary button7.93:1AAA
Muted text8.73:1AAA
Accent8.00:1AAA
Destructive3.68:1AA Large

CSS variables

Paste this into your globals.css to use Regal Azure Cockroach in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 283.065);
  --foreground: oklch(0.101 0.033 272.902);
  --muted: oklch(0.958 0.004 283.028);
  --muted-foreground: oklch(0.398 0.024 282.024);
  --popover: oklch(0.99 0.002 283.065);
  --popover-foreground: oklch(0.101 0.033 272.902);
  --card: oklch(0.981 0.005 283.023);
  --card-foreground: oklch(0.088 0.028 272.921);
  --border: oklch(0.946 0.001 283.09);
  --input: oklch(0.946 0.001 283.09);
  --primary: oklch(0.587 0.101 279.692);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.844 0.01 282.904);
  --secondary-foreground: oklch(0.319 0.014 282.321);
  --accent: oklch(0.772 0.03 282.426);
  --accent-foreground: oklch(0.241 0.022 281.449);
  --destructive: oklch(0.41 0.154 30.082);
  --destructive-foreground: oklch(0.89 0.052 24.241);
  --ring: oklch(0.587 0.101 279.692);
  --chart-1: oklch(0.587 0.101 279.692);
  --chart-2: oklch(0.844 0.01 282.904);
  --chart-3: oklch(0.772 0.03 282.426);
  --chart-4: oklch(0.869 0.008 282.943);
  --chart-5: oklch(0.581 0.11 279.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.016 278.915);
  --foreground: oklch(0.981 0.004 283.041);
  --muted: oklch(0.152 0.007 282.276);
  --muted-foreground: oklch(0.748 0.02 282.632);
  --popover: oklch(0.101 0.016 278.915);
  --popover-foreground: oklch(0.981 0.004 283.041);
  --card: oklch(0.116 0.018 278.92);
  --card-foreground: oklch(0.991 0.002 283.074);
  --border: oklch(0.246 0.002 282.946);
  --input: oklch(0.246 0.002 282.946);
  --primary: oklch(0.587 0.101 279.692);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.208 0.009 282.306);
  --secondary-foreground: oklch(0.748 0.02 282.632);
  --accent: oklch(0.259 0.026 281.254);
  --accent-foreground: oklch(0.789 0.029 282.46);
  --destructive: oklch(0.642 0.212 29.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.587 0.101 279.692);
  --chart-1: oklch(0.587 0.101 279.692);
  --chart-2: oklch(0.208 0.009 282.306);
  --chart-3: oklch(0.259 0.026 281.254);
  --chart-4: oklch(0.238 0.012 282.226);
  --chart-5: oklch(0.581 0.11 279.277);
}