Founding for shadcn/ui

Founding is a shadcn/ui theme built around a neutral gray primary color (#4a4945) with neutral gray accents (#45464a). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4a4945) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#ffffffwhite
#070703black
Foreground
#131206black
#fcfcf8snow
Card
#fcfcfcsnow
#0a0a05black
Card foreground
#0f0e05black
#fdfdfbsnow
Popover
#ffffffwhite
#070703black
Popover foreground
#131206black
#fcfcf8snow
Primary
#4a4945darkslategray
#4a4945darkslategray
Primary foreground
#e1e1dfgainsboro
#e1e1dfgainsboro
Secondary
#45464adarkslategray
#45464adarkslategray
Secondary foreground
#dfe0e1gainsboro
#dfe0e1gainsboro
Muted
#f1f1f4whitesmoke
#0b0c0eblack
Muted foreground
#3e3f41darkslategray
#bebec1silver
Accent
#45464adarkslategray
#45464adarkslategray
Accent foreground
#dfe0e1gainsboro
#dfe0e1gainsboro
Destructive
#712a04saddlebrown
#f7691dchocolate
Destructive foreground
#fcc8abnavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a4945darkslategray
#4a4945darkslategray

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.93:1AAA
Primary button6.87:1AA
Secondary button7.15:1AAA
Muted text9.35:1AAA
Accent7.15:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.48:1AAA
Primary button6.87:1AA
Secondary button7.15:1AAA
Muted text10.56:1AAA
Accent7.15:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.18 0.023 104.07);
  --muted: oklch(0.959 0.003 282.153);
  --muted-foreground: oklch(0.367 0.004 282.031);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.18 0.023 104.07);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.163 0.02 104.277);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.006 102.469);
  --primary-foreground: oklch(0.91 0.002 102.253);
  --secondary: oklch(0.394 0.007 281.931);
  --secondary-foreground: oklch(0.906 0.002 282.17);
  --accent: oklch(0.394 0.007 281.931);
  --accent-foreground: oklch(0.906 0.002 282.17);
  --destructive: oklch(0.385 0.11 43.19);
  --destructive-foreground: oklch(0.871 0.071 49.701);
  --ring: oklch(0.405 0.006 102.469);
  --chart-1: oklch(0.405 0.006 102.469);
  --chart-2: oklch(0.394 0.007 281.931);
  --chart-3: oklch(0.394 0.007 281.931);
  --chart-4: oklch(0.422 0.007 281.927);
  --chart-5: oklch(0.411 0.013 102.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.011 104.247);
  --foreground: oklch(0.989 0.005 102.292);
  --muted: oklch(0.153 0.005 281.599);
  --muted-foreground: oklch(0.803 0.003 282.145);
  --popover: oklch(0.124 0.011 104.247);
  --popover-foreground: oklch(0.989 0.005 102.292);
  --card: oklch(0.143 0.012 104.245);
  --card-foreground: oklch(0.994 0.002 102.252);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.006 102.469);
  --primary-foreground: oklch(0.91 0.002 102.253);
  --secondary: oklch(0.394 0.007 281.931);
  --secondary-foreground: oklch(0.906 0.002 282.17);
  --accent: oklch(0.394 0.007 281.931);
  --accent-foreground: oklch(0.906 0.002 282.17);
  --destructive: oklch(0.688 0.191 43.515);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.405 0.006 102.469);
  --chart-1: oklch(0.405 0.006 102.469);
  --chart-2: oklch(0.394 0.007 281.931);
  --chart-3: oklch(0.394 0.007 281.931);
  --chart-4: oklch(0.422 0.007 281.927);
  --chart-5: oklch(0.411 0.013 102.705);
}