Threadbare for shadcn/ui

Threadbare is a shadcn/ui theme built around a vivid deep green primary color (#1a2a03) with vivid deep violet accents (#14032a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#1a2a03) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#0e1703black
#fafbf9snow
Card
#fcfcfcsnow
#050703black
Card foreground
#0b1202black
#fdfdfcwhite
Popover
#fcfcfcsnow
#050703black
Popover foreground
#0b1202black
#fdfdfcwhite
Primary
#1a2a03black
#1a2a03black
Primary foreground
#8be713lawngreen
#8be713lawngreen
Secondary
#14032ablack
#14032ablack
Secondary foreground
#e0cbfblavender
#e0cbfblavender
Muted
#d7cde5gainsboro
#251a32darkslategray
Muted foreground
#636066dimgray
#9b999fdarkgray
Accent
#14032ablack
#14032ablack
Accent foreground
#e0cbfblavender
#e0cbfblavender
Destructive
#9d300bsaddlebrown
#f05724chocolate
Destructive foreground
#fde5demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a2a03black
#1a2a03black

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.65:1AAA
Primary button9.79:1AAA
Secondary button13.06:1AAA
Muted text4.04:1AA Large
Accent13.06:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.84:1AAA
Primary button9.79:1AAA
Secondary button13.06:1AAA
Muted text5.84:1AA
Accent13.06:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.189 0.042 127.857);
  --muted: oklch(0.863 0.034 305.214);
  --muted-foreground: oklch(0.495 0.01 305.474);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.171 0.037 126.738);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.171 0.037 126.738);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.262 0.065 130.135);
  --primary-foreground: oklch(0.838 0.232 132.665);
  --secondary: oklch(0.168 0.076 298.573);
  --secondary-foreground: oklch(0.875 0.068 304.697);
  --accent: oklch(0.168 0.076 298.573);
  --accent-foreground: oklch(0.875 0.068 304.697);
  --destructive: oklch(0.47 0.152 36.522);
  --destructive-foreground: oklch(0.94 0.028 39.351);
  --ring: oklch(0.262 0.065 130.135);
  --chart-1: oklch(0.262 0.065 130.135);
  --chart-2: oklch(0.168 0.076 298.573);
  --chart-3: oklch(0.168 0.076 298.573);
  --chart-4: oklch(0.196 0.093 296.811);
  --chart-5: oklch(0.264 0.067 130.233);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 125.088);
  --foreground: oklch(0.986 0.003 125.774);
  --muted: oklch(0.244 0.046 303.117);
  --muted-foreground: oklch(0.686 0.009 305.563);
  --popover: oklch(0.124 0.014 125.088);
  --popover-foreground: oklch(0.993 0.001 125.757);
  --card: oklch(0.124 0.014 125.088);
  --card-foreground: oklch(0.993 0.001 125.757);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.262 0.065 130.135);
  --primary-foreground: oklch(0.838 0.232 132.665);
  --secondary: oklch(0.168 0.076 298.573);
  --secondary-foreground: oklch(0.875 0.068 304.697);
  --accent: oklch(0.168 0.076 298.573);
  --accent-foreground: oklch(0.875 0.068 304.697);
  --destructive: oklch(0.655 0.198 37.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.262 0.065 130.135);
  --chart-1: oklch(0.262 0.065 130.135);
  --chart-2: oklch(0.168 0.076 298.573);
  --chart-3: oklch(0.168 0.076 298.573);
  --chart-4: oklch(0.196 0.093 296.811);
  --chart-5: oklch(0.264 0.067 130.233);
}