Audience for shadcn/ui

Audience is a shadcn/ui theme built around a deep blue primary color (#13283a) with deep green accents (#283a13). The light mode uses a neutral background (#f8fafc). Dark mode keeps the deep blue primary (#13283a) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#020508black
Foreground
#020508black
#f6f7f9whitesmoke
Card
#f4f8fbghostwhite
#04080cblack
Card foreground
#010304black
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#020508black
Popover foreground
#020508black
#f6f7f9whitesmoke
Primary
#13283adarkslategray
#13283adarkslategray
Primary foreground
#9fc3e0lightsteelblue
#9fc3e0lightsteelblue
Secondary
#3a1328darkslategray
#3a1328darkslategray
Secondary foreground
#e09fc3plum
#e09fc3plum
Muted
#efe7eblinen
#181015black
Muted foreground
#4a3b43darkslategray
#c4b5bdsilver
Accent
#283a13darkgreen
#283a13darkgreen
Accent foreground
#92c752yellowgreen
#92c752yellowgreen
Destructive
#993b05saddlebrown
#f8762atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13283adarkslategray
#13283adarkslategray

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.31:1AAA
Primary button8.14:1AAA
Secondary button7.62:1AAA
Muted text8.62:1AAA
Accent6.18:1AA
Destructive7.01:1AAA
Dark mode
Text on background19.02:1AAA
Text on card19.23:1AAA
Primary button8.14:1AAA
Secondary button7.62:1AAA
Muted text9.48:1AAA
Accent6.18:1AA
Destructive7.62:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 242.243);
  --foreground: oklch(0.113 0.013 233.874);
  --muted: oklch(0.934 0.011 342.895);
  --muted-foreground: oklch(0.371 0.024 344.144);
  --popover: oklch(0.984 0.004 242.243);
  --popover-foreground: oklch(0.113 0.013 233.874);
  --card: oklch(0.976 0.006 242.268);
  --card-foreground: oklch(0.09 0.011 233.874);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.269 0.043 245.043);
  --primary-foreground: oklch(0.799 0.057 243.185);
  --secondary: oklch(0.256 0.068 348.869);
  --secondary-foreground: oklch(0.775 0.09 345.271);
  --accent: oklch(0.322 0.065 129.746);
  --accent-foreground: oklch(0.768 0.158 129.801);
  --destructive: oklch(0.478 0.138 43.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.269 0.043 245.043);
  --chart-1: oklch(0.269 0.043 245.043);
  --chart-2: oklch(0.256 0.068 348.869);
  --chart-3: oklch(0.322 0.065 129.746);
  --chart-4: oklch(0.286 0.079 349.168);
  --chart-5: oklch(0.269 0.045 245.283);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.011 235.043);
  --foreground: oklch(0.977 0.002 242.225);
  --muted: oklch(0.187 0.016 344.607);
  --muted-foreground: oklch(0.789 0.02 343.225);
  --popover: oklch(0.114 0.011 235.043);
  --popover-foreground: oklch(0.977 0.002 242.225);
  --card: oklch(0.13 0.013 235.583);
  --card-foreground: oklch(0.985 0.002 242.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.269 0.043 245.043);
  --primary-foreground: oklch(0.799 0.057 243.185);
  --secondary: oklch(0.256 0.068 348.869);
  --secondary-foreground: oklch(0.775 0.09 345.271);
  --accent: oklch(0.322 0.065 129.746);
  --accent-foreground: oklch(0.768 0.158 129.801);
  --destructive: oklch(0.709 0.18 46.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.269 0.043 245.043);
  --chart-1: oklch(0.269 0.043 245.043);
  --chart-2: oklch(0.256 0.068 348.869);
  --chart-3: oklch(0.322 0.065 129.746);
  --chart-4: oklch(0.286 0.079 349.168);
  --chart-5: oklch(0.269 0.045 245.283);
}