Forsaken for shadcn/ui

Forsaken is a shadcn/ui theme built around a near-white primary color (#fcf8f8) with near-white accents (#f8fcfc). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#fcf8f8) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#030202black
Foreground
#120202black
#ffffffwhite
Card
#fdf6f6snow
#070303black
Card foreground
#0e0202black
#ffffffwhite
Popover
#fefbfbsnow
#030202black
Popover foreground
#120202black
#ffffffwhite
Primary
#fcf8f8snow
#fcf8f8snow
Primary foreground
#853d3dsienna
#853d3dsienna
Secondary
#f8fcfcmintcream
#f8fcfcmintcream
Secondary foreground
#1d3f3fdarkslategray
#1d3f3fdarkslategray
Muted
#e4e7e7gainsboro
#181b1bblack
Muted foreground
#535555dimgray
#aaacacdarkgray
Accent
#f8fcfcmintcream
#f8fcfcmintcream
Accent foreground
#1d3f3fdarkslategray
#1d3f3fdarkslategray
Destructive
#9d3502saddlebrown
#fd6012orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcf8f8snow
#fcf8f8snow

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.22:1AAA
Primary button7.28:1AAA
Secondary button11.05:1AAA
Muted text6.02:1AA
Accent11.05:1AAA
Destructive7.14:1AAA
Dark mode
Text on background20.74:1AAA
Text on card20.50:1AAA
Primary button7.28:1AAA
Secondary button11.05:1AAA
Muted text7.60:1AAA
Accent11.05:1AAA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.219);
  --foreground: oklch(0.126 0.037 24.138);
  --muted: oklch(0.925 0.003 197.11);
  --muted-foreground: oklch(0.448 0.002 197.079);
  --popover: oklch(0.99 0.004 17.219);
  --popover-foreground: oklch(0.126 0.037 24.138);
  --card: oklch(0.98 0.007 17.282);
  --card-foreground: oklch(0.112 0.032 23.882);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.004 17.226);
  --primary-foreground: oklch(0.454 0.099 21.768);
  --secondary: oklch(0.988 0.004 197.092);
  --secondary-foreground: oklch(0.342 0.04 195.459);
  --accent: oklch(0.988 0.004 197.092);
  --accent-foreground: oklch(0.342 0.04 195.459);
  --destructive: oklch(0.475 0.147 40.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.004 17.226);
  --chart-1: oklch(0.982 0.004 17.226);
  --chart-2: oklch(0.988 0.004 197.092);
  --chart-3: oklch(0.988 0.004 197.092);
  --chart-4: oklch(1.006 0.002 17.191);
  --chart-5: oklch(0.982 0.004 17.231);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 19.049);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.218 0.004 196.872);
  --muted-foreground: oklch(0.742 0.002 197.116);
  --popover: oklch(0.086 0.009 19.049);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.011 19.049);
  --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.982 0.004 17.226);
  --primary-foreground: oklch(0.454 0.099 21.768);
  --secondary: oklch(0.988 0.004 197.092);
  --secondary-foreground: oklch(0.342 0.04 195.459);
  --accent: oklch(0.988 0.004 197.092);
  --accent-foreground: oklch(0.342 0.04 195.459);
  --destructive: oklch(0.685 0.205 40.948);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.982 0.004 17.226);
  --chart-1: oklch(0.982 0.004 17.226);
  --chart-2: oklch(0.988 0.004 197.092);
  --chart-3: oklch(0.988 0.004 197.092);
  --chart-4: oklch(1.006 0.002 17.191);
  --chart-5: oklch(0.982 0.004 17.231);
}