Taxicab for shadcn/ui

Taxicab is a shadcn/ui theme built around an indigo primary color (#948ec7) with muted light indigo accents (#c7c5d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#948ec7) on an indigo-tinted background (#05050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05050bblack
Foreground
#000000black
#f6f6f9whitesmoke
Card
#ffffffwhite
#05050bblack
Card foreground
#000000black
#f6f6f9whitesmoke
Popover
#ffffffwhite
#05050bblack
Popover foreground
#000000black
#f6f6f9whitesmoke
Primary
#948ec7mediumpurple
#948ec7mediumpurple
Primary foreground
#0d0c18black
#0d0c18black
Secondary
#c7c5d8thistle
#292833darkslategray
Secondary foreground
#2d2b40darkslategray
#c2c0cesilver
Muted
#d2d0e6gainsboro
#1b192fblack
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#c7c5d8thistle
#292833darkslategray
Accent foreground
#2d2b40darkslategray
#c2c0cesilver
Destructive
#981201darkred
#fe4c34tomato
Destructive foreground
#ffd2ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#948ec7mediumpurple
#948ec7mediumpurple

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.43:1AA
Secondary button8.09:1AAA
Muted text4.11:1AA Large
Accent8.09:1AAA
Destructive6.31:1AA
Dark mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button6.43:1AA
Secondary button8.06:1AAA
Muted text6.41:1AA
Accent8.06:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.867 0.03 290.344);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.674 0.084 288.51);
  --primary-foreground: oklch(0.162 0.025 287.788);
  --secondary: oklch(0.831 0.027 290.396);
  --secondary-foreground: oklch(0.301 0.038 288.437);
  --accent: oklch(0.831 0.027 290.396);
  --accent-foreground: oklch(0.301 0.038 288.437);
  --destructive: oklch(0.435 0.168 31.11);
  --destructive-foreground: oklch(0.901 0.051 26.922);
  --ring: oklch(0.674 0.084 288.51);
  --chart-1: oklch(0.674 0.084 288.51);
  --chart-2: oklch(0.831 0.027 290.396);
  --chart-3: oklch(0.831 0.027 290.396);
  --chart-4: oklch(0.858 0.022 290.516);
  --chart-5: oklch(0.668 0.091 288.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.016 289.401);
  --foreground: oklch(0.973 0.005 290.923);
  --muted: oklch(0.226 0.042 287.083);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.118 0.016 289.401);
  --popover-foreground: oklch(0.973 0.005 290.923);
  --card: oklch(0.118 0.016 289.401);
  --card-foreground: oklch(0.973 0.005 290.923);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.674 0.084 288.51);
  --primary-foreground: oklch(0.162 0.025 287.788);
  --secondary: oklch(0.284 0.02 289.641);
  --secondary-foreground: oklch(0.814 0.019 290.576);
  --accent: oklch(0.284 0.02 289.641);
  --accent-foreground: oklch(0.814 0.019 290.576);
  --destructive: oklch(0.667 0.218 30.873);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.084 288.51);
  --chart-1: oklch(0.674 0.084 288.51);
  --chart-2: oklch(0.284 0.02 289.641);
  --chart-3: oklch(0.284 0.02 289.641);
  --chart-4: oklch(0.312 0.023 289.588);
  --chart-5: oklch(0.668 0.091 288.241);
}