Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a yellow primary color (#c0c37f) with muted light yellow accents (#dadad3). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#c0c37f) on a yellow-tinted background (#0c0c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0c03black
Foreground
#0b0c04black
#fafaf5whitesmoke
Card
#ffffffwhite
#0c0c03black
Card foreground
#0b0c04black
#fafaf5whitesmoke
Popover
#ffffffwhite
#0c0c03black
Popover foreground
#0b0c04black
#fafaf5whitesmoke
Primary
#c0c37fdarkkhaki
#c0c37fdarkkhaki
Primary foreground
#0a0a05black
#0a0a05black
Secondary
#dadad3gainsboro
#1c1c17black
Secondary foreground
#424338darkslategray
#b9b9acsilver
Muted
#e7e8d4gainsboro
#2b2b17black
Muted foreground
#66675bdimgray
#a4a498darkgray
Accent
#dadad3gainsboro
#1c1c17black
Accent foreground
#424338darkslategray
#b9b9acsilver
Destructive
#d90b08red
#f83430crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0c37fdarkkhaki
#c0c37fdarkkhaki

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button10.70:1AAA
Secondary button7.13:1AAA
Muted text4.62:1AA
Accent7.13:1AAA
Destructive5.26:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button10.70:1AAA
Secondary button8.65:1AAA
Muted text5.69:1AA
Accent8.65:1AAA
Destructive3.81: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.149 0.019 109.862);
  --muted: oklch(0.925 0.027 108.474);
  --muted-foreground: oklch(0.509 0.018 108.575);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.019 109.862);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.019 109.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.089 109.882);
  --primary-foreground: oklch(0.144 0.013 109.306);
  --secondary: oklch(0.886 0.01 108.145);
  --secondary-foreground: oklch(0.378 0.018 108.802);
  --accent: oklch(0.886 0.01 108.145);
  --accent-foreground: oklch(0.378 0.018 108.802);
  --destructive: oklch(0.558 0.225 29.111);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.089 109.882);
  --chart-1: oklch(0.798 0.089 109.882);
  --chart-2: oklch(0.886 0.01 108.145);
  --chart-3: oklch(0.886 0.01 108.145);
  --chart-4: oklch(0.907 0.008 108.102);
  --chart-5: oklch(0.806 0.095 109.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.151 0.022 110.109);
  --foreground: oklch(0.983 0.006 108.056);
  --muted: oklch(0.284 0.034 110.05);
  --muted-foreground: oklch(0.715 0.017 108.36);
  --popover: oklch(0.151 0.022 110.109);
  --popover-foreground: oklch(0.983 0.006 108.056);
  --card: oklch(0.151 0.022 110.109);
  --card-foreground: oklch(0.983 0.006 108.056);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.089 109.882);
  --primary-foreground: oklch(0.144 0.013 109.306);
  --secondary: oklch(0.224 0.009 108.638);
  --secondary-foreground: oklch(0.783 0.019 108.383);
  --accent: oklch(0.224 0.009 108.638);
  --accent-foreground: oklch(0.783 0.019 108.383);
  --destructive: oklch(0.636 0.23 27.477);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.089 109.882);
  --chart-1: oklch(0.798 0.089 109.882);
  --chart-2: oklch(0.224 0.009 108.638);
  --chart-3: oklch(0.224 0.009 108.638);
  --chart-4: oklch(0.259 0.011 108.695);
  --chart-5: oklch(0.806 0.095 109.999);
}