Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a muted green primary color (#959876) with muted purple accents (#987695). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted green primary (#959876) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fefefbwhite
#030302black
Foreground
#080901black
#fdfdfcwhite
Card
#fdfdf7snow
#060703black
Card foreground
#040501black
#ffffffwhite
Popover
#fefefbwhite
#030302black
Popover foreground
#080901black
#fdfdfcwhite
Primary
#959876gray
#959876gray
Primary foreground
#000000black
#000000black
Secondary
#769598lightslategray
#769598lightslategray
Secondary foreground
#000000black
#000000black
Muted
#e6eeeflavender
#101819black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#987695gray
#987695gray
Accent foreground
#000000black
#000000black
Destructive
#de4402orangered
#ed4902orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#959876gray
#959876gray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card20.02:1AAA
Primary button7.01:1AAA
Secondary button6.50:1AA
Muted text8.82:1AAA
Accent5.37:1AA
Destructive4.24:1AA Large
Dark mode
Text on background20.23:1AAA
Text on card20.20:1AAA
Primary button7.01:1AAA
Secondary button6.50:1AA
Muted text9.79:1AAA
Accent5.37:1AA
Destructive3.77: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.996 0.004 111.095);
  --foreground: oklch(0.135 0.025 112.746);
  --muted: oklch(0.944 0.009 204.921);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.996 0.004 111.095);
  --popover-foreground: oklch(0.135 0.025 112.746);
  --card: oklch(0.992 0.009 111.176);
  --card-foreground: oklch(0.107 0.02 112.746);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.668 0.048 112.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.034 204.705);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.61 0.06 329.626);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.604 0.199 37.397);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.668 0.048 112.33);
  --chart-1: oklch(0.668 0.048 112.33);
  --chart-2: oklch(0.647 0.034 204.705);
  --chart-3: oklch(0.61 0.06 329.626);
  --chart-4: oklch(0.67 0.032 204.719);
  --chart-5: oklch(0.677 0.057 112.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 111.912);
  --foreground: oklch(0.993 0.001 111.033);
  --muted: oklch(0.201 0.012 204.691);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.099 0.009 111.912);
  --popover-foreground: oklch(0.993 0.001 111.033);
  --card: oklch(0.125 0.011 111.912);
  --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.668 0.048 112.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.034 204.705);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.61 0.06 329.626);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.634 0.21 37.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.668 0.048 112.33);
  --chart-1: oklch(0.668 0.048 112.33);
  --chart-2: oklch(0.647 0.034 204.705);
  --chart-3: oklch(0.61 0.06 329.626);
  --chart-4: oklch(0.67 0.032 204.719);
  --chart-5: oklch(0.677 0.057 112.57);
}