Ill-fated for shadcn/ui

Ill-fated is a shadcn/ui theme built around a vivid light green primary color (#dcfadb) with muted light green accents (#b9ccb8). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid light green primary (#dcfadb) on a green-tinted background (#040b04).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#040b04black
Foreground
#000000black
#f5faf5whitesmoke
Card
#f7fdf7mintcream
#040b04black
Card foreground
#000000black
#f5faf5whitesmoke
Popover
#f7fdf7mintcream
#040b04black
Popover foreground
#000000black
#f5faf5whitesmoke
Primary
#dcfadbbeige
#dcfadbbeige
Primary foreground
#093607darkgreen
#093607darkgreen
Secondary
#d7dbd6gainsboro
#1a1e1ablack
Secondary foreground
#3c443cdarkslategray
#b0bab0darkgray
Muted
#daedd9gainsboro
#132612black
Muted foreground
#40553fdarkslategray
#abc0aadarkgray
Accent
#b9ccb8silver
#2a3829darkslategray
Accent foreground
#232f22darkslategray
#c2d1c1silver
Destructive
#cb1a06firebrick
#f94834tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dcfadbbeige
#dcfadbbeige

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button12.17:1AAA
Secondary button7.19:1AAA
Muted text6.59:1AA
Accent8.22:1AAA
Destructive5.69:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button12.17:1AAA
Secondary button8.42:1AAA
Muted text8.27:1AAA
Accent7.80:1AAA
Destructive3.50:1AA Large

CSS variables

Paste this into your globals.css to use Ill-fated in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 144.557);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.033 144.386);
  --muted-foreground: oklch(0.425 0.045 143.912);
  --popover: oklch(0.988 0.009 144.557);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 144.557);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.956 0.052 144.259);
  --primary-foreground: oklch(0.292 0.088 142.463);
  --secondary: oklch(0.887 0.008 144.562);
  --secondary-foreground: oklch(0.376 0.016 144.338);
  --accent: oklch(0.824 0.034 144.35);
  --accent-foreground: oklch(0.29 0.029 143.949);
  --destructive: oklch(0.537 0.209 30.403);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.052 144.259);
  --chart-1: oklch(0.956 0.052 144.259);
  --chart-2: oklch(0.887 0.008 144.562);
  --chart-3: oklch(0.824 0.034 144.35);
  --chart-4: oklch(0.91 0.006 144.574);
  --chart-5: oklch(0.957 0.054 144.245);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.024 143.127);
  --foreground: oklch(0.98 0.009 144.562);
  --muted: oklch(0.245 0.044 143.379);
  --muted-foreground: oklch(0.786 0.039 144.295);
  --popover: oklch(0.139 0.024 143.127);
  --popover-foreground: oklch(0.98 0.009 144.562);
  --card: oklch(0.139 0.024 143.127);
  --card-foreground: oklch(0.98 0.009 144.562);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.956 0.052 144.259);
  --primary-foreground: oklch(0.292 0.088 142.463);
  --secondary: oklch(0.23 0.009 144.352);
  --secondary-foreground: oklch(0.779 0.018 144.467);
  --accent: oklch(0.322 0.031 143.964);
  --accent-foreground: oklch(0.846 0.028 144.406);
  --destructive: oklch(0.655 0.216 30.147);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.052 144.259);
  --chart-1: oklch(0.956 0.052 144.259);
  --chart-2: oklch(0.23 0.009 144.352);
  --chart-3: oklch(0.322 0.031 143.964);
  --chart-4: oklch(0.263 0.012 144.332);
  --chart-5: oklch(0.957 0.054 144.245);
}