Accurate for shadcn/ui

Accurate is a shadcn/ui theme built around a vivid light blue primary color (#98d5fb) with vivid light blue accents (#98a4fb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid light blue primary (#98d5fb) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030507black
Foreground
#000000black
#fcfdfdwhite
Card
#fbfdfewhite
#030507black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfdfewhite
#030507black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#98d5fblightskyblue
#98d5fblightskyblue
Primary foreground
#043b5dmidnightblue
#043b5dmidnightblue
Secondary
#98fbefpaleturquoise
#98fbefpaleturquoise
Secondary foreground
#045d53darkslategray
#045d53darkslategray
Muted
#d8e8e6gainsboro
#172725black
Muted foreground
#536563dimgray
#9aacaadarkgray
Accent
#98a4fblightskyblue
#98a4fblightskyblue
Accent foreground
#040e5dmidnightblue
#040e5dmidnightblue
Destructive
#b91209firebrick
#f64137tomato
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98d5fblightskyblue
#98d5fblightskyblue

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button7.40:1AAA
Secondary button6.43:1AA
Muted text4.88:1AA
Accent7.35:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button7.40:1AAA
Secondary button6.43:1AA
Muted text6.57:1AA
Accent7.35:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 234.534);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.92 0.017 188.465);
  --muted-foreground: oklch(0.491 0.022 187.793);
  --popover: oklch(0.992 0.002 234.534);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.002 234.534);
  --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.845 0.082 236.309);
  --primary-foreground: oklch(0.338 0.08 243.415);
  --secondary: oklch(0.923 0.095 186.192);
  --secondary-foreground: oklch(0.43 0.076 181.753);
  --accent: oklch(0.744 0.126 277.133);
  --accent-foreground: oklch(0.237 0.136 265.892);
  --destructive: oklch(0.499 0.197 29.466);
  --destructive-foreground: oklch(0.979 0.009 21.013);
  --ring: oklch(0.845 0.082 236.309);
  --chart-1: oklch(0.845 0.082 236.309);
  --chart-2: oklch(0.923 0.095 186.192);
  --chart-3: oklch(0.744 0.126 277.133);
  --chart-4: oklch(0.932 0.083 186.614);
  --chart-5: oklch(0.845 0.084 236.385);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.007 230.474);
  --foreground: oklch(0.992 0.001 234.516);
  --muted: oklch(0.256 0.022 186.734);
  --muted-foreground: oklch(0.731 0.021 188.228);
  --popover: oklch(0.116 0.007 230.474);
  --popover-foreground: oklch(0.992 0.001 234.516);
  --card: oklch(0.116 0.007 230.474);
  --card-foreground: oklch(0.992 0.001 234.516);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.845 0.082 236.309);
  --primary-foreground: oklch(0.338 0.08 243.415);
  --secondary: oklch(0.923 0.095 186.192);
  --secondary-foreground: oklch(0.43 0.076 181.753);
  --accent: oklch(0.744 0.126 277.133);
  --accent-foreground: oklch(0.237 0.136 265.892);
  --destructive: oklch(0.644 0.218 28.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.082 236.309);
  --chart-1: oklch(0.845 0.082 236.309);
  --chart-2: oklch(0.923 0.095 186.192);
  --chart-3: oklch(0.744 0.126 277.133);
  --chart-4: oklch(0.932 0.083 186.614);
  --chart-5: oklch(0.845 0.084 236.385);
}