Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a muted light green primary color (#d2d6bd) with muted light purple accents (#d6bdd2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d2d6bd) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#ffffffwhite
#070802black
Foreground
#0b0c03black
#ffffffwhite
Card
#fcfcfcsnow
#0b0c03black
Card foreground
#070802black
#ffffffwhite
Popover
#fcfcfcsnow
#0b0c03black
Popover foreground
#070802black
#ffffffwhite
Primary
#d2d6bdlightgrey
#d2d6bdlightgrey
Primary foreground
#383c25darkslategray
#383c25darkslategray
Secondary
#bdd2d6lightsteelblue
#bdd2d6lightsteelblue
Secondary foreground
#25383cdarkslategray
#25383cdarkslategray
Muted
#eaf4f6whitesmoke
#091415black
Muted foreground
#435356darkslategray
#a9b9bcsilver
Accent
#d6bdd2thistle
#d6bdd2thistle
Accent foreground
#3c2538darkslategray
#3c2538darkslategray
Destructive
#a01603darkred
#f02005red
Destructive foreground
#fedcd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2d6bdlightgrey
#d2d6bdlightgrey

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button7.64:1AAA
Secondary button7.81:1AAA
Muted text7.18:1AAA
Accent7.97:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.08:1AAA
Text on card19.64:1AAA
Primary button7.64:1AAA
Secondary button7.81:1AAA
Muted text9.24:1AAA
Accent7.97:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.023 114.797);
  --muted: oklch(0.96 0.011 209.441);
  --muted-foreground: oklch(0.431 0.022 209.474);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.131 0.02 114.336);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.02 114.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.866 0.033 114.024);
  --primary-foreground: oklch(0.345 0.037 115.304);
  --secondary: oklch(0.849 0.023 209.43);
  --secondary-foreground: oklch(0.327 0.025 209.645);
  --accent: oklch(0.826 0.04 330.851);
  --accent-foreground: oklch(0.301 0.046 332.073);
  --destructive: oklch(0.452 0.173 30.973);
  --destructive-foreground: oklch(0.921 0.039 26.78);
  --ring: oklch(0.866 0.033 114.024);
  --chart-1: oklch(0.866 0.033 114.024);
  --chart-2: oklch(0.849 0.023 209.43);
  --chart-3: oklch(0.826 0.04 330.851);
  --chart-4: oklch(0.871 0.02 209.43);
  --chart-5: oklch(0.87 0.038 114.111);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.019 114.297);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.18 0.016 209.738);
  --muted-foreground: oklch(0.775 0.019 209.429);
  --popover: oklch(0.15 0.022 114.713);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.022 114.713);
  --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.866 0.033 114.024);
  --primary-foreground: oklch(0.345 0.037 115.304);
  --secondary: oklch(0.849 0.023 209.43);
  --secondary-foreground: oklch(0.327 0.025 209.645);
  --accent: oklch(0.826 0.04 330.851);
  --accent-foreground: oklch(0.301 0.046 332.073);
  --destructive: oklch(0.609 0.237 30.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.033 114.024);
  --chart-1: oklch(0.866 0.033 114.024);
  --chart-2: oklch(0.849 0.023 209.43);
  --chart-3: oklch(0.826 0.04 330.851);
  --chart-4: oklch(0.871 0.02 209.43);
  --chart-5: oklch(0.87 0.038 114.111);
}