Forsaken for shadcn/ui

Forsaken is a shadcn/ui theme built around a neutral gray primary color (#dedede) with neutral gray accents (#dedede). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the neutral gray primary (#dedede) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8f8snow
#000000black
Foreground
#080202black
#ffffffwhite
Card
#fbf8f8snow
#000000black
Card foreground
#080202black
#ffffffwhite
Popover
#fbf8f8snow
#000000black
Popover foreground
#080202black
#ffffffwhite
Primary
#dededegainsboro
#dededegainsboro
Primary foreground
#454545darkslategray
#454545darkslategray
Secondary
#dededegainsboro
#dededegainsboro
Secondary foreground
#454545darkslategray
#454545darkslategray
Muted
#ede8e8linen
#171212black
Muted foreground
#524747darkslategray
#b8adaddarkgray
Accent
#dededegainsboro
#dededegainsboro
Accent foreground
#454545darkslategray
#454545darkslategray
Destructive
#6f290bsaddlebrown
#d14d15chocolate
Destructive foreground
#f8c9b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dededegainsboro
#dededegainsboro

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.11:1AAA
Secondary button7.11:1AAA
Muted text7.35:1AAA
Accent7.11:1AAA
Destructive6.99:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.11:1AAA
Secondary button7.11:1AAA
Muted text8.51:1AAA
Accent7.11:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 17.213);
  --foreground: oklch(0.104 0.017 20.398);
  --muted: oklch(0.935 0.006 17.267);
  --muted-foreground: oklch(0.409 0.015 17.762);
  --popover: oklch(0.983 0.003 17.213);
  --popover-foreground: oklch(0.104 0.017 20.398);
  --card: oklch(0.983 0.003 17.213);
  --card-foreground: oklch(0.104 0.017 20.398);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.9 0 188.746);
  --accent-foreground: oklch(0.39 0 165.964);
  --destructive: oklch(0.38 0.107 40.707);
  --destructive-foreground: oklch(0.871 0.06 44.415);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.9 0 188.746);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.899 0.002 17.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.01 18.035);
  --muted-foreground: oklch(0.757 0.012 17.429);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.9 0 188.746);
  --accent-foreground: oklch(0.39 0 165.964);
  --destructive: oklch(0.593 0.178 39.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.9 0 188.746);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.899 0.002 17.198);
}