Blue Torus Tahr for shadcn/ui

Blue Torus Tahr is a shadcn/ui theme built around a vivid blue primary color (#042d95) with vivid indigo accents (#230495). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the vivid blue primary (#042d95) on a blue-tinted background (#050810).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#050810black
Foreground
#020712black
#fcfcfdwhite
Card
#f8f9fcghostwhite
#050810black
Card foreground
#020712black
#fcfcfdwhite
Popover
#f8f9fcghostwhite
#050810black
Popover foreground
#020712black
#fcfcfdwhite
Primary
#042d95darkblue
#042d95darkblue
Primary foreground
#cddbfelavender
#cddbfelavender
Secondary
#047695darkcyan
#047695darkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6e2e6gainsboro
#192629darkslategray
Muted foreground
#45494adarkslategray
#b5b9basilver
Accent
#230495darkblue
#230495darkblue
Accent foreground
#d8cdfelavender
#d8cdfelavender
Destructive
#b12610firebrick
#e93216orangered
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#ecedeewhitesmoke
#242529darkslategray
Input
#ecedeewhitesmoke
#242529darkslategray
Ring
#042d95darkblue
#042d95darkblue

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button8.35:1AAA
Secondary button5.22:1AA
Muted text6.90:1AA
Accent9.23:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button8.35:1AAA
Secondary button5.22:1AA
Muted text7.87:1AAA
Accent9.23:1AAA
Destructive4.24:1AA Large

CSS variables

Paste this into your globals.css to use Blue Torus Tahr in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 268.764);
  --foreground: oklch(0.128 0.028 259.455);
  --muted: oklch(0.905 0.014 216.086);
  --muted-foreground: oklch(0.402 0.006 216.086);
  --popover: oklch(0.982 0.004 268.764);
  --popover-foreground: oklch(0.128 0.028 259.455);
  --card: oklch(0.982 0.004 268.764);
  --card-foreground: oklch(0.128 0.028 259.455);
  --border: oklch(0.945 0.003 268.772);
  --input: oklch(0.945 0.003 268.772);
  --primary: oklch(0.356 0.175 263.362);
  --primary-foreground: oklch(0.892 0.05 268.306);
  --secondary: oklch(0.526 0.099 225.023);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.322 0.199 274.621);
  --accent-foreground: oklch(0.873 0.067 294.905);
  --destructive: oklch(0.497 0.178 31.577);
  --destructive-foreground: oklch(0.981 0.008 27.975);
  --ring: oklch(0.356 0.175 263.362);
  --chart-1: oklch(0.356 0.175 263.362);
  --chart-2: oklch(0.526 0.099 225.023);
  --chart-3: oklch(0.322 0.199 274.621);
  --chart-4: oklch(0.563 0.106 225.24);
  --chart-5: oklch(0.357 0.179 263.223);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.02 262.93);
  --foreground: oklch(0.992 0.001 268.784);
  --muted: oklch(0.257 0.018 216.686);
  --muted-foreground: oklch(0.783 0.005 216.04);
  --popover: oklch(0.133 0.02 262.93);
  --popover-foreground: oklch(0.992 0.001 268.784);
  --card: oklch(0.133 0.02 262.93);
  --card-foreground: oklch(0.992 0.001 268.784);
  --border: oklch(0.265 0.007 268.572);
  --input: oklch(0.265 0.007 268.572);
  --primary: oklch(0.356 0.175 263.362);
  --primary-foreground: oklch(0.892 0.05 268.306);
  --secondary: oklch(0.526 0.099 225.023);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.322 0.199 274.621);
  --accent-foreground: oklch(0.873 0.067 294.905);
  --destructive: oklch(0.608 0.221 31.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.356 0.175 263.362);
  --chart-1: oklch(0.356 0.175 263.362);
  --chart-2: oklch(0.526 0.099 225.023);
  --chart-3: oklch(0.322 0.199 274.621);
  --chart-4: oklch(0.563 0.106 225.24);
  --chart-5: oklch(0.357 0.179 263.223);
}