Foro theme for shadcn/ui

Foro theme is a shadcn/ui theme built around a vivid teal primary color (#63f1b9) with muted light purple accents (#dad3d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#68f5bd) on a blue-tinted background (#05060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060eblack
Foreground
#040103black
#fbf9fasnow
Card
#fbf8f8snow
#0b0b18black
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#07070eblack
Popover foreground
#040103black
#fbf9fasnow
Primary
#63f1b9mediumaquamarine
#68f5bdaquamarine
Primary foreground
#310222black
#000000black
Secondary
#e4e2e3gainsboro
#241e22black
Secondary foreground
#252424darkslategray
#dededegainsboro
Muted
#efebeewhitesmoke
#141013black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#dad3d8lightgrey
#372a33darkslategray
Accent foreground
#43383fdarkslategray
#d1c2ccthistle
Destructive
#ff1e1ered
#f03d3dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#f4f0f3whitesmoke
#291f26darkslategray
Input
#f4f0f3whitesmoke
#291f26darkslategray
Ring
#63f1b9mediumaquamarine
#6ee7b7mediumaquamarine

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card19.85:1AAA
Primary button12.77:1AAA
Secondary button12.01:1AAA
Muted text8.79:1AAA
Accent7.58:1AAA
Destructive3.84:1AA Large
Dark mode
Text on background19.28:1AAA
Text on card19.09:1AAA
Primary button15.41:1AAA
Secondary button12.11:1AAA
Muted text10.27:1AAA
Accent7.99:1AAA
Destructive5.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.017 336.997);
  --muted: oklch(0.944 0.006 336.673);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.085 0.017 336.997);
  --card: oklch(0.981 0.004 17.218);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.96 0.005 336.661);
  --input: oklch(0.96 0.005 336.661);
  --primary: oklch(0.867 0.147 163.995);
  --primary-foreground: oklch(0.213 0.087 344.234);
  --secondary: oklch(0.915 0.002 336.61);
  --secondary-foreground: oklch(0.261 0.002 17.297);
  --accent: oklch(0.873 0.011 336.793);
  --accent-foreground: oklch(0.354 0.02 337.615);
  --destructive: oklch(0.636 0.249 28.235);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.147 164.112);
  --chart-1: oklch(0.867 0.147 163.995);
  --chart-2: oklch(0.915 0.002 336.61);
  --chart-3: oklch(0.873 0.011 336.793);
  --chart-4: oklch(0.938 0.002 336.595);
  --chart-5: oklch(0.872 0.151 163.758);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.019 273.143);
  --foreground: oklch(0.984 0.002 336.607);
  --muted: oklch(0.179 0.008 337.449);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.133 0.016 283.983);
  --popover-foreground: oklch(0.984 0.002 336.607);
  --card: oklch(0.157 0.027 282.898);
  --card-foreground: oklch(0.992 0.001 336.583);
  --border: oklch(0.253 0.02 338.004);
  --input: oklch(0.253 0.02 338.004);
  --primary: oklch(0.879 0.147 164.192);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.245 0.01 337.372);
  --secondary-foreground: oklch(0.9 0 180);
  --accent: oklch(0.303 0.025 338.117);
  --accent-foreground: oklch(0.829 0.022 337.064);
  --destructive: oklch(0.632 0.216 25.967);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.845 0.13 164.979);
  --chart-1: oklch(0.879 0.147 164.192);
  --chart-2: oklch(0.245 0.01 337.372);
  --chart-3: oklch(0.303 0.025 338.117);
  --chart-4: oklch(0.276 0.013 337.42);
  --chart-5: oklch(0.884 0.151 163.972);
}