Vine for shadcn/ui

Vine is a shadcn/ui theme built around a muted green primary color (#93a781) with muted light green accents (#dbe1d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#93a781) on a green-tinted background (#080a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#080a05black
Foreground
#020501black
#f7faf4whitesmoke
Card
#ffffffwhite
#080a05black
Card foreground
#020501black
#f7faf4whitesmoke
Popover
#ffffffwhite
#080a05black
Popover foreground
#020501black
#f7faf4whitesmoke
Primary
#93a781darkseagreen
#93a781darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#dbe1d6gainsboro
#2b3224darkslategray
Secondary foreground
#424d38darkslategray
#c4cebbsilver
Muted
#e8e9e7linen
#171816black
Muted foreground
#657557dimgray
#98a88adarkseagreen
Accent
#dbe1d6gainsboro
#2b3224darkslategray
Accent foreground
#424d38darkslategray
#c4cebbsilver
Destructive
#c01711firebrick
#d81913crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#93a781darkseagreen
#93a781darkseagreen

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button8.10:1AAA
Secondary button6.70:1AA
Muted text4.07:1AA Large
Accent6.70:1AA
Destructive6.21:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button8.10:1AAA
Secondary button8.10:1AAA
Muted text7.04:1AAA
Accent8.10:1AAA
Destructive5.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.022 127.495);
  --muted: oklch(0.933 0.003 129.163);
  --muted-foreground: oklch(0.542 0.05 130.156);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.022 127.495);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.022 127.495);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.059 130.057);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.902 0.017 129.322);
  --secondary-foreground: oklch(0.404 0.037 130.157);
  --accent: oklch(0.902 0.017 129.322);
  --accent-foreground: oklch(0.404 0.037 130.157);
  --destructive: oklch(0.516 0.201 28.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.059 130.057);
  --chart-1: oklch(0.703 0.059 130.057);
  --chart-2: oklch(0.902 0.017 129.322);
  --chart-3: oklch(0.902 0.017 129.322);
  --chart-4: oklch(0.923 0.013 129.275);
  --chart-5: oklch(0.71 0.068 130.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 128.367);
  --foreground: oklch(0.982 0.009 129.22);
  --muted: oklch(0.207 0.005 129.373);
  --muted-foreground: oklch(0.712 0.047 129.846);
  --popover: oklch(0.14 0.014 128.367);
  --popover-foreground: oklch(0.982 0.009 129.22);
  --card: oklch(0.14 0.014 128.367);
  --card-foreground: oklch(0.982 0.009 129.22);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.703 0.059 130.057);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.307 0.026 130.071);
  --secondary-foreground: oklch(0.838 0.028 129.48);
  --accent: oklch(0.307 0.026 130.071);
  --accent-foreground: oklch(0.838 0.028 129.48);
  --destructive: oklch(0.562 0.219 29.029);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.059 130.057);
  --chart-1: oklch(0.703 0.059 130.057);
  --chart-2: oklch(0.307 0.026 130.071);
  --chart-3: oklch(0.307 0.026 130.071);
  --chart-4: oklch(0.34 0.03 130.107);
  --chart-5: oklch(0.71 0.068 130.21);
}