Exile for shadcn/ui

Exile is a shadcn/ui theme built around a neutral gray primary color (#777977) with neutral gray accents (#797779). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#777977) on a green-tinted background (#070e06).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#070e06black
Foreground
#010401black
#f7f8f6whitesmoke
Card
#f8fcf8mintcream
#070e06black
Card foreground
#010401black
#f7f8f6whitesmoke
Popover
#f8fcf8mintcream
#070e06black
Popover foreground
#010401black
#f7f8f6whitesmoke
Primary
#777977gray
#777977gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#797779gray
#797779gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6dbe6gainsboro
#241924black
Muted foreground
#675a68dimgray
#a497a5darkgray
Accent
#797779gray
#797779gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d34909chocolate
#f5540aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#777977gray
#777977gray

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button4.39:1AA Large
Secondary button4.45:1AA Large
Muted text4.81:1AA
Accent4.45:1AA Large
Destructive4.46:1AA Large
Dark mode
Text on background18.34:1AAA
Text on card18.34:1AAA
Primary button4.39:1AA Large
Secondary button4.45:1AA Large
Muted text6.09:1AA
Accent4.45:1AA Large
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 144.096);
  --foreground: oklch(0.099 0.024 141.901);
  --muted: oklch(0.902 0.02 324.255);
  --muted-foreground: oklch(0.485 0.027 324.442);
  --popover: oklch(0.987 0.006 144.096);
  --popover-foreground: oklch(0.099 0.024 141.901);
  --card: oklch(0.987 0.006 144.096);
  --card-foreground: oklch(0.099 0.024 141.901);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.005 144.084);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.571 0.005 324.176);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.571 0.005 324.176);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.184 39.3);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.005 144.084);
  --chart-1: oklch(0.574 0.005 144.084);
  --chart-2: oklch(0.571 0.005 324.176);
  --chart-3: oklch(0.571 0.005 324.176);
  --chart-4: oklch(0.597 0.005 324.176);
  --chart-5: oklch(0.578 0.018 143.946);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.02 143.066);
  --foreground: oklch(0.978 0.003 144.112);
  --muted: oklch(0.231 0.027 324.778);
  --muted-foreground: oklch(0.693 0.024 324.332);
  --popover: oklch(0.153 0.02 143.066);
  --popover-foreground: oklch(0.978 0.003 144.112);
  --card: oklch(0.153 0.02 143.066);
  --card-foreground: oklch(0.978 0.003 144.112);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.005 144.084);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.571 0.005 324.176);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.571 0.005 324.176);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.659 0.208 39.046);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.005 144.084);
  --chart-1: oklch(0.574 0.005 144.084);
  --chart-2: oklch(0.571 0.005 324.176);
  --chart-3: oklch(0.571 0.005 324.176);
  --chart-4: oklch(0.597 0.005 324.176);
  --chart-5: oklch(0.578 0.018 143.946);
}