Vise for shadcn/ui

Vise is a shadcn/ui theme built around a deep green primary color (#1c2b0d) with deep pink accents (#2b0d1c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1c2b0d) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#ffffffwhite
#050703black
Foreground
#050802black
#fcfdfcwhite
Card
#ffffffwhite
#050703black
Card foreground
#050802black
#fcfdfcwhite
Popover
#ffffffwhite
#050703black
Popover foreground
#050802black
#fcfdfcwhite
Primary
#1c2b0dblack
#1c2b0dblack
Primary foreground
#80c440yellowgreen
#80c440yellowgreen
Secondary
#0d1c2bblack
#0d1c2bblack
Secondary foreground
#8eb4dcskyblue
#8eb4dcskyblue
Muted
#ebedeflavender
#101214black
Muted foreground
#484a4bdarkslategray
#b4b5b7silver
Accent
#2b0d1cblack
#2b0d1cblack
Accent foreground
#dc8eb4palevioletred
#dc8eb4palevioletred
Destructive
#c91208firebrick
#e11409red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c2b0dblack
#1c2b0dblack

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button7.07:1AAA
Secondary button7.99:1AAA
Muted text7.59:1AAA
Accent7.28:1AAA
Destructive5.88:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.07:1AAA
Secondary button7.99:1AAA
Muted text9.16:1AAA
Accent7.28:1AAA
Destructive4.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.019 127.99);
  --muted: oklch(0.945 0.004 249.687);
  --muted-foreground: oklch(0.408 0.003 249.723);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.019 127.99);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.019 127.99);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.267 0.054 131.885);
  --primary-foreground: oklch(0.749 0.178 132.759);
  --secondary: oklch(0.22 0.036 251.267);
  --secondary-foreground: oklch(0.756 0.072 250.472);
  --accent: oklch(0.214 0.053 352.352);
  --accent-foreground: oklch(0.737 0.106 349.569);
  --destructive: oklch(0.53 0.21 29.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.054 131.885);
  --chart-1: oklch(0.267 0.054 131.885);
  --chart-2: oklch(0.22 0.036 251.267);
  --chart-3: oklch(0.214 0.053 352.352);
  --chart-4: oklch(0.251 0.045 251.445);
  --chart-5: oklch(0.269 0.056 132.047);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 128.305);
  --foreground: oklch(0.994 0.003 129.154);
  --muted: oklch(0.18 0.006 249.931);
  --muted-foreground: oklch(0.772 0.003 249.683);
  --popover: oklch(0.123 0.013 128.305);
  --popover-foreground: oklch(0.994 0.003 129.154);
  --card: oklch(0.123 0.013 128.305);
  --card-foreground: oklch(0.994 0.003 129.154);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.267 0.054 131.885);
  --primary-foreground: oklch(0.749 0.178 132.759);
  --secondary: oklch(0.22 0.036 251.267);
  --secondary-foreground: oklch(0.756 0.072 250.472);
  --accent: oklch(0.214 0.053 352.352);
  --accent-foreground: oklch(0.737 0.106 349.569);
  --destructive: oklch(0.577 0.23 29.497);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.054 131.885);
  --chart-1: oklch(0.267 0.054 131.885);
  --chart-2: oklch(0.22 0.036 251.267);
  --chart-3: oklch(0.214 0.053 352.352);
  --chart-4: oklch(0.251 0.045 251.445);
  --chart-5: oklch(0.269 0.056 132.047);
}