Exit for shadcn/ui

Exit is a shadcn/ui theme built around a muted yellow primary color (#a5a492) with muted purple accents (#a492a5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#a5a492) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#100f04black
#fcfbf8snow
Card
#ffffffwhite
#000000black
Card foreground
#100f04black
#fcfbf8snow
Popover
#ffffffwhite
#000000black
Popover foreground
#100f04black
#fcfbf8snow
Primary
#a5a492darkgray
#a5a492darkgray
Primary foreground
#030302black
#030302black
Secondary
#92a5a4darkgray
#92a5a4darkgray
Secondary foreground
#020303black
#020303black
Muted
#dbebealavender
#142423black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#a492a5darkgray
#a492a5darkgray
Accent foreground
#030203black
#030203black
Destructive
#6a2201maroon
#fc5203orangered
Destructive foreground
#febd9flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a5a492darkgray
#a5a492darkgray

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button8.15:1AAA
Secondary button8.02:1AAA
Muted text8.44:1AAA
Accent7.10:1AAA
Destructive7.03:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button8.15:1AAA
Secondary button8.02:1AAA
Muted text8.71:1AAA
Accent7.10:1AAA
Destructive3.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.023 103.668);
  --muted: oklch(0.928 0.018 189.632);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.023 103.668);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.166 0.023 103.668);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.714 0.025 101.828);
  --primary-foreground: oklch(0.094 0.002 101.974);
  --secondary: oklch(0.707 0.022 189.343);
  --secondary-foreground: oklch(0.093 0.002 189.91);
  --accent: oklch(0.681 0.035 322.831);
  --accent-foreground: oklch(0.091 0.003 322.934);
  --destructive: oklch(0.36 0.11 40.827);
  --destructive-foreground: oklch(0.851 0.086 45.935);
  --ring: oklch(0.714 0.025 101.828);
  --chart-1: oklch(0.714 0.025 101.828);
  --chart-2: oklch(0.707 0.022 189.343);
  --chart-3: oklch(0.681 0.035 322.831);
  --chart-4: oklch(0.731 0.021 189.425);
  --chart-5: oklch(0.721 0.033 101.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.989 0.004 101.357);
  --muted: oklch(0.247 0.023 187.799);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.989 0.004 101.357);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.989 0.004 101.357);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.714 0.025 101.828);
  --primary-foreground: oklch(0.094 0.002 101.974);
  --secondary: oklch(0.707 0.022 189.343);
  --secondary-foreground: oklch(0.093 0.002 189.91);
  --accent: oklch(0.681 0.035 322.831);
  --accent-foreground: oklch(0.091 0.003 322.934);
  --destructive: oklch(0.668 0.217 38.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.714 0.025 101.828);
  --chart-1: oklch(0.714 0.025 101.828);
  --chart-2: oklch(0.707 0.022 189.343);
  --chart-3: oklch(0.681 0.035 322.831);
  --chart-4: oklch(0.731 0.021 189.425);
  --chart-5: oklch(0.721 0.033 101.967);
}