Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a blue primary color (#236da9) with neutral gray accents (#d1d1d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#236da9) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#020b12black
#ffffffwhite
Card
#ffffffwhite
#010304black
Card foreground
#020b12black
#ffffffwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#020b12black
#ffffffwhite
Primary
#236da9steelblue
#236da9steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d1d1d1lightgrey
#13171bblack
Secondary foreground
#383838darkslategray
#a1b1bfdarkgray
Muted
#f3ececlinen
#0c1013black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#d1d1d1lightgrey
#13171bblack
Accent foreground
#383838darkslategray
#a1b1bfdarkgray
Destructive
#bd320ffirebrick
#ed461dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#236da9steelblue
#236da9steelblue

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button5.49:1AA
Secondary button7.68:1AAA
Muted text6.51:1AA
Accent7.68:1AAA
Destructive5.80:1AA
Dark mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button5.49:1AA
Secondary button8.17:1AAA
Muted text8.33:1AAA
Accent8.17:1AAA
Destructive3.82: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.143 0.023 237.43);
  --muted: oklch(0.95 0.007 17.279);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.023 237.43);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.023 237.43);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.519 0.119 247.693);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.861 0 180);
  --secondary-foreground: oklch(0.341 0 158.199);
  --accent: oklch(0.861 0 180);
  --accent-foreground: oklch(0.341 0 158.199);
  --destructive: oklch(0.528 0.18 34.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.119 247.693);
  --chart-1: oklch(0.519 0.119 247.693);
  --chart-2: oklch(0.861 0 180);
  --chart-3: oklch(0.861 0 180);
  --chart-4: oklch(0.885 0 180);
  --chart-5: oklch(0.521 0.124 248.089);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.01 234.522);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.008 242.86);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.09 0.01 234.522);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.09 0.01 234.522);
  --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.519 0.119 247.693);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.203 0.011 242.914);
  --secondary-foreground: oklch(0.753 0.027 242.669);
  --accent: oklch(0.203 0.011 242.914);
  --accent-foreground: oklch(0.753 0.027 242.669);
  --destructive: oklch(0.631 0.209 34.367);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.119 247.693);
  --chart-1: oklch(0.519 0.119 247.693);
  --chart-2: oklch(0.203 0.011 242.914);
  --chart-3: oklch(0.203 0.011 242.914);
  --chart-4: oklch(0.236 0.014 242.995);
  --chart-5: oklch(0.521 0.124 248.089);
}