Fatigues for shadcn/ui

Fatigues is a shadcn/ui theme built around a vivid light green primary color (#f0feeb) with vivid light purple accents (#faebfe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#f0feeb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030902black
#f9fcf8mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#020401black
#fcfdfbsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#030902black
#f9fcf8mintcream
Primary
#f0feebhoneydew
#f0feebhoneydew
Primary foreground
#144f02darkgreen
#144f02darkgreen
Secondary
#faebfelavenderblush
#faebfelavenderblush
Secondary foreground
#8a06b2darkviolet
#8a06b2darkviolet
Muted
#efe3f3lavender
#190c1cblack
Muted foreground
#615266dimgray
#a999addarkgray
Accent
#faebfelavenderblush
#faebfelavenderblush
Accent foreground
#8a06b2darkviolet
#8a06b2darkviolet
Destructive
#993c0bsaddlebrown
#d7550fchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0feebhoneydew
#f0feebhoneydew

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.13:1AAA
Primary button9.36:1AAA
Secondary button6.69:1AA
Muted text5.81:1AA
Accent6.69:1AA
Destructive6.99:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.26:1AAA
Primary button9.36:1AAA
Secondary button6.69:1AA
Muted text7.05:1AAA
Accent6.69:1AA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.027 136.215);
  --muted: oklch(0.929 0.025 318.304);
  --muted-foreground: oklch(0.46 0.038 318.247);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.027 136.215);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.021 136.215);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.03 138.362);
  --primary-foreground: oklch(0.376 0.119 140.088);
  --secondary: oklch(0.958 0.03 318.299);
  --secondary-foreground: oklch(0.475 0.231 314.869);
  --accent: oklch(0.958 0.03 318.299);
  --accent-foreground: oklch(0.475 0.231 314.869);
  --destructive: oklch(0.478 0.135 43.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.03 138.362);
  --chart-1: oklch(0.982 0.03 138.362);
  --chart-2: oklch(0.958 0.03 318.299);
  --chart-3: oklch(0.958 0.03 318.299);
  --chart-4: oklch(0.989 0.007 318.323);
  --chart-5: oklch(0.983 0.03 138.363);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.006 138.337);
  --muted: oklch(0.182 0.036 318.059);
  --muted-foreground: oklch(0.703 0.034 318.282);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.006 138.337);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.003 138.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.982 0.03 138.362);
  --primary-foreground: oklch(0.376 0.119 140.088);
  --secondary: oklch(0.958 0.03 318.299);
  --secondary-foreground: oklch(0.475 0.231 314.869);
  --accent: oklch(0.958 0.03 318.299);
  --accent-foreground: oklch(0.475 0.231 314.869);
  --destructive: oklch(0.612 0.178 42.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.03 138.362);
  --chart-1: oklch(0.982 0.03 138.362);
  --chart-2: oklch(0.958 0.03 318.299);
  --chart-3: oklch(0.958 0.03 318.299);
  --chart-4: oklch(0.989 0.007 318.323);
  --chart-5: oklch(0.983 0.03 138.363);
}