Fort for shadcn/ui

Fort is a shadcn/ui theme built around a muted green primary color (#5e6345) with muted purple accents (#63455e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#5e6345) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040401black
#fdfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#5e6345darkolivegreen
#5e6345darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#455e63darkslategray
#455e63darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0e2e6gainsboro
#192b2fdarkslategray
Muted foreground
#454545darkslategray
#bababasilver
Accent
#63455edimgray
#63455edimgray
Accent foreground
#f0eaefwhitesmoke
#f0eaefwhitesmoke
Destructive
#b02a0cfirebrick
#ea3810orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e6345darkolivegreen
#5e6345darkolivegreen

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button6.25:1AA
Secondary button6.93:1AA
Muted text7.18:1AAA
Accent6.96:1AA
Destructive6.03:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button6.25:1AA
Secondary button6.93:1AA
Muted text7.60:1AAA
Accent6.96:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.016 115.56);
  --muted: oklch(0.901 0.02 212.701);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.016 115.56);
  --card: oklch(0.992 0 161.565);
  --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.487 0.046 116.6);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.463 0.031 213.017);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.433 0.056 333.127);
  --accent-foreground: oklch(0.943 0.01 331.554);
  --destructive: oklch(0.499 0.175 33.271);
  --destructive-foreground: oklch(0.972 0.012 32.664);
  --ring: oklch(0.487 0.046 116.6);
  --chart-1: oklch(0.487 0.046 116.6);
  --chart-2: oklch(0.463 0.031 213.017);
  --chart-3: oklch(0.433 0.056 333.127);
  --chart-4: oklch(0.492 0.033 213.026);
  --chart-5: oklch(0.494 0.053 116.855);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 114.858);
  --muted: oklch(0.274 0.025 213.384);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 114.858);
  --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.487 0.046 116.6);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.463 0.031 213.017);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.433 0.056 333.127);
  --accent-foreground: oklch(0.943 0.01 331.554);
  --destructive: oklch(0.613 0.218 33.072);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.046 116.6);
  --chart-1: oklch(0.487 0.046 116.6);
  --chart-2: oklch(0.463 0.031 213.017);
  --chart-3: oklch(0.433 0.056 333.127);
  --chart-4: oklch(0.492 0.033 213.026);
  --chart-5: oklch(0.494 0.053 116.855);
}