Verifiable for shadcn/ui

Verifiable is a shadcn/ui theme built around a muted deep violet primary color (#20192a) with muted deep purple accents (#29192a). The light mode uses a neutral background (#faf8fc). Dark mode keeps the muted deep violet primary (#20192a) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#050307black
Foreground
#0b0317black
#f7f6f9whitesmoke
Card
#f7f5fawhitesmoke
#07050ablack
Card foreground
#090212black
#faf9fbghostwhite
Popover
#f7f5fawhitesmoke
#07050ablack
Popover foreground
#090212black
#faf9fbghostwhite
Primary
#20192ablack
#20192ablack
Primary foreground
#b8a8ccsilver
#b8a8ccsilver
Secondary
#191a2ablack
#191a2ablack
Secondary foreground
#a8abcclightsteelblue
#a8abcclightsteelblue
Muted
#d2d4e4gainsboro
#1b1c2dblack
Muted foreground
#4e4f55darkslategray
#aaabb1darkgray
Accent
#29192ablack
#29192ablack
Accent foreground
#caa8ccplum
#caa8ccplum
Destructive
#80140amaroon
#da2110firebrick
Destructive foreground
#fac6c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#20192ablack
#20192ablack

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card18.83:1AAA
Primary button7.73:1AAA
Secondary button7.68:1AAA
Muted text5.53:1AA
Accent7.91:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.30:1AAA
Primary button7.73:1AAA
Secondary button7.68:1AAA
Muted text7.34:1AAA
Accent7.91:1AAA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 305.678);
  --foreground: oklch(0.131 0.047 303.357);
  --muted: oklch(0.873 0.023 282.651);
  --muted-foreground: oklch(0.429 0.01 282.703);
  --popover: oklch(0.973 0.007 305.646);
  --popover-foreground: oklch(0.12 0.042 305.294);
  --card: oklch(0.973 0.007 305.646);
  --card-foreground: oklch(0.12 0.042 305.294);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.034 303.699);
  --primary-foreground: oklch(0.757 0.053 304.803);
  --secondary: oklch(0.223 0.031 280.39);
  --secondary-foreground: oklch(0.749 0.048 281.952);
  --accent: oklch(0.24 0.04 324.422);
  --accent-foreground: oklch(0.773 0.062 324.04);
  --destructive: oklch(0.388 0.144 30.032);
  --destructive-foreground: oklch(0.872 0.06 24.391);
  --ring: oklch(0.229 0.034 303.699);
  --chart-1: oklch(0.229 0.034 303.699);
  --chart-2: oklch(0.223 0.031 280.39);
  --chart-3: oklch(0.24 0.04 324.422);
  --chart-4: oklch(0.25 0.037 280.185);
  --chart-5: oklch(0.227 0.038 303.426);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 306.387);
  --foreground: oklch(0.975 0.004 305.69);
  --muted: oklch(0.233 0.032 280.451);
  --muted-foreground: oklch(0.741 0.009 282.906);
  --popover: oklch(0.123 0.014 306.387);
  --popover-foreground: oklch(0.983 0.002 305.707);
  --card: oklch(0.123 0.014 306.387);
  --card-foreground: oklch(0.983 0.002 305.707);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.229 0.034 303.699);
  --primary-foreground: oklch(0.757 0.053 304.803);
  --secondary: oklch(0.223 0.031 280.39);
  --secondary-foreground: oklch(0.749 0.048 281.952);
  --accent: oklch(0.24 0.04 324.422);
  --accent-foreground: oklch(0.773 0.062 324.04);
  --destructive: oklch(0.57 0.218 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.034 303.699);
  --chart-1: oklch(0.229 0.034 303.699);
  --chart-2: oklch(0.223 0.031 280.39);
  --chart-3: oklch(0.24 0.04 324.422);
  --chart-4: oklch(0.25 0.037 280.185);
  --chart-5: oklch(0.227 0.038 303.426);
}