Accuracy for shadcn/ui

Accuracy is a shadcn/ui theme built around an orange primary color (#dfbb86) with green accents (#d6df86). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#dfbb86) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#000000black
#fdfdfcwhite
Card
#fcfcfcsnow
#070503black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030302black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#dfbb86burlywood
#dfbb86burlywood
Primary foreground
#281c0bblack
#281c0bblack
Secondary
#df8f86darksalmon
#df8f86darksalmon
Secondary foreground
#280e0bblack
#280e0bblack
Muted
#efe2e1mistyrose
#1e1110black
Muted foreground
#4e4746darkslategray
#b9b2b1darkgray
Accent
#d6df86khaki
#d6df86khaki
Accent foreground
#25280bblack
#25280bblack
Destructive
#9e2f0asaddlebrown
#f36c3ftomato
Destructive foreground
#fde5ddmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfbb86burlywood
#dfbb86burlywood

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.21:1AAA
Secondary button7.26:1AAA
Muted text7.20:1AAA
Accent10.63:1AAA
Destructive6.07:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.30:1AAA
Primary button9.21:1AAA
Secondary button7.26:1AAA
Muted text8.79:1AAA
Accent10.63:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.014 25.12);
  --muted-foreground: oklch(0.404 0.009 25.187);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.812 0.08 77.35);
  --primary-foreground: oklch(0.238 0.035 75.885);
  --secondary: oklch(0.729 0.099 26.644);
  --secondary-foreground: oklch(0.204 0.045 28.171);
  --accent: oklch(0.877 0.113 113.396);
  --accent-foreground: oklch(0.267 0.047 114.402);
  --destructive: oklch(0.471 0.153 36.411);
  --destructive-foreground: oklch(0.94 0.028 39.349);
  --ring: oklch(0.812 0.08 77.35);
  --chart-1: oklch(0.812 0.08 77.35);
  --chart-2: oklch(0.729 0.099 26.644);
  --chart-3: oklch(0.877 0.113 113.396);
  --chart-4: oklch(0.755 0.088 26.348);
  --chart-5: oklch(0.815 0.084 77.257);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 82.833);
  --foreground: oklch(0.993 0.001 78.31);
  --muted: oklch(0.196 0.022 26.283);
  --muted-foreground: oklch(0.769 0.008 25.073);
  --popover: oklch(0.095 0.007 82.833);
  --popover-foreground: oklch(0.993 0.001 78.31);
  --card: oklch(0.12 0.009 82.833);
  --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.812 0.08 77.35);
  --primary-foreground: oklch(0.238 0.035 75.885);
  --secondary: oklch(0.729 0.099 26.644);
  --secondary-foreground: oklch(0.204 0.045 28.171);
  --accent: oklch(0.877 0.113 113.396);
  --accent-foreground: oklch(0.267 0.047 114.402);
  --destructive: oklch(0.689 0.176 38.516);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.812 0.08 77.35);
  --chart-1: oklch(0.812 0.08 77.35);
  --chart-2: oklch(0.729 0.099 26.644);
  --chart-3: oklch(0.877 0.113 113.396);
  --chart-4: oklch(0.755 0.088 26.348);
  --chart-5: oklch(0.815 0.084 77.257);
}