Taxpayer for shadcn/ui

Taxpayer is a shadcn/ui theme built around a vivid deep purple primary color (#39083b) with neutral gray accents (#d8d4d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#39083b) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#070307black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070307black
Popover foreground
#000000black
#ffffffwhite
Primary
#39083bmidnightblue
#39083bmidnightblue
Primary foreground
#ec85efviolet
#ec85efviolet
Secondary
#d8d4d8lightgrey
#262226darkslategray
Secondary foreground
#403a40darkslategray
#c0b9c1silver
Muted
#ebe5eblavender
#1a141ablack
Muted foreground
#4d414edarkslategray
#beb1besilver
Accent
#d8d4d8lightgrey
#262226darkslategray
Accent foreground
#403a40darkslategray
#c0b9c1silver
Destructive
#9c350dsaddlebrown
#ee622bchocolate
Destructive foreground
#fce7demistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#39083bmidnightblue
#39083bmidnightblue

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 button7.22:1AAA
Secondary button7.56:1AAA
Muted text7.75:1AAA
Accent7.56:1AAA
Destructive6.02:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.22:1AAA
Secondary button8.21:1AAA
Muted text8.84:1AAA
Accent8.21:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.012 324.698);
  --muted-foreground: oklch(0.393 0.027 325.042);
  --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.251 0.101 326.603);
  --primary-foreground: oklch(0.764 0.181 325.95);
  --secondary: oklch(0.875 0.007 324.669);
  --secondary-foreground: oklch(0.357 0.013 324.849);
  --accent: oklch(0.875 0.007 324.669);
  --accent-foreground: oklch(0.357 0.013 324.849);
  --destructive: oklch(0.474 0.145 38.695);
  --destructive-foreground: oklch(0.942 0.027 42.899);
  --ring: oklch(0.251 0.101 326.603);
  --chart-1: oklch(0.251 0.101 326.603);
  --chart-2: oklch(0.875 0.007 324.669);
  --chart-3: oklch(0.875 0.007 324.669);
  --chart-4: oklch(0.899 0.006 324.658);
  --chart-5: oklch(0.253 0.104 326.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.019 325.868);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.2 0.017 325.139);
  --muted-foreground: oklch(0.775 0.023 324.803);
  --popover: oklch(0.11 0.019 325.868);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.019 325.868);
  --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.251 0.101 326.603);
  --primary-foreground: oklch(0.764 0.181 325.95);
  --secondary: oklch(0.256 0.01 324.863);
  --secondary-foreground: oklch(0.794 0.014 324.73);
  --accent: oklch(0.256 0.01 324.863);
  --accent-foreground: oklch(0.794 0.014 324.73);
  --destructive: oklch(0.666 0.185 40.003);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.251 0.101 326.603);
  --chart-1: oklch(0.251 0.101 326.603);
  --chart-2: oklch(0.256 0.01 324.863);
  --chart-3: oklch(0.256 0.01 324.863);
  --chart-4: oklch(0.287 0.012 324.875);
  --chart-5: oklch(0.253 0.104 326.628);
}