Vim Dark Hard for shadcn/ui

Vim Dark Hard is a shadcn/ui theme built around a light yellow primary color (#ebdbb2) with neutral gray accents (#414749). The light mode uses a neutral background (#1d2020). Dark mode keeps the light yellow primary (#ebdbb2) on a neutral background (#1d2020).

Color palette

TokenLightDark
Background
#1d2020black
#1d2020black
Foreground
#ebdbb2wheat
#ebdbb2wheat
Card
#181a1bblack
#181a1bblack
Card foreground
#f0e4c6bisque
#f0e4c6bisque
Popover
#161818black
#161818black
Popover foreground
#f6eedbantiquewhite
#f6eedbantiquewhite
Primary
#ebdbb2wheat
#ebdbb2wheat
Primary foreground
#554316darkolivegreen
#554316darkolivegreen
Secondary
#53482ddarkolivegreen
#53482ddarkolivegreen
Secondary foreground
#e4decdgainsboro
#e4decdgainsboro
Muted
#242b2edarkslategray
#242b2edarkslategray
Muted foreground
#9eaeb3darkgray
#9eaeb3darkgray
Accent
#414749darkslategray
#414749darkslategray
Accent foreground
#dcdfe0gainsboro
#dcdfe0gainsboro
Destructive
#f82912orangered
#f82912orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Input
#333333darkslategray
#333333darkslategray
Ring
#ebdbb2wheat
#ebdbb2wheat

Contrast

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

Light mode
Text on background12.01:1AAA
Text on card13.79:1AAA
Primary button6.95:1AA
Secondary button6.70:1AA
Muted text6.26:1AA
Accent7.06:1AAA
Destructive3.96:1AA Large
Dark mode
Text on background12.01:1AAA
Text on card13.79:1AAA
Primary button6.95:1AA
Secondary button6.70:1AA
Muted text6.26:1AA
Accent7.06:1AAA
Destructive3.96:1AA Large

CSS variables

Paste this into your globals.css to use Vim Dark Hard in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.239 0.004 219.659);
  --foreground: oklch(0.894 0.057 89.014);
  --muted: oklch(0.284 0.011 219.888);
  --muted-foreground: oklch(0.739 0.019 219.728);
  --popover: oklch(0.205 0.003 219.643);
  --popover-foreground: oklch(0.95 0.027 88.946);
  --card: oklch(0.217 0.004 219.649);
  --card-foreground: oklch(0.922 0.042 89);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.894 0.057 89.014);
  --primary-foreground: oklch(0.393 0.066 87.044);
  --secondary: oklch(0.405 0.044 88.766);
  --secondary-foreground: oklch(0.9 0.023 88.935);
  --accent: oklch(0.393 0.009 219.696);
  --accent-foreground: oklch(0.901 0.004 219.536);
  --destructive: oklch(0.627 0.239 30.474);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.057 89.014);
  --chart-1: oklch(0.894 0.057 89.014);
  --chart-2: oklch(0.405 0.044 88.766);
  --chart-3: oklch(0.393 0.009 219.696);
  --chart-4: oklch(0.438 0.049 88.746);
  --chart-5: oklch(0.896 0.059 89.012);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.239 0.004 219.659);
  --foreground: oklch(0.894 0.057 89.014);
  --muted: oklch(0.284 0.011 219.888);
  --muted-foreground: oklch(0.739 0.019 219.728);
  --popover: oklch(0.205 0.003 219.643);
  --popover-foreground: oklch(0.95 0.027 88.946);
  --card: oklch(0.217 0.004 219.649);
  --card-foreground: oklch(0.922 0.042 89);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.894 0.057 89.014);
  --primary-foreground: oklch(0.393 0.066 87.044);
  --secondary: oklch(0.405 0.044 88.766);
  --secondary-foreground: oklch(0.9 0.023 88.935);
  --accent: oklch(0.393 0.009 219.696);
  --accent-foreground: oklch(0.901 0.004 219.536);
  --destructive: oklch(0.627 0.239 30.474);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.057 89.014);
  --chart-1: oklch(0.894 0.057 89.014);
  --chart-2: oklch(0.405 0.044 88.766);
  --chart-3: oklch(0.393 0.009 219.696);
  --chart-4: oklch(0.438 0.049 88.746);
  --chart-5: oklch(0.896 0.059 89.012);
}