Velvety for shadcn/ui

Velvety is a shadcn/ui theme built around a vivid green primary color (#b4f43e) with vivid green accents (#59f43e). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid green primary (#b4f43e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf7snow
#000000black
Foreground
#090d02black
#ffffffwhite
Card
#fbfdf7snow
#000000black
Card foreground
#090d02black
#ffffffwhite
Popover
#fbfdf7snow
#000000black
Popover foreground
#090d02black
#ffffffwhite
Primary
#b4f43egreenyellow
#b4f43egreenyellow
Primary foreground
#000000black
#000000black
Secondary
#f4d93esandybrown
#f4d93esandybrown
Secondary foreground
#000000black
#000000black
Muted
#e6e4dbgainsboro
#242219black
Muted foreground
#6f6c5ddimgray
#a29f90darkgray
Accent
#59f43elimegreen
#59f43elimegreen
Accent foreground
#000000black
#000000black
Destructive
#6f2406maroon
#f36b35tomato
Destructive foreground
#fac3adlightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4f43egreenyellow
#b4f43egreenyellow

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button15.93:1AAA
Secondary button14.78:1AAA
Muted text4.14:1AA Large
Accent14.41:1AAA
Destructive6.98:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button15.93:1AAA
Secondary button14.78:1AAA
Muted text5.96:1AA
Accent14.41:1AAA
Destructive6.95:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 122.341);
  --foreground: oklch(0.151 0.029 122.305);
  --muted: oklch(0.918 0.013 98.509);
  --muted-foreground: oklch(0.531 0.024 98.9);
  --popover: oklch(0.99 0.008 122.341);
  --popover-foreground: oklch(0.151 0.029 122.305);
  --card: oklch(0.99 0.008 122.341);
  --card-foreground: oklch(0.151 0.029 122.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.211 127.472);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.881 0.165 98.75);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.852 0.252 141.009);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.372 0.113 38.965);
  --destructive-foreground: oklch(0.861 0.07 42.598);
  --ring: oklch(0.892 0.211 127.472);
  --chart-1: oklch(0.892 0.211 127.472);
  --chart-2: oklch(0.881 0.165 98.75);
  --chart-3: oklch(0.852 0.252 141.009);
  --chart-4: oklch(0.889 0.158 99.059);
  --chart-5: oklch(0.899 0.215 127.638);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.017 99.137);
  --muted-foreground: oklch(0.702 0.022 98.744);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.211 127.472);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.881 0.165 98.75);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.852 0.252 141.009);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.686 0.181 40.499);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.892 0.211 127.472);
  --chart-1: oklch(0.892 0.211 127.472);
  --chart-2: oklch(0.881 0.165 98.75);
  --chart-3: oklch(0.852 0.252 141.009);
  --chart-4: oklch(0.889 0.158 99.059);
  --chart-5: oklch(0.899 0.215 127.638);
}