taxa for shadcn/ui

taxa is a shadcn/ui theme built around a vivid blue primary color (#5470ff) with vivid light indigo accents (#cccfff). The light mode uses a blue-tinted background (#edf0ff). Dark mode keeps the vivid blue primary (#5471ff) on a blue-tinted background (#191d29).

Color palette

TokenLightDark
Background
#edf0ffaliceblue
#191d29black
Foreground
#404878darkslateblue
#d1d7fclavender
Card
#ebeefflavender
#191d29black
Card foreground
#404878darkslateblue
#bcc1delightsteelblue
Popover
#ebeefflavender
#161a25black
Popover foreground
#1f212edarkslategray
#ffffffwhite
Primary
#5470ffroyalblue
#5471ffroyalblue
Primary foreground
#e0e5fflavender
#ffffffwhite
Secondary
#d6dcfflavender
#374059darkslategray
Secondary foreground
#515a8fdarkslateblue
#afb5c5silver
Muted
#dde3fflavender
#232939darkslategray
Muted foreground
#7f87aclightslategray
#5e6a89slategray
Accent
#cccffflavender
#272d40darkslategray
Accent foreground
#626697slategray
#a3abc4darkgray
Destructive
#fd4d4dtomato
#ab2810firebrick
Destructive foreground
#fcf5f5lavenderblush
#ffffffwhite
Border
#cdd2eegainsboro
#252b39darkslategray
Input
#c9cee6lightgrey
#293143darkslategray
Ring
#5470ffroyalblue
#a7adcdlightsteelblue

Contrast

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

Light mode
Text on background7.66:1AAA
Text on card7.54:1AAA
Primary button3.26:1AA Large
Secondary button4.85:1AA
Muted text2.77:1Fail
Accent3.61:1AA Large
Destructive3.08:1AA Large
Dark mode
Text on background11.87:1AAA
Text on card9.42:1AAA
Primary button4.06:1AA Large
Secondary button5.03:1AA
Muted text2.69:1Fail
Accent5.99:1AA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.957 0.02 276.96);
  --foreground: oklch(0.418 0.081 275.191);
  --muted: oklch(0.92 0.039 276.646);
  --muted-foreground: oklch(0.63 0.056 275.681);
  --popover: oklch(0.952 0.023 277.957);
  --popover-foreground: oklch(0.252 0.024 275.715);
  --card: oklch(0.952 0.023 276.918);
  --card-foreground: oklch(0.418 0.08 275.097);
  --border: oklch(0.87 0.039 276.599);
  --input: oklch(0.856 0.034 276.056);
  --primary: oklch(0.606 0.213 270.22);
  --primary-foreground: oklch(0.926 0.036 276.694);
  --secondary: oklch(0.901 0.048 276.652);
  --secondary-foreground: oklch(0.484 0.086 275.324);
  --accent: oklch(0.869 0.066 281.264);
  --accent-foreground: oklch(0.527 0.077 279.815);
  --destructive: oklch(0.669 0.213 25.022);
  --destructive-foreground: oklch(0.977 0.007 17.278);
  --ring: oklch(0.605 0.214 270.336);
  --chart-1: oklch(0.677 0.157 35.19);
  --chart-2: oklch(0.631 0.101 183.491);
  --chart-3: oklch(0.379 0.044 225.539);
  --chart-4: oklch(0.834 0.119 88.146);
  --chart-5: oklch(0.783 0.126 58.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.232 0.024 270.171);
  --foreground: oklch(0.887 0.051 277.419);
  --muted: oklch(0.282 0.031 270.094);
  --muted-foreground: oklch(0.526 0.052 268.616);
  --popover: oklch(0.218 0.023 270.114);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.234 0.024 270.209);
  --card-foreground: oklch(0.815 0.041 277.538);
  --border: oklch(0.289 0.027 267.073);
  --input: oklch(0.313 0.034 266.814);
  --primary: oklch(0.606 0.213 270.184);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.374 0.045 269.907);
  --secondary-foreground: oklch(0.772 0.024 269.987);
  --accent: oklch(0.299 0.036 269.951);
  --accent-foreground: oklch(0.743 0.037 270.41);
  --destructive: oklch(0.486 0.171 32.204);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.047 277.322);
  --chart-1: oklch(0.529 0.193 262.129);
  --chart-2: oklch(0.698 0.134 165.463);
  --chart-3: oklch(0.723 0.15 60.631);
  --chart-4: oklch(0.619 0.204 312.728);
  --chart-5: oklch(0.612 0.209 6.386);
}