Existence for shadcn/ui

Existence is a shadcn/ui theme built around a purple primary color (#bc7cc5) with green accents (#86c57c). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#bc7cc5) on a purple-tinted background (#0e0410).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0410black
Foreground
#0e0410black
#ffffffwhite
Card
#ffffffwhite
#0e0410black
Card foreground
#0e0410black
#ffffffwhite
Popover
#ffffffwhite
#0e0410black
Popover foreground
#0e0410black
#ffffffwhite
Primary
#bc7cc5orchid
#bc7cc5orchid
Primary foreground
#0a050bblack
#0a050bblack
Secondary
#86c57cdarkseagreen
#86c57cdarkseagreen
Secondary foreground
#050b05black
#050b05black
Muted
#dee9dcgainsboro
#172316black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#86c57cdarkseagreen
#86c57cdarkseagreen
Accent foreground
#050b05black
#050b05black
Destructive
#622204maroon
#f7773bcoral
Destructive foreground
#fbbb9dburlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bc7cc5orchid
#bc7cc5orchid

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button6.55:1AA
Secondary button9.77:1AAA
Muted text5.62:1AA
Accent9.77:1AAA
Destructive7.26:1AAA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button6.55:1AA
Secondary button9.77:1AAA
Muted text6.72:1AA
Accent9.77:1AAA
Destructive7.63:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.033 322.673);
  --muted: oklch(0.923 0.021 141.528);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.033 322.673);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.033 322.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.677 0.126 322.037);
  --primary-foreground: oklch(0.126 0.019 322.796);
  --secondary: oklch(0.763 0.121 141.172);
  --secondary-foreground: oklch(0.139 0.018 140.391);
  --accent: oklch(0.763 0.121 141.172);
  --accent-foreground: oklch(0.139 0.018 140.391);
  --destructive: oklch(0.345 0.101 41.424);
  --destructive-foreground: oklch(0.843 0.085 45.935);
  --ring: oklch(0.677 0.126 322.037);
  --chart-1: oklch(0.677 0.126 322.037);
  --chart-2: oklch(0.763 0.121 141.172);
  --chart-3: oklch(0.763 0.121 141.172);
  --chart-4: oklch(0.782 0.112 141.208);
  --chart-5: oklch(0.676 0.135 322.06);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.032 322.652);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.239 0.029 141.26);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.136 0.032 322.652);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.032 322.652);
  --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.677 0.126 322.037);
  --primary-foreground: oklch(0.126 0.019 322.796);
  --secondary: oklch(0.763 0.121 141.172);
  --secondary-foreground: oklch(0.139 0.018 140.391);
  --accent: oklch(0.763 0.121 141.172);
  --accent-foreground: oklch(0.139 0.018 140.391);
  --destructive: oklch(0.709 0.173 43.396);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.677 0.126 322.037);
  --chart-1: oklch(0.677 0.126 322.037);
  --chart-2: oklch(0.763 0.121 141.172);
  --chart-3: oklch(0.763 0.121 141.172);
  --chart-4: oklch(0.782 0.112 141.208);
  --chart-5: oklch(0.676 0.135 322.06);
}