Outrigger for shadcn/ui

Outrigger is a shadcn/ui theme built around a neutral gray primary color (#2d2b2a) with neutral gray accents (#2d2d2a). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#2d2b2a) on an orange-tinted background (#0b0805).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0805black
Foreground
#120a02black
#fdfcfcsnow
Card
#ffffffwhite
#0b0805black
Card foreground
#120a02black
#fdfcfcsnow
Popover
#ffffffwhite
#0b0805black
Popover foreground
#120a02black
#fdfcfcsnow
Primary
#2d2b2adarkslategray
#2d2b2adarkslategray
Primary foreground
#c6c4c3silver
#c6c4c3silver
Secondary
#2d2a2adarkslategray
#2d2a2adarkslategray
Secondary foreground
#c6c3c3silver
#c6c3c3silver
Muted
#f6eeeelinen
#110909black
Muted foreground
#544040darkslategray
#bfababdarkgray
Accent
#2d2d2adarkslategray
#2d2d2adarkslategray
Accent foreground
#c6c6c3silver
#c6c6c3silver
Destructive
#aa2a13firebrick
#e74023orangered
Destructive foreground
#fdf3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d2b2adarkslategray
#2d2b2adarkslategray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button8.08:1AAA
Secondary button8.13:1AAA
Muted text8.43:1AAA
Accent8.10:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button8.08:1AAA
Secondary button8.13:1AAA
Muted text9.03:1AAA
Accent8.10:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.025 73.753);
  --muted: oklch(0.956 0.009 17.306);
  --muted-foreground: oklch(0.393 0.027 18.357);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.025 73.753);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.154 0.025 73.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.291 0.003 67.708);
  --primary-foreground: oklch(0.822 0.003 67.78);
  --secondary: oklch(0.288 0.004 17.377);
  --secondary-foreground: oklch(0.819 0.004 17.237);
  --accent: oklch(0.295 0.005 106.68);
  --accent-foreground: oklch(0.826 0.005 106.505);
  --destructive: oklch(0.487 0.168 32.27);
  --destructive-foreground: oklch(0.972 0.012 29.51);
  --ring: oklch(0.291 0.003 67.708);
  --chart-1: oklch(0.291 0.003 67.708);
  --chart-2: oklch(0.288 0.004 17.377);
  --chart-3: oklch(0.295 0.005 106.68);
  --chart-4: oklch(0.318 0.004 17.386);
  --chart-5: oklch(0.292 0.006 67.59);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.01 73.262);
  --foreground: oklch(0.993 0.001 67.807);
  --muted: oklch(0.15 0.014 18.881);
  --muted-foreground: oklch(0.759 0.022 17.654);
  --popover: oklch(0.135 0.01 73.262);
  --popover-foreground: oklch(0.993 0.001 67.807);
  --card: oklch(0.135 0.01 73.262);
  --card-foreground: oklch(0.993 0.001 67.807);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.291 0.003 67.708);
  --primary-foreground: oklch(0.822 0.003 67.78);
  --secondary: oklch(0.288 0.004 17.377);
  --secondary-foreground: oklch(0.819 0.004 17.237);
  --accent: oklch(0.295 0.005 106.68);
  --accent-foreground: oklch(0.826 0.005 106.505);
  --destructive: oklch(0.615 0.207 32.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.291 0.003 67.708);
  --chart-1: oklch(0.291 0.003 67.708);
  --chart-2: oklch(0.288 0.004 17.377);
  --chart-3: oklch(0.295 0.005 106.68);
  --chart-4: oklch(0.318 0.004 17.386);
  --chart-5: oklch(0.292 0.006 67.59);
}