Hypothesis for shadcn/ui

Hypothesis is a shadcn/ui theme built around a deep red primary color (#6a3229) with deep indigo accents (#32296a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#6a3229) on a red-tinted background (#100605).

Color palette

TokenLightDark
Background
#ffffffwhite
#100605black
Foreground
#150705black
#fdfcfcsnow
Card
#ffffffwhite
#100605black
Card foreground
#150705black
#fdfcfcsnow
Popover
#ffffffwhite
#100605black
Popover foreground
#150705black
#fdfcfcsnow
Primary
#6a3229saddlebrown
#6a3229saddlebrown
Primary foreground
#efdad7gainsboro
#efdad7gainsboro
Secondary
#296a32forestgreen
#296a32forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6dbd7gainsboro
#242925darkslategray
Muted foreground
#454a46darkslategray
#b5bab6silver
Accent
#32296amidnightblue
#32296amidnightblue
Accent foreground
#dad7efgainsboro
#dad7efgainsboro
Destructive
#7a1b01maroon
#fe5020orangered
Destructive foreground
#ffbfaelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6a3229saddlebrown
#6a3229saddlebrown

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button7.43:1AAA
Secondary button6.51:1AA
Muted text6.45:1AA
Accent8.95:1AAA
Destructive6.72:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.43:1AAA
Secondary button6.51:1AA
Muted text7.55:1AAA
Accent8.95:1AAA
Destructive3.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.027 32.898);
  --muted: oklch(0.887 0.007 149.582);
  --muted-foreground: oklch(0.402 0.008 149.426);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.027 32.898);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.15 0.027 32.898);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.083 30.26);
  --primary-foreground: oklch(0.905 0.024 28.089);
  --secondary: oklch(0.469 0.11 146.076);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.332 0.109 284.833);
  --accent-foreground: oklch(0.888 0.034 291.819);
  --destructive: oklch(0.381 0.133 34.865);
  --destructive-foreground: oklch(0.859 0.077 36.023);
  --ring: oklch(0.391 0.083 30.26);
  --chart-1: oklch(0.391 0.083 30.26);
  --chart-2: oklch(0.469 0.11 146.076);
  --chart-3: oklch(0.332 0.109 284.833);
  --chart-4: oklch(0.503 0.119 146.028);
  --chart-5: oklch(0.391 0.088 30.461);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.019 32.182);
  --foreground: oklch(0.992 0.001 27.938);
  --muted: oklch(0.273 0.01 149.232);
  --muted-foreground: oklch(0.784 0.007 149.573);
  --popover: oklch(0.138 0.019 32.182);
  --popover-foreground: oklch(0.992 0.001 27.938);
  --card: oklch(0.138 0.019 32.182);
  --card-foreground: oklch(0.992 0.001 27.938);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.083 30.26);
  --primary-foreground: oklch(0.905 0.024 28.089);
  --secondary: oklch(0.469 0.11 146.076);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.332 0.109 284.833);
  --accent-foreground: oklch(0.888 0.034 291.819);
  --destructive: oklch(0.67 0.218 35.192);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.083 30.26);
  --chart-1: oklch(0.391 0.083 30.26);
  --chart-2: oklch(0.469 0.11 146.076);
  --chart-3: oklch(0.332 0.109 284.833);
  --chart-4: oklch(0.503 0.119 146.028);
  --chart-5: oklch(0.391 0.088 30.461);
}