Speech for shadcn/ui

Speech is a shadcn/ui theme built around a muted green primary color (#7a8754) with muted light green accents (#d0d2cb). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted green primary (#7a8754) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#000000black
Foreground
#030401black
#ffffffwhite
Card
#fbfcf8snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfcwhite
#000000black
Popover foreground
#030401black
#ffffffwhite
Primary
#7a8754dimgray
#7a8754dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0d2cblightgrey
#343531darkslategray
Secondary foreground
#383a31darkslategray
#cdcecalightgrey
Muted
#e0e5d1gainsboro
#292e1adarkslategray
Muted foreground
#64675bdimgray
#a1a498darkgray
Accent
#d0d2cblightgrey
#343531darkslategray
Accent foreground
#383a31darkslategray
#cdcecalightgrey
Destructive
#c63215firebrick
#e94e2ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a8754dimgray
#7a8754dimgray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.34:1AAA
Primary button3.87:1AA Large
Secondary button7.60:1AAA
Muted text4.49:1AA Large
Accent7.60:1AAA
Destructive5.40:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button3.87:1AA Large
Secondary button7.80:1AAA
Muted text5.54:1AA
Accent7.80:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 117.87);
  --foreground: oklch(0.103 0.016 118.032);
  --muted: oklch(0.914 0.027 118.353);
  --muted-foreground: oklch(0.507 0.018 118.466);
  --popover: oklch(0.994 0.003 117.87);
  --popover-foreground: oklch(0.103 0.016 118.032);
  --card: oklch(0.989 0.005 117.915);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.6 0.073 120.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.861 0.011 118.046);
  --secondary-foreground: oklch(0.343 0.015 118.594);
  --accent: oklch(0.861 0.011 118.046);
  --accent-foreground: oklch(0.343 0.015 118.594);
  --destructive: oklch(0.546 0.189 32.851);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.073 120.08);
  --chart-1: oklch(0.6 0.073 120.08);
  --chart-2: oklch(0.861 0.011 118.046);
  --chart-3: oklch(0.861 0.011 118.046);
  --chart-4: oklch(0.884 0.009 118.005);
  --chart-5: oklch(0.608 0.081 120.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.289 0.035 120.052);
  --muted-foreground: oklch(0.713 0.017 118.244);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.6 0.073 120.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.327 0.007 118.215);
  --secondary-foreground: oklch(0.85 0.006 117.943);
  --accent: oklch(0.327 0.007 118.215);
  --accent-foreground: oklch(0.85 0.006 117.943);
  --destructive: oklch(0.635 0.196 33.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.073 120.08);
  --chart-1: oklch(0.6 0.073 120.08);
  --chart-2: oklch(0.327 0.007 118.215);
  --chart-3: oklch(0.327 0.007 118.215);
  --chart-4: oklch(0.357 0.008 118.226);
  --chart-5: oklch(0.608 0.081 120.337);
}