Forte for shadcn/ui

Forte is a shadcn/ui theme built around a muted green primary color (#5ea16b) with muted light green accents (#ced9d0). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted green primary (#5ea16b) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#020302black
Foreground
#041507black
#f7f8f7whitesmoke
Card
#f7fdf8mintcream
#020302black
Card foreground
#041507black
#f7f8f7whitesmoke
Popover
#f7fdf8mintcream
#020302black
Popover foreground
#041507black
#f7f8f7whitesmoke
Primary
#5ea16bmediumseagreen
#5ea16bmediumseagreen
Primary foreground
#000000black
#000000black
Secondary
#ced9d0lightgrey
#263128darkslategray
Secondary foreground
#334236darkslategray
#bdccc0silver
Muted
#dce5ddgainsboro
#1a231cblack
Muted foreground
#4a5e4edarkslategray
#a1b5a4darkgray
Accent
#ced9d0lightgrey
#263128darkslategray
Accent foreground
#334236darkslategray
#bdccc0silver
Destructive
#cb1010firebrick
#e21212red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5ea16bmediumseagreen
#5ea16bmediumseagreen

Contrast

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

Light mode
Text on background18.21:1AAA
Text on card18.21:1AAA
Primary button6.76:1AA
Secondary button7.34:1AAA
Muted text5.42:1AA
Accent7.34:1AAA
Destructive5.80:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.76:1AA
Secondary button8.10:1AAA
Muted text7.41:1AAA
Accent8.10:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 151.289);
  --foreground: oklch(0.177 0.038 148.861);
  --muted: oklch(0.913 0.014 151.185);
  --muted-foreground: oklch(0.461 0.036 150.216);
  --popover: oklch(0.988 0.008 151.289);
  --popover-foreground: oklch(0.177 0.038 148.861);
  --card: oklch(0.988 0.008 151.289);
  --card-foreground: oklch(0.177 0.038 148.861);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.105 148.723);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.875 0.017 151.119);
  --secondary-foreground: oklch(0.363 0.029 150.193);
  --accent: oklch(0.875 0.017 151.119);
  --accent-foreground: oklch(0.363 0.029 150.193);
  --destructive: oklch(0.533 0.212 28.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.105 148.723);
  --chart-1: oklch(0.649 0.105 148.723);
  --chart-2: oklch(0.875 0.017 151.119);
  --chart-3: oklch(0.875 0.017 151.119);
  --chart-4: oklch(0.897 0.014 151.178);
  --chart-5: oklch(0.656 0.116 148.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 150.791);
  --foreground: oklch(0.978 0.003 151.37);
  --muted: oklch(0.245 0.019 150.216);
  --muted-foreground: oklch(0.753 0.032 150.776);
  --popover: oklch(0.095 0.011 150.791);
  --popover-foreground: oklch(0.978 0.003 151.37);
  --card: oklch(0.095 0.011 150.791);
  --card-foreground: oklch(0.978 0.003 151.37);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.105 148.723);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.299 0.023 150.27);
  --secondary-foreground: oklch(0.83 0.024 150.989);
  --accent: oklch(0.299 0.023 150.27);
  --accent-foreground: oklch(0.83 0.024 150.989);
  --destructive: oklch(0.579 0.231 28.596);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.105 148.723);
  --chart-1: oklch(0.649 0.105 148.723);
  --chart-2: oklch(0.299 0.023 150.27);
  --chart-3: oklch(0.299 0.023 150.27);
  --chart-4: oklch(0.331 0.026 150.227);
  --chart-5: oklch(0.656 0.116 148.427);
}