Taxi for shadcn/ui

Taxi is a shadcn/ui theme built around a violet primary color (#ab7ee7) with neutral gray accents (#cccccc). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the violet primary (#ab7ee7) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#07050ablack
Foreground
#000000black
#ffffffwhite
Card
#fcfbfdsnow
#07050ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbfdsnow
#07050ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#ab7ee7mediumpurple
#ab7ee7mediumpurple
Primary foreground
#17082bblack
#17082bblack
Secondary
#cccccclightgrey
#231f28black
Secondary foreground
#333333darkslategray
#bcb4c5silver
Muted
#edd4d4gainsboro
#1d122bblack
Muted foreground
#5e5555dimgray
#a5a1aadarkgray
Accent
#cccccclightgrey
#231f28black
Accent foreground
#333333darkslategray
#bcb4c5silver
Destructive
#8f2b00saddlebrown
#ff6929tomato
Destructive foreground
#ffd4c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab7ee7mediumpurple
#ab7ee7mediumpurple

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button6.21:1AA
Secondary button7.86:1AAA
Muted text5.15:1AA
Accent7.86:1AAA
Destructive6.16:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.21:1AA
Secondary button8.05:1AAA
Muted text7.04:1AAA
Accent8.05:1AAA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 305.701);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.891 0.027 17.676);
  --muted-foreground: oklch(0.457 0.012 17.589);
  --popover: oklch(0.991 0.003 305.701);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 305.701);
  --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.68 0.156 302.441);
  --primary-foreground: oklch(0.182 0.068 299.567);
  --secondary: oklch(0.845 0 164.055);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(0.845 0 164.055);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.438 0.142 38.449);
  --destructive-foreground: oklch(0.902 0.054 44.474);
  --ring: oklch(0.68 0.156 302.441);
  --chart-1: oklch(0.68 0.156 302.441);
  --chart-2: oklch(0.845 0 164.055);
  --chart-3: oklch(0.845 0 164.055);
  --chart-4: oklch(0.869 0 165.964);
  --chart-5: oklch(0.677 0.163 302.262);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 306.474);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.211 0.049 302.44);
  --muted-foreground: oklch(0.716 0.013 305.489);
  --popover: oklch(0.122 0.016 306.474);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.016 306.474);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.156 302.441);
  --primary-foreground: oklch(0.182 0.068 299.567);
  --secondary: oklch(0.248 0.018 304.76);
  --secondary-foreground: oklch(0.782 0.025 305.306);
  --accent: oklch(0.248 0.018 304.76);
  --accent-foreground: oklch(0.782 0.025 305.306);
  --destructive: oklch(0.701 0.197 40.79);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.68 0.156 302.441);
  --chart-1: oklch(0.68 0.156 302.441);
  --chart-2: oklch(0.248 0.018 304.76);
  --chart-3: oklch(0.248 0.018 304.76);
  --chart-4: oklch(0.278 0.022 304.705);
  --chart-5: oklch(0.677 0.163 302.262);
}