Exit for shadcn/ui

Exit is a shadcn/ui theme built around a green primary color (#5eaf50) with red accents (#af505e). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#5eaf50) on a green-tinted background (#070e06).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#070e06black
Foreground
#040d02black
#fcfdfcwhite
Card
#f8fdf7mintcream
#070e06black
Card foreground
#040d02black
#fcfdfcwhite
Popover
#f8fdf7mintcream
#070e06black
Popover foreground
#040d02black
#fcfdfcwhite
Primary
#5eaf50mediumseagreen
#5eaf50mediumseagreen
Primary foreground
#132310black
#132310black
Secondary
#505eafsteelblue
#505eafsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f1f4whitesmoke
#0b0b0fblack
Muted foreground
#454545darkslategray
#bababasilver
Accent
#af505eindianred
#af505eindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8e120bdarkred
#ed2b21crimson
Destructive foreground
#fbd2d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5eaf50mediumseagreen
#5eaf50mediumseagreen

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button6.03:1AA
Secondary button5.86:1AA
Muted text8.48:1AAA
Accent5.07:1AA
Destructive6.82:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button6.03:1AA
Secondary button5.86:1AA
Muted text10.11:1AAA
Accent5.07:1AA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 141.046);
  --foreground: oklch(0.144 0.033 138.943);
  --muted: oklch(0.958 0.005 278.247);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.988 0.009 141.046);
  --popover-foreground: oklch(0.144 0.033 138.943);
  --card: oklch(0.988 0.009 141.046);
  --card-foreground: oklch(0.144 0.033 138.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.153 140.736);
  --primary-foreground: oklch(0.235 0.041 140.743);
  --secondary: oklch(0.512 0.127 273.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.124 12.684);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.414 0.158 29.209);
  --destructive-foreground: oklch(0.898 0.047 21.606);
  --ring: oklch(0.68 0.153 140.736);
  --chart-1: oklch(0.68 0.153 140.736);
  --chart-2: oklch(0.512 0.127 273.547);
  --chart-3: oklch(0.555 0.124 12.684);
  --chart-4: oklch(0.542 0.118 274.232);
  --chart-5: oklch(0.688 0.163 140.75);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.02 140.125);
  --foreground: oklch(0.993 0.002 141.061);
  --muted: oklch(0.152 0.007 277.557);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.154 0.02 140.125);
  --popover-foreground: oklch(0.993 0.002 141.061);
  --card: oklch(0.154 0.02 140.125);
  --card-foreground: oklch(0.993 0.002 141.061);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.153 140.736);
  --primary-foreground: oklch(0.235 0.041 140.743);
  --secondary: oklch(0.512 0.127 273.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.124 12.684);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.611 0.227 29.008);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.153 140.736);
  --chart-1: oklch(0.68 0.153 140.736);
  --chart-2: oklch(0.512 0.127 273.547);
  --chart-3: oklch(0.555 0.124 12.684);
  --chart-4: oklch(0.542 0.118 274.232);
  --chart-5: oklch(0.688 0.163 140.75);
}