Accounting for shadcn/ui

Accounting is a shadcn/ui theme built around a vivid indigo primary color (#2912d9) with vivid violet accents (#8d12d9). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid indigo primary (#2912d9) on an indigo-tinted background (#060510).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#060510black
Foreground
#050411black
#ffffffwhite
Card
#f8f7fdghostwhite
#060510black
Card foreground
#050411black
#ffffffwhite
Popover
#f8f7fdghostwhite
#060510black
Popover foreground
#050411black
#ffffffwhite
Primary
#2912d9mediumblue
#2912d9mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#125ed9royalblue
#125ed9royalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9dde2gainsboro
#1d2026black
Muted foreground
#4c4e52darkslategray
#adafb3darkgray
Accent
#8d12d9darkviolet
#8d12d9darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#94380asaddlebrown
#f06b28chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2912d9mediumblue
#2912d9mediumblue

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button9.63:1AAA
Secondary button5.78:1AA
Muted text6.10:1AA
Accent6.54:1AA
Destructive7.42:1AAA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button9.63:1AAA
Secondary button5.78:1AA
Muted text7.43:1AAA
Accent6.54:1AA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 291.628);
  --foreground: oklch(0.118 0.033 287.848);
  --muted: oklch(0.896 0.009 259.943);
  --muted-foreground: oklch(0.424 0.007 259.946);
  --popover: oklch(0.978 0.008 291.628);
  --popover-foreground: oklch(0.118 0.033 287.848);
  --card: oklch(0.978 0.008 291.628);
  --card-foreground: oklch(0.118 0.033 287.848);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.42 0.264 270.271);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.201 260.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.258 305.464);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.464 0.134 41.883);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.42 0.264 270.271);
  --chart-1: oklch(0.42 0.264 270.271);
  --chart-2: oklch(0.517 0.201 260.444);
  --chart-3: oklch(0.515 0.258 305.464);
  --chart-4: oklch(0.542 0.212 260.475);
  --chart-5: oklch(0.421 0.27 269.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.026 288.948);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.012 259.917);
  --muted-foreground: oklch(0.754 0.006 259.942);
  --popover: oklch(0.124 0.026 288.948);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.026 288.948);
  --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.42 0.264 270.271);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.201 260.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.258 305.464);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.681 0.181 43.507);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.42 0.264 270.271);
  --chart-1: oklch(0.42 0.264 270.271);
  --chart-2: oklch(0.517 0.201 260.444);
  --chart-3: oklch(0.515 0.258 305.464);
  --chart-4: oklch(0.542 0.212 260.475);
  --chart-5: oklch(0.421 0.27 269.476);
}