Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a deep red primary color (#571e29) with deep blue accents (#1e2957). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the deep red primary (#571e29) on a red-tinted background (#100507).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#100507black
Foreground
#040101black
#f9f5f6whitesmoke
Card
#fdfbfcsnow
#100507black
Card foreground
#040101black
#f9f5f6whitesmoke
Popover
#fdfbfcsnow
#100507black
Popover foreground
#040101black
#f9f5f6whitesmoke
Primary
#571e29maroon
#571e29maroon
Primary foreground
#e8bfc6pink
#e8bfc6pink
Secondary
#29571edarkslategray
#29571edarkslategray
Secondary foreground
#c6e8bflightgrey
#c6e8bflightgrey
Muted
#e4efe1beige
#131e10black
Muted foreground
#555a53dimgray
#a6aca5darkgray
Accent
#1e2957midnightblue
#1e2957midnightblue
Accent foreground
#bfc6e8lightsteelblue
#bfc6e8lightsteelblue
Destructive
#6d2703maroon
#f8651bchocolate
Destructive foreground
#fcc3a6navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#571e29maroon
#571e29maroon

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.81:1AAA
Secondary button6.35:1AA
Muted text5.95:1AA
Accent8.25:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button7.81:1AAA
Secondary button6.35:1AA
Muted text7.44:1AAA
Accent8.25:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 4.368);
  --foreground: oklch(0.08 0.02 4.95);
  --muted: oklch(0.94 0.022 139.97);
  --muted-foreground: oklch(0.461 0.013 139.966);
  --popover: oklch(0.991 0.002 4.368);
  --popover-foreground: oklch(0.08 0.02 4.95);
  --card: oklch(0.991 0.002 4.368);
  --card-foreground: oklch(0.08 0.02 4.95);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.084 11.824);
  --primary-foreground: oklch(0.843 0.049 5.809);
  --secondary: oklch(0.409 0.1 140.103);
  --secondary-foreground: oklch(0.897 0.066 139.93);
  --accent: oklch(0.298 0.084 271.022);
  --accent-foreground: oklch(0.833 0.048 275.333);
  --destructive: oklch(0.371 0.109 42.051);
  --destructive-foreground: oklch(0.861 0.077 47.808);
  --ring: oklch(0.326 0.084 11.824);
  --chart-1: oklch(0.326 0.084 11.824);
  --chart-2: oklch(0.409 0.1 140.103);
  --chart-3: oklch(0.298 0.084 271.022);
  --chart-4: oklch(0.445 0.11 140.12);
  --chart-5: oklch(0.326 0.088 12.409);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.023 5.849);
  --foreground: oklch(0.975 0.004 4.426);
  --muted: oklch(0.219 0.031 139.909);
  --muted-foreground: oklch(0.737 0.012 139.977);
  --popover: oklch(0.134 0.023 5.849);
  --popover-foreground: oklch(0.975 0.004 4.426);
  --card: oklch(0.134 0.023 5.849);
  --card-foreground: oklch(0.975 0.004 4.426);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.326 0.084 11.824);
  --primary-foreground: oklch(0.843 0.049 5.809);
  --secondary: oklch(0.409 0.1 140.103);
  --secondary-foreground: oklch(0.897 0.066 139.93);
  --accent: oklch(0.298 0.084 271.022);
  --accent-foreground: oklch(0.833 0.048 275.333);
  --destructive: oklch(0.684 0.196 42.111);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.326 0.084 11.824);
  --chart-1: oklch(0.326 0.084 11.824);
  --chart-2: oklch(0.409 0.1 140.103);
  --chart-3: oklch(0.298 0.084 271.022);
  --chart-4: oklch(0.445 0.11 140.12);
  --chart-5: oklch(0.326 0.088 12.409);
}