Paranoia for shadcn/ui

Paranoia is a shadcn/ui theme built around a near-white primary color (#eaeaeb) with near-white accents (#ebebea). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the near-white primary (#eaeaeb) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#020308black
Foreground
#040615black
#fcfcfdwhite
Card
#f3f4fcaliceblue
#03040cblack
Card foreground
#030511black
#ffffffwhite
Popover
#f3f4fcaliceblue
#03040cblack
Popover foreground
#030511black
#ffffffwhite
Primary
#eaeaeblavender
#eaeaeblavender
Primary foreground
#515152darkslategray
#515152darkslategray
Secondary
#ebebealinen
#ebebealinen
Secondary foreground
#525251darkslategray
#525251darkslategray
Muted
#e2e0cfgainsboro
#302e1ddarkslategray
Muted foreground
#67644cdimgray
#b3b098darkgray
Accent
#ebebealinen
#ebebealinen
Accent foreground
#525251darkslategray
#525251darkslategray
Destructive
#9d350csaddlebrown
#ed5012orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaeaeblavender
#eaeaeblavender

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.52:1AAA
Primary button6.61:1AA
Secondary button6.54:1AA
Muted text4.52:1AA
Accent6.54:1AA
Destructive7.15:1AAA
Dark mode
Text on background20.11:1AAA
Text on card20.43:1AAA
Primary button6.61:1AA
Secondary button6.54:1AA
Muted text6.25:1AA
Accent6.54:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 281.174);
  --foreground: oklch(0.131 0.035 273.832);
  --muted: oklch(0.905 0.023 101.681);
  --muted-foreground: oklch(0.499 0.037 102.33);
  --popover: oklch(0.968 0.01 281.114);
  --popover-foreground: oklch(0.12 0.03 273.715);
  --card: oklch(0.968 0.01 281.114);
  --card-foreground: oklch(0.12 0.03 273.715);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.938 0 281.278);
  --primary-foreground: oklch(0.435 0.002 281.198);
  --secondary: oklch(0.939 0 101.295);
  --secondary-foreground: oklch(0.439 0.002 101.373);
  --accent: oklch(0.939 0 101.295);
  --accent-foreground: oklch(0.439 0.002 101.373);
  --destructive: oklch(0.475 0.146 38.566);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0 281.278);
  --chart-1: oklch(0.938 0 281.278);
  --chart-2: oklch(0.939 0 101.295);
  --chart-3: oklch(0.939 0 101.295);
  --chart-4: oklch(0.962 0 101.292);
  --chart-5: oklch(0.937 0.002 281.253);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.019 275.148);
  --foreground: oklch(0.992 0.001 281.272);
  --muted: oklch(0.298 0.029 102.606);
  --muted-foreground: oklch(0.754 0.034 101.953);
  --popover: oklch(0.112 0.022 275.183);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.022 275.183);
  --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.938 0 281.278);
  --primary-foreground: oklch(0.435 0.002 281.198);
  --secondary: oklch(0.939 0 101.295);
  --secondary-foreground: oklch(0.439 0.002 101.373);
  --accent: oklch(0.939 0 101.295);
  --accent-foreground: oklch(0.439 0.002 101.373);
  --destructive: oklch(0.642 0.203 37.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0 281.278);
  --chart-1: oklch(0.938 0 281.278);
  --chart-2: oklch(0.939 0 101.295);
  --chart-3: oklch(0.939 0 101.295);
  --chart-4: oklch(0.962 0 101.292);
  --chart-5: oklch(0.937 0.002 281.253);
}