Forsaken for shadcn/ui

Forsaken is a shadcn/ui theme built around a green primary color (#23954b) with teal accents (#239584). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#23954b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#05150ablack
#fcfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#041008black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#05150ablack
#fcfdfcwhite
Primary
#23954bseagreen
#23954bseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#349523forestgreen
#349523forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dae9d8gainsboro
#192716black
Muted foreground
#616660dimgray
#999f99darkgray
Accent
#239584darkcyan
#239584darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#95370fsaddlebrown
#ed7845coral
Destructive foreground
#fbe4daantiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#23954bseagreen
#23954bseagreen

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.97:1AAA
Primary button3.85:1AA Large
Secondary button3.85:1AA Large
Muted text4.64:1AA
Accent3.69:1AA Large
Destructive6.10:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button3.85:1AA Large
Secondary button3.85:1AA Large
Muted text5.78:1AA
Accent3.69:1AA Large
Destructive7.34:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.031 154.76);
  --muted: oklch(0.918 0.028 140.999);
  --muted-foreground: oklch(0.505 0.011 141.017);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.031 154.76);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.159 0.026 156.188);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.59 0.148 150.132);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.59 0.173 140.997);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.604 0.101 180.092);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.464 0.135 40.218);
  --destructive-foreground: oklch(0.935 0.029 44.69);
  --ring: oklch(0.59 0.148 150.132);
  --chart-1: oklch(0.59 0.148 150.132);
  --chart-2: oklch(0.59 0.173 140.997);
  --chart-3: oklch(0.604 0.101 180.092);
  --chart-4: oklch(0.625 0.185 141.008);
  --chart-5: oklch(0.597 0.153 149.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 157.95);
  --muted: oklch(0.255 0.037 140.777);
  --muted-foreground: oklch(0.695 0.01 141.033);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 157.95);
  --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.59 0.148 150.132);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.59 0.173 140.997);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.604 0.101 180.092);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.697 0.158 42.669);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.59 0.148 150.132);
  --chart-1: oklch(0.59 0.148 150.132);
  --chart-2: oklch(0.59 0.173 140.997);
  --chart-3: oklch(0.604 0.101 180.092);
  --chart-4: oklch(0.625 0.185 141.008);
  --chart-5: oklch(0.597 0.153 149.806);
}