Existence for shadcn/ui

Existence is a shadcn/ui theme built around a deep green primary color (#0d2616) with deep pink accents (#260d1d). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the deep green primary (#0d2616) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#030705black
Foreground
#020d06black
#f7f8f7whitesmoke
Card
#fbfdfcwhite
#030705black
Card foreground
#020d06black
#f7f8f7whitesmoke
Popover
#fbfdfcwhite
#030705black
Popover foreground
#020d06black
#f7f8f7whitesmoke
Primary
#0d2616black
#0d2616black
Primary foreground
#40bf6fmediumseagreen
#40bf6fmediumseagreen
Secondary
#260d1dblack
#260d1dblack
Secondary foreground
#d98cbdorchid
#d98cbdorchid
Muted
#e9dde4gainsboro
#22161eblack
Muted foreground
#5a4e56dimgray
#b1a5acdarkgray
Accent
#260d1dblack
#260d1dblack
Accent foreground
#d98cbdorchid
#d98cbdorchid
Destructive
#a52c03firebrick
#fa551eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d2616black
#0d2616black

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button6.79:1AA
Secondary button7.28:1AAA
Muted text6.00:1AA
Accent7.28:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.79:1AA
Secondary button7.28:1AAA
Muted text7.35:1AAA
Accent7.28:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 158.658);
  --foreground: oklch(0.144 0.026 157.974);
  --muted: oklch(0.91 0.015 339.08);
  --muted-foreground: oklch(0.439 0.02 339.646);
  --popover: oklch(0.994 0.003 158.658);
  --popover-foreground: oklch(0.144 0.026 157.974);
  --card: oklch(0.994 0.003 158.658);
  --card-foreground: oklch(0.144 0.026 157.974);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.244 0.044 153.716);
  --primary-foreground: oklch(0.716 0.161 151.862);
  --secondary: oklch(0.205 0.05 343.56);
  --secondary-foreground: oklch(0.733 0.111 341.739);
  --accent: oklch(0.205 0.05 343.56);
  --accent-foreground: oklch(0.733 0.111 341.739);
  --destructive: oklch(0.479 0.163 35.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.244 0.044 153.716);
  --chart-1: oklch(0.244 0.044 153.716);
  --chart-2: oklch(0.205 0.05 343.56);
  --chart-3: oklch(0.205 0.05 343.56);
  --chart-4: oklch(0.237 0.062 343.979);
  --chart-5: oklch(0.246 0.047 153.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 158.572);
  --foreground: oklch(0.978 0.002 158.674);
  --muted: oklch(0.219 0.022 340.762);
  --muted-foreground: oklch(0.734 0.017 339.213);
  --popover: oklch(0.12 0.011 158.572);
  --popover-foreground: oklch(0.978 0.002 158.674);
  --card: oklch(0.12 0.011 158.572);
  --card-foreground: oklch(0.978 0.002 158.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.244 0.044 153.716);
  --primary-foreground: oklch(0.716 0.161 151.862);
  --secondary: oklch(0.205 0.05 343.56);
  --secondary-foreground: oklch(0.733 0.111 341.739);
  --accent: oklch(0.205 0.05 343.56);
  --accent-foreground: oklch(0.733 0.111 341.739);
  --destructive: oklch(0.67 0.21 36.913);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.244 0.044 153.716);
  --chart-1: oklch(0.244 0.044 153.716);
  --chart-2: oklch(0.205 0.05 343.56);
  --chart-3: oklch(0.205 0.05 343.56);
  --chart-4: oklch(0.237 0.062 343.979);
  --chart-5: oklch(0.246 0.047 153.427);
}