Forsaken for shadcn/ui

Forsaken is a shadcn/ui theme built around a yellow primary color (#e6cb75) with purple accents (#cb75e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#e6cb75) on a yellow-tinted background (#0c0a03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0a03black
Foreground
#090701black
#fcfbf8snow
Card
#ffffffwhite
#0c0a03black
Card foreground
#090701black
#fcfbf8snow
Popover
#ffffffwhite
#0c0a03black
Popover foreground
#090701black
#fcfbf8snow
Primary
#e6cb75burlywood
#e6cb75burlywood
Primary foreground
#221c06black
#221c06black
Secondary
#75e6cbaquamarine
#75e6cbaquamarine
Secondary foreground
#06221cblack
#06221cblack
Muted
#e1eae8gainsboro
#151e1cblack
Muted foreground
#454545darkslategray
#bababasilver
Accent
#cb75e6orchid
#cb75e6orchid
Accent foreground
#1c0622black
#1c0622black
Destructive
#d82a03orangered
#fb3104orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6cb75burlywood
#e6cb75burlywood

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button10.66:1AAA
Secondary button11.09:1AAA
Muted text7.80:1AAA
Accent6.59:1AA
Destructive4.93:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button10.66:1AAA
Secondary button11.09:1AAA
Muted text8.79:1AAA
Accent6.59:1AA
Destructive3.78:1AA Large

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.129 0.02 98.567);
  --muted: oklch(0.929 0.009 180.684);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.02 98.567);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.02 98.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.847 0.111 92.943);
  --primary-foreground: oklch(0.228 0.037 92.648);
  --secondary: oklch(0.85 0.111 176.29);
  --secondary-foreground: oklch(0.23 0.036 174.862);
  --accent: oklch(0.7 0.18 317.9);
  --accent-foreground: oklch(0.179 0.061 317.684);
  --destructive: oklch(0.571 0.212 32.46);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.111 92.943);
  --chart-1: oklch(0.847 0.111 92.943);
  --chart-2: oklch(0.85 0.111 176.29);
  --chart-3: oklch(0.7 0.18 317.9);
  --chart-4: oklch(0.862 0.102 176.87);
  --chart-5: oklch(0.852 0.114 92.891);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 96.756);
  --foreground: oklch(0.988 0.004 92.694);
  --muted: oklch(0.224 0.012 179.295);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.144 0.017 96.756);
  --popover-foreground: oklch(0.988 0.004 92.694);
  --card: oklch(0.144 0.017 96.756);
  --card-foreground: oklch(0.988 0.004 92.694);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.847 0.111 92.943);
  --primary-foreground: oklch(0.228 0.037 92.648);
  --secondary: oklch(0.85 0.111 176.29);
  --secondary-foreground: oklch(0.23 0.036 174.862);
  --accent: oklch(0.7 0.18 317.9);
  --accent-foreground: oklch(0.179 0.061 317.684);
  --destructive: oklch(0.638 0.238 32.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.111 92.943);
  --chart-1: oklch(0.847 0.111 92.943);
  --chart-2: oklch(0.85 0.111 176.29);
  --chart-3: oklch(0.7 0.18 317.9);
  --chart-4: oklch(0.862 0.102 176.87);
  --chart-5: oklch(0.852 0.114 92.891);
}