Gregarious for shadcn/ui

Gregarious is a shadcn/ui theme built around a muted deep orange primary color (#504234) with muted deep blue accents (#344250). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted deep orange primary (#504234) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070503black
Foreground
#080502black
#fbfaf8snow
Card
#fefcfbsnow
#070503black
Card foreground
#080502black
#fbfaf8snow
Popover
#fefcfbsnow
#070503black
Popover foreground
#080502black
#fbfaf8snow
Primary
#504234darkolivegreen
#504234darkolivegreen
Primary foreground
#e3dbd4gainsboro
#e3dbd4gainsboro
Secondary
#344250darkslategray
#344250darkslategray
Secondary foreground
#d4dbe3gainsboro
#d4dbe3gainsboro
Muted
#d5e0ecgainsboro
#131f2ablack
Muted foreground
#444a50darkslategray
#afb5bbsilver
Accent
#344250darkslategray
#344250darkslategray
Accent foreground
#d4dbe3gainsboro
#d4dbe3gainsboro
Destructive
#c43303firebrick
#fb490eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#504234darkolivegreen
#504234darkolivegreen

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button7.04:1AAA
Secondary button7.33:1AAA
Muted text6.72:1AA
Accent7.33:1AAA
Destructive5.49:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.04:1AAA
Secondary button7.33:1AAA
Muted text8.09:1AAA
Accent7.33:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 67.8);
  --foreground: oklch(0.119 0.013 75.912);
  --muted: oklch(0.903 0.02 248.047);
  --muted-foreground: oklch(0.406 0.013 248.138);
  --popover: oklch(0.993 0.002 67.8);
  --popover-foreground: oklch(0.119 0.013 75.912);
  --card: oklch(0.993 0.002 67.8);
  --card-foreground: oklch(0.119 0.013 75.912);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.03 66.778);
  --primary-foreground: oklch(0.896 0.013 67.659);
  --secondary: oklch(0.374 0.03 248.639);
  --secondary-foreground: oklch(0.889 0.013 247.975);
  --accent: oklch(0.374 0.03 248.639);
  --accent-foreground: oklch(0.889 0.013 247.975);
  --destructive: oklch(0.542 0.188 35.216);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.03 66.778);
  --chart-1: oklch(0.391 0.03 66.778);
  --chart-2: oklch(0.374 0.03 248.639);
  --chart-3: oklch(0.374 0.03 248.639);
  --chart-4: oklch(0.402 0.033 248.655);
  --chart-5: oklch(0.392 0.034 66.582);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.01 73.903);
  --foreground: oklch(0.986 0.003 67.791);
  --muted: oklch(0.233 0.027 249.072);
  --muted-foreground: oklch(0.77 0.011 247.966);
  --popover: oklch(0.118 0.01 73.903);
  --popover-foreground: oklch(0.986 0.003 67.791);
  --card: oklch(0.118 0.01 73.903);
  --card-foreground: oklch(0.986 0.003 67.791);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.03 66.778);
  --primary-foreground: oklch(0.896 0.013 67.659);
  --secondary: oklch(0.374 0.03 248.639);
  --secondary-foreground: oklch(0.889 0.013 247.975);
  --accent: oklch(0.374 0.03 248.639);
  --accent-foreground: oklch(0.889 0.013 247.975);
  --destructive: oklch(0.658 0.222 35.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.03 66.778);
  --chart-1: oklch(0.391 0.03 66.778);
  --chart-2: oklch(0.374 0.03 248.639);
  --chart-3: oklch(0.374 0.03 248.639);
  --chart-4: oklch(0.402 0.033 248.655);
  --chart-5: oklch(0.392 0.034 66.582);
}