Exterior for shadcn/ui

Exterior is a shadcn/ui theme built around a near-black primary color (#262223) with near-black accents (#262322). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#262223) on a red-tinted background (#0f0608).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0608black
Foreground
#120206black
#fbf9fasnow
Card
#ffffffwhite
#0f0608black
Card foreground
#120206black
#fbf9fasnow
Popover
#ffffffwhite
#0f0608black
Popover foreground
#120206black
#fbf9fasnow
Primary
#262223black
#262223black
Primary foreground
#c1b9bbsilver
#c1b9bbsilver
Secondary
#262225darkslategray
#262225darkslategray
Secondary foreground
#c1b9bfsilver
#c1b9bfsilver
Muted
#ead2e4gainsboro
#2d1527black
Muted foreground
#715b6bdimgray
#a48e9erosybrown
Accent
#262322black
#262322black
Accent foreground
#c1bbb9silver
#c1bbb9silver
Destructive
#dc1a04red
#fa341eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#262223black
#262223black

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.21:1AAA
Secondary button8.22:1AAA
Muted text4.33:1AA Large
Accent8.25:1AAA
Destructive5.01:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button8.21:1AAA
Secondary button8.22:1AAA
Muted text5.55:1AA
Accent8.25:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.035 2.988);
  --muted: oklch(0.888 0.036 335.223);
  --muted-foreground: oklch(0.498 0.038 335.811);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.035 2.988);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.035 2.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.007 1.686);
  --primary-foreground: oklch(0.792 0.009 1.288);
  --secondary: oklch(0.256 0.009 335.104);
  --secondary-foreground: oklch(0.793 0.012 334.791);
  --accent: oklch(0.258 0.005 41.159);
  --accent-foreground: oklch(0.796 0.007 41.234);
  --destructive: oklch(0.569 0.223 30.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.007 1.686);
  --chart-1: oklch(0.255 0.007 1.686);
  --chart-2: oklch(0.256 0.009 335.104);
  --chart-3: oklch(0.258 0.005 41.159);
  --chart-4: oklch(0.287 0.01 335.134);
  --chart-5: oklch(0.254 0.01 2.057);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.018 2.073);
  --foreground: oklch(0.984 0.001 1.002);
  --muted: oklch(0.238 0.049 337.866);
  --muted-foreground: oklch(0.671 0.035 335.424);
  --popover: oklch(0.136 0.018 2.073);
  --popover-foreground: oklch(0.984 0.001 1.002);
  --card: oklch(0.136 0.018 2.073);
  --card-foreground: oklch(0.984 0.001 1.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.007 1.686);
  --primary-foreground: oklch(0.792 0.009 1.288);
  --secondary: oklch(0.256 0.009 335.104);
  --secondary-foreground: oklch(0.793 0.012 334.791);
  --accent: oklch(0.258 0.005 41.159);
  --accent-foreground: oklch(0.796 0.007 41.234);
  --destructive: oklch(0.64 0.234 30.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.007 1.686);
  --chart-1: oklch(0.255 0.007 1.686);
  --chart-2: oklch(0.256 0.009 335.104);
  --chart-3: oklch(0.258 0.005 41.159);
  --chart-4: oklch(0.287 0.01 335.134);
  --chart-5: oklch(0.254 0.01 2.057);
}