Trashmob v0 for shadcn/ui

Trashmob v0 is a shadcn/ui theme built around a vivid green primary color (#a3e635) with near-white accents (#f5f5f5). The light mode uses a blue-tinted background (#f6f7f8). Dark mode keeps the vivid green primary (#7ebd00) on a neutral background (#0a0a0a).

Color palette

TokenLightDark
Background
#f6f7f8whitesmoke
#0a0a0ablack
Foreground
#22262adarkslategray
#fafafasnow
Card
#ffffffwhite
#0a0a0ablack
Card foreground
#0a0a0ablack
#fafafasnow
Popover
#ffffffwhite
#0a0a0ablack
Popover foreground
#0a0a0ablack
#fafafasnow
Primary
#a3e635yellowgreen
#7ebd00yellowgreen
Primary foreground
#ffffffwhite
#171717black
Secondary
#f5f5f5whitesmoke
#262626darkslategray
Secondary foreground
#171717black
#fafafasnow
Muted
#e3e5e8gainsboro
#262626darkslategray
Muted foreground
#737373dimgray
#a3a3a3darkgray
Accent
#f5f5f5whitesmoke
#262626darkslategray
Accent foreground
#171717black
#fafafasnow
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#fafafasnow
#fafafasnow
Border
#e5e5e5gainsboro
#262626darkslategray
Input
#e5e5e5gainsboro
#262626darkslategray
Ring
#0a0a0ablack
#d4d4d4lightgrey

Contrast

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

Light mode
Text on background14.24:1AAA
Text on card19.79:1AAA
Primary button1.50:1Fail
Secondary button16.45:1AAA
Muted text3.77:1AA Large
Accent16.45:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button7.80:1AAA
Secondary button14.49:1AAA
Muted text5.99:1AA
Accent14.49:1AAA
Destructive9.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.002 247.838);
  --foreground: oklch(0.267 0.01 248.199);
  --muted: oklch(0.922 0.004 247.862);
  --muted-foreground: oklch(0.556 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0 180);
  --border: oklch(0.922 0 168.69);
  --input: oklch(0.922 0 168.69);
  --primary: oklch(0.849 0.207 128.842);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.97 0 180);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.97 0 180);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.145 0 180);
  --chart-1: oklch(0.677 0.157 35.19);
  --chart-2: oklch(0.631 0.101 183.491);
  --chart-3: oklch(0.379 0.044 225.539);
  --chart-4: oklch(0.834 0.119 88.146);
  --chart-5: oklch(0.783 0.126 58.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0 180);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.269 0 180);
  --muted-foreground: oklch(0.715 0 158.199);
  --popover: oklch(0.145 0 180);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.145 0 180);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.269 0 180);
  --input: oklch(0.269 0 180);
  --primary: oklch(0.727 0.194 129.593);
  --primary-foreground: oklch(0.204 0 180);
  --secondary: oklch(0.269 0 180);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.269 0 180);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.87 0 180);
  --chart-1: oklch(0.529 0.193 262.129);
  --chart-2: oklch(0.698 0.134 165.463);
  --chart-3: oklch(0.723 0.15 60.631);
  --chart-4: oklch(0.619 0.204 312.728);
  --chart-5: oklch(0.612 0.209 6.386);
}