Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a vivid deep violet primary color (#0c0212) with muted violet accents (#beb6c3). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid deep violet primary (#0c0212) on a violet-tinted background (#0b050f).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0b050fblack
Foreground
#030104black
#fdfcfdwhite
Card
#faf7fdghostwhite
#0e0613black
Card foreground
#000000black
#ffffffwhite
Popover
#faf7fdghostwhite
#0e0613black
Popover foreground
#000000black
#ffffffwhite
Primary
#0c0212black
#0c0212black
Primary foreground
#ddb6f6thistle
#ddb6f6thistle
Secondary
#cdc9cflightgrey
#171519black
Secondary foreground
#343036darkslategray
#b2a8b8darkgray
Muted
#f3eef7whitesmoke
#0e0811black
Muted foreground
#5e4f69dimgray
#a696b0darkgray
Accent
#beb6c3silver
#302537darkslategray
Accent foreground
#242027black
#c9bcd2thistle
Destructive
#a61911firebrick
#ea4139tomato
Destructive foreground
#fdededlinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0212black
#0c0212black

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.79:1AAA
Primary button11.69:1AAA
Secondary button7.93:1AAA
Muted text6.55:1AA
Accent8.14:1AAA
Destructive6.68:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.88:1AAA
Primary button11.69:1AAA
Secondary button7.94:1AAA
Muted text7.17:1AAA
Accent8.03:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 312.326);
  --foreground: oklch(0.078 0.025 314.994);
  --muted: oklch(0.955 0.014 312.25);
  --muted-foreground: oklch(0.453 0.045 311.614);
  --popover: oklch(0.98 0.009 312.292);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.009 312.292);
  --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.125 0.044 312.653);
  --primary-foreground: oklch(0.832 0.096 311.495);
  --secondary: oklch(0.841 0.008 312.289);
  --secondary-foreground: oklch(0.316 0.01 312.126);
  --accent: oklch(0.787 0.02 312.165);
  --accent-foreground: oklch(0.252 0.015 311.928);
  --destructive: oklch(0.467 0.176 29.127);
  --destructive-foreground: oklch(0.959 0.017 21.12);
  --ring: oklch(0.125 0.044 312.653);
  --chart-1: oklch(0.125 0.044 312.653);
  --chart-2: oklch(0.841 0.008 312.289);
  --chart-3: oklch(0.787 0.02 312.165);
  --chart-4: oklch(0.865 0.007 312.302);
  --chart-5: oklch(0.124 0.046 312.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.026 312.375);
  --foreground: oklch(0.992 0.001 312.349);
  --muted: oklch(0.148 0.022 311.452);
  --muted-foreground: oklch(0.696 0.041 311.924);
  --popover: oklch(0.144 0.03 311.361);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.03 311.361);
  --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.125 0.044 312.653);
  --primary-foreground: oklch(0.832 0.096 311.495);
  --secondary: oklch(0.199 0.01 311.988);
  --secondary-foreground: oklch(0.745 0.025 312.112);
  --accent: oklch(0.285 0.034 311.454);
  --accent-foreground: oklch(0.813 0.033 312.061);
  --destructive: oklch(0.625 0.207 27.851);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.125 0.044 312.653);
  --chart-1: oklch(0.125 0.044 312.653);
  --chart-2: oklch(0.199 0.01 311.988);
  --chart-3: oklch(0.285 0.034 311.454);
  --chart-4: oklch(0.231 0.013 311.948);
  --chart-5: oklch(0.124 0.046 312.693);
}