Extroverted for shadcn/ui

Extroverted is a shadcn/ui theme built around a neutral gray primary color (#797a81) with neutral gray accents (#818079). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#797a81) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#fbfcfewhite
#010104black
Foreground
#050714black
#ffffffwhite
Card
#f8f8fcghostwhite
#020308black
Card foreground
#040610black
#ffffffwhite
Popover
#f8f8fcghostwhite
#020308black
Popover foreground
#040610black
#ffffffwhite
Primary
#797a81gray
#797a81gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#818079gray
#818079gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeede8linen
#171711black
Muted foreground
#585546darkolivegreen
#b9b6a7darkgray
Accent
#818079gray
#818079gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dd2f03orangered
#f63404orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#797a81gray
#797a81gray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.11:1AAA
Primary button4.26:1AA Large
Secondary button3.97:1AA Large
Muted text6.37:1AA
Accent3.97:1AA Large
Destructive4.68:1AA
Dark mode
Text on background20.80:1AAA
Text on card20.61:1AAA
Primary button4.26:1AA Large
Secondary button3.97:1AA Large
Muted text8.84:1AAA
Accent3.97:1AA Large
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 279.303);
  --foreground: oklch(0.136 0.029 273.489);
  --muted: oklch(0.945 0.007 99.452);
  --muted-foreground: oklch(0.449 0.024 100.056);
  --popover: oklch(0.981 0.005 279.265);
  --popover-foreground: oklch(0.126 0.025 273.105);
  --card: oklch(0.981 0.005 279.265);
  --card-foreground: oklch(0.126 0.025 273.105);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.581 0.01 279.079);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.01 99.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.01 99.577);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.583 0.214 32.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.01 279.079);
  --chart-1: oklch(0.581 0.01 279.079);
  --chart-2: oklch(0.598 0.01 99.577);
  --chart-3: oklch(0.598 0.01 99.577);
  --chart-4: oklch(0.623 0.009 99.561);
  --chart-5: oklch(0.574 0.02 278.792);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.078 0.015 272.327);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.01 100.028);
  --muted-foreground: oklch(0.775 0.021 99.727);
  --popover: oklch(0.098 0.019 272.327);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.098 0.019 272.327);
  --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.581 0.01 279.079);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.01 99.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.01 99.577);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.632 0.232 32.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.01 279.079);
  --chart-1: oklch(0.581 0.01 279.079);
  --chart-2: oklch(0.598 0.01 99.577);
  --chart-3: oklch(0.598 0.01 99.577);
  --chart-4: oklch(0.623 0.009 99.561);
  --chart-5: oklch(0.574 0.02 278.792);
}