Verifiable for shadcn/ui

Verifiable is a shadcn/ui theme built around a neutral gray primary color (#4f5159) with neutral gray accents (#59584f). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the neutral gray primary (#4f5159) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#000000black
Foreground
#000000black
#f6f6f9whitesmoke
Card
#f7f8fdghostwhite
#000000black
Card foreground
#000000black
#f6f6f9whitesmoke
Popover
#f7f8fdghostwhite
#000000black
Popover foreground
#000000black
#f6f6f9whitesmoke
Primary
#4f5159darkslategray
#4f5159darkslategray
Primary foreground
#ececeewhitesmoke
#ececeewhitesmoke
Secondary
#59584fdimgray
#59584fdimgray
Secondary foreground
#eeeeecwhitesmoke
#eeeeecwhitesmoke
Muted
#f0efealinen
#15140fblack
Muted foreground
#5b5a57dimgray
#a8a7a4darkgray
Accent
#59584fdimgray
#59584fdimgray
Accent foreground
#eeeeecwhitesmoke
#eeeeecwhitesmoke
Destructive
#e02900orangered
#ff5833tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f5159darkslategray
#4f5159darkslategray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.71:1AA
Secondary button6.19:1AA
Muted text5.99:1AA
Accent6.19:1AA
Destructive4.66:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button6.71:1AA
Secondary button6.19:1AA
Muted text7.68:1AAA
Accent6.19:1AA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 277.163);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.006 97.349);
  --muted-foreground: oklch(0.469 0.005 97.395);
  --popover: oklch(0.979 0.007 277.163);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.007 277.163);
  --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.436 0.014 276.798);
  --primary-foreground: oklch(0.945 0.002 277.224);
  --secondary: oklch(0.458 0.013 97.633);
  --secondary-foreground: oklch(0.948 0.002 97.294);
  --accent: oklch(0.458 0.013 97.633);
  --accent-foreground: oklch(0.948 0.002 97.294);
  --destructive: oklch(0.585 0.22 32.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.436 0.014 276.798);
  --chart-1: oklch(0.436 0.014 276.798);
  --chart-2: oklch(0.458 0.013 97.633);
  --chart-3: oklch(0.458 0.013 97.633);
  --chart-4: oklch(0.486 0.014 97.637);
  --chart-5: oklch(0.43 0.021 276.534);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.003 277.211);
  --muted: oklch(0.189 0.009 97.855);
  --muted-foreground: oklch(0.728 0.004 97.338);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.003 277.211);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.003 277.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.436 0.014 276.798);
  --primary-foreground: oklch(0.945 0.002 277.224);
  --secondary: oklch(0.458 0.013 97.633);
  --secondary-foreground: oklch(0.948 0.002 97.294);
  --accent: oklch(0.458 0.013 97.633);
  --accent-foreground: oklch(0.948 0.002 97.294);
  --destructive: oklch(0.682 0.209 34.051);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.436 0.014 276.798);
  --chart-1: oklch(0.436 0.014 276.798);
  --chart-2: oklch(0.458 0.013 97.633);
  --chart-3: oklch(0.458 0.013 97.633);
  --chart-4: oklch(0.486 0.014 97.637);
  --chart-5: oklch(0.43 0.021 276.534);
}