Existence for shadcn/ui

Existence is a shadcn/ui theme built around a neutral gray primary color (#8d7c89) with neutral gray accents (#8d7c80). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#8d7c89) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#ffffffwhite
#080206black
Foreground
#150511black
#faf5f9whitesmoke
Card
#fcfcfcsnow
#0c040ablack
Card foreground
#11040dblack
#fcf8fbsnow
Popover
#fcfcfcsnow
#0c040ablack
Popover foreground
#11040dblack
#fcf8fbsnow
Primary
#8d7c89gray
#8d7c89gray
Primary foreground
#000000black
#000000black
Secondary
#897c8dgray
#897c8dgray
Secondary foreground
#000000black
#000000black
Muted
#efeaf0whitesmoke
#130f15black
Muted foreground
#4f3f55darkslategray
#bbaac0silver
Accent
#8d7c80gray
#8d7c80gray
Accent foreground
#000000black
#000000black
Destructive
#86380esaddlebrown
#e9702fchocolate
Destructive foreground
#fadcccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8d7c89gray
#8d7c89gray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.62:1AAA
Primary button5.38:1AA
Secondary button5.33:1AA
Muted text8.13:1AAA
Accent5.33:1AA
Destructive6.26:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.28:1AAA
Primary button5.38:1AA
Secondary button5.33:1AA
Muted text8.69:1AAA
Accent5.33:1AA
Destructive6.84:1AA

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.149 0.039 337.15);
  --muted: oklch(0.943 0.009 317.747);
  --muted-foreground: oklch(0.393 0.042 317.58);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.136 0.035 336.366);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.035 336.366);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.606 0.028 334.636);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.604 0.03 317.683);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.603 0.022 0.871);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.441 0.118 44.241);
  --destructive-foreground: oklch(0.915 0.039 50.14);
  --ring: oklch(0.606 0.028 334.636);
  --chart-1: oklch(0.606 0.028 334.636);
  --chart-2: oklch(0.604 0.03 317.683);
  --chart-3: oklch(0.603 0.022 0.871);
  --chart-4: oklch(0.63 0.028 317.692);
  --chart-5: oklch(0.603 0.04 334.957);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.021 334.56);
  --foreground: oklch(0.974 0.008 334.019);
  --muted: oklch(0.176 0.014 317.629);
  --muted-foreground: oklch(0.759 0.036 317.685);
  --popover: oklch(0.124 0.025 334.823);
  --popover-foreground: oklch(0.983 0.005 333.971);
  --card: oklch(0.124 0.025 334.823);
  --card-foreground: oklch(0.983 0.005 333.971);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.606 0.028 334.636);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.604 0.03 317.683);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.603 0.022 0.871);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.68 0.168 45.604);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.606 0.028 334.636);
  --chart-1: oklch(0.606 0.028 334.636);
  --chart-2: oklch(0.604 0.03 317.683);
  --chart-3: oklch(0.603 0.022 0.871);
  --chart-4: oklch(0.63 0.028 317.692);
  --chart-5: oklch(0.603 0.04 334.957);
}