Intrepid for shadcn/ui

Intrepid is a shadcn/ui theme built around a near-white primary color (#fffafb) with near-white accents (#fffbfa). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fffafb) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#ffffffwhite
#040202black
Foreground
#140609black
#fdfcfcsnow
Card
#fcfcfcsnow
#070304black
Card foreground
#100507black
#ffffffwhite
Popover
#ffffffwhite
#040202black
Popover foreground
#140609black
#fdfcfcsnow
Primary
#fffafbsnow
#fffafbsnow
Primary foreground
#bc0b34firebrick
#bc0b34firebrick
Secondary
#fffafesnow
#fffafesnow
Secondary foreground
#5c0545indigo
#5c0545indigo
Muted
#ede3eblavender
#1c1219black
Muted foreground
#564351darkslategray
#bca9b7darkgray
Accent
#fffbfasnow
#fffbfasnow
Accent foreground
#5c1c05maroon
#5c1c05maroon
Destructive
#8b1c04darkred
#f9431aorangered
Destructive foreground
#fdcec3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fffafbsnow
#fffafbsnow

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.62:1AAA
Primary button6.28:1AA
Secondary button13.03:1AAA
Muted text7.23:1AAA
Accent12.61:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.49:1AAA
Primary button6.28:1AA
Secondary button13.03:1AAA
Muted text8.26:1AAA
Accent12.61:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.028 3.984);
  --muted: oklch(0.926 0.015 334.815);
  --muted-foreground: oklch(0.408 0.036 335.983);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.028 3.984);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.134 0.024 2.388);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.005 1.102);
  --primary-foreground: oklch(0.507 0.199 18.974);
  --secondary: oklch(0.99 0.006 334.642);
  --secondary-foreground: oklch(0.321 0.132 342.652);
  --accent: oklch(0.991 0.004 41.273);
  --accent-foreground: oklch(0.325 0.098 38.49);
  --destructive: oklch(0.417 0.149 33.213);
  --destructive-foreground: oklch(0.89 0.056 32.816);
  --ring: oklch(0.989 0.005 1.102);
  --chart-1: oklch(0.989 0.005 1.102);
  --chart-2: oklch(0.99 0.006 334.642);
  --chart-3: oklch(0.991 0.004 41.273);
  --chart-4: oklch(1.02 0.013 154.304);
  --chart-5: oklch(0.989 0.005 1.107);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 0.973);
  --foreground: oklch(0.992 0.001 0.989);
  --muted: oklch(0.198 0.023 336.407);
  --muted-foreground: oklch(0.755 0.03 335.218);
  --popover: oklch(0.086 0.009 0.973);
  --popover-foreground: oklch(0.992 0.001 0.989);
  --card: oklch(0.109 0.012 0.973);
  --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.989 0.005 1.102);
  --primary-foreground: oklch(0.507 0.199 18.974);
  --secondary: oklch(0.99 0.006 334.642);
  --secondary-foreground: oklch(0.321 0.132 342.652);
  --accent: oklch(0.991 0.004 41.273);
  --accent-foreground: oklch(0.325 0.098 38.49);
  --destructive: oklch(0.649 0.224 33.44);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.005 1.102);
  --chart-1: oklch(0.989 0.005 1.102);
  --chart-2: oklch(0.99 0.006 334.642);
  --chart-3: oklch(0.991 0.004 41.273);
  --chart-4: oklch(1.02 0.013 154.304);
  --chart-5: oklch(0.989 0.005 1.107);
}