Vim Light Soft for shadcn/ui

Vim Light Soft is a shadcn/ui theme built around a neutral gray primary color (#3b3735) with yellow accents (#e5cc7b). The light mode uses a yellow-tinted background (#f2e5bb). Dark mode keeps the neutral gray primary (#3b3735) on a yellow-tinted background (#f2e5bb).

Color palette

TokenLightDark
Background
#f2e5bbwheat
#f2e5bbwheat
Foreground
#3b3735darkslategray
#3b3735darkslategray
Card
#f0e2b2wheat
#f0e2b2wheat
Card foreground
#2e2b29darkslategray
#2e2b29darkslategray
Popover
#efe0aewheat
#efe0aewheat
Popover foreground
#201e1dblack
#201e1dblack
Primary
#3b3735darkslategray
#3b3735darkslategray
Primary foreground
#d3d0cflightgrey
#d3d0cflightgrey
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#d2cfc6lightgrey
#d2cfc6lightgrey
Muted foreground
#39362ddarkslategray
#39362ddarkslategray
Accent
#e5cc7bburlywood
#e5cc7bburlywood
Accent foreground
#261f08black
#261f08black
Destructive
#6b0a0amaroon
#6b0a0amaroon
Destructive foreground
#f8b0b0lightpink
#f8b0b0lightpink
Border
#e8daabpalegoldenrod
#e8daabpalegoldenrod
Input
#e5d49fpalegoldenrod
#e5d49fpalegoldenrod
Ring
#3b3735darkslategray
#3b3735darkslategray

Contrast

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

Light mode
Text on background9.33:1AAA
Text on card10.82:1AAA
Primary button7.66:1AAA
Secondary button8.25:1AAA
Muted text7.76:1AAA
Accent10.35:1AAA
Destructive7.05:1AAA
Dark mode
Text on background9.33:1AAA
Text on card10.82:1AAA
Primary button7.66:1AAA
Secondary button8.25:1AAA
Muted text7.76:1AAA
Accent10.35:1AAA
Destructive7.05:1AAA

CSS variables

Paste this into your globals.css to use Vim Light Soft in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.921 0.056 93.112);
  --foreground: oklch(0.341 0.006 48.534);
  --muted: oklch(0.855 0.013 92.803);
  --muted-foreground: oklch(0.334 0.016 93.052);
  --popover: oklch(0.906 0.067 93.153);
  --popover-foreground: oklch(0.237 0.004 48.564);
  --card: oklch(0.911 0.063 93.142);
  --card-foreground: oklch(0.29 0.005 48.546);
  --border: oklch(0.888 0.063 93.147);
  --input: oklch(0.872 0.072 93.168);
  --primary: oklch(0.341 0.006 48.534);
  --primary-foreground: oklch(0.861 0.004 48.694);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.849 0.105 93.017);
  --accent-foreground: oklch(0.242 0.039 92.414);
  --destructive: oklch(0.339 0.129 27.74);
  --destructive-foreground: oklch(0.824 0.085 19.034);
  --ring: oklch(0.341 0.006 48.534);
  --chart-1: oklch(0.341 0.006 48.534);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.849 0.105 93.017);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.34 0.01 48.413);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.921 0.056 93.112);
  --foreground: oklch(0.341 0.006 48.534);
  --muted: oklch(0.855 0.013 92.803);
  --muted-foreground: oklch(0.334 0.016 93.052);
  --popover: oklch(0.906 0.067 93.153);
  --popover-foreground: oklch(0.237 0.004 48.564);
  --card: oklch(0.911 0.063 93.142);
  --card-foreground: oklch(0.29 0.005 48.546);
  --border: oklch(0.888 0.063 93.147);
  --input: oklch(0.872 0.072 93.168);
  --primary: oklch(0.341 0.006 48.534);
  --primary-foreground: oklch(0.861 0.004 48.694);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.849 0.105 93.017);
  --accent-foreground: oklch(0.242 0.039 92.414);
  --destructive: oklch(0.339 0.129 27.74);
  --destructive-foreground: oklch(0.824 0.085 19.034);
  --ring: oklch(0.341 0.006 48.534);
  --chart-1: oklch(0.341 0.006 48.534);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.849 0.105 93.017);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.34 0.01 48.413);
}