Fate for shadcn/ui

Fate is a shadcn/ui theme built around a muted light purple primary color (#dec4d7) with muted light red accents (#dec4ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#dec4d7) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#ffffffwhite
#070306black
Foreground
#10040dblack
#fdfcfdwhite
Card
#fcfcfcsnow
#0a0509black
Card foreground
#0c030ablack
#ffffffwhite
Popover
#fcfcfcsnow
#0a0509black
Popover foreground
#0c030ablack
#ffffffwhite
Primary
#dec4d7thistle
#dec4d7thistle
Primary foreground
#48283fdarkslategray
#48283fdarkslategray
Secondary
#d9c4dethistle
#d9c4dethistle
Secondary foreground
#412848darkslategray
#412848darkslategray
Muted
#ded6e1gainsboro
#271e29darkslategray
Muted foreground
#535053darkslategray
#aeacafdarkgray
Accent
#dec4cathistle
#dec4cathistle
Accent foreground
#48282fdarkslategray
#48282fdarkslategray
Destructive
#cb2e06firebrick
#f9572ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dec4d7thistle
#dec4d7thistle

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card19.89:1AAA
Primary button7.86:1AAA
Secondary button7.93:1AAA
Muted text5.61:1AA
Accent7.92:1AAA
Destructive5.35:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.22:1AAA
Primary button7.86:1AAA
Secondary button7.93:1AAA
Muted text7.13:1AAA
Accent7.92:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.029 337.422);
  --muted: oklch(0.886 0.017 318.884);
  --muted-foreground: oklch(0.435 0.006 318.885);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.123 0.026 336.106);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.026 336.106);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.039 336.01);
  --primary-foreground: oklch(0.327 0.06 338.279);
  --secondary: oklch(0.845 0.043 318.872);
  --secondary-foreground: oklch(0.322 0.065 318.743);
  --accent: oklch(0.844 0.031 3.06);
  --accent-foreground: oklch(0.321 0.05 6.261);
  --destructive: oklch(0.549 0.198 33.297);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.039 336.01);
  --chart-1: oklch(0.848 0.039 336.01);
  --chart-2: oklch(0.845 0.043 318.872);
  --chart-3: oklch(0.844 0.031 3.06);
  --chart-4: oklch(0.871 0.035 318.876);
  --chart-5: oklch(0.846 0.043 336.094);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.014 335.565);
  --foreground: oklch(0.992 0.002 335.232);
  --muted: oklch(0.251 0.023 318.853);
  --muted-foreground: oklch(0.747 0.005 318.888);
  --popover: oklch(0.126 0.016 335.573);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.016 335.573);
  --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.848 0.039 336.01);
  --primary-foreground: oklch(0.327 0.06 338.279);
  --secondary: oklch(0.845 0.043 318.872);
  --secondary-foreground: oklch(0.322 0.065 318.743);
  --accent: oklch(0.844 0.031 3.06);
  --accent-foreground: oklch(0.321 0.05 6.261);
  --destructive: oklch(0.67 0.204 34.909);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.848 0.039 336.01);
  --chart-1: oklch(0.848 0.039 336.01);
  --chart-2: oklch(0.845 0.043 318.872);
  --chart-3: oklch(0.844 0.031 3.06);
  --chart-4: oklch(0.871 0.035 318.876);
  --chart-5: oklch(0.846 0.043 336.094);
}