Threadbare for shadcn/ui

Threadbare is a shadcn/ui theme built around a vivid light violet primary color (#ecd2fe) with vivid light purple accents (#fed2f9). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light violet primary (#ecd2fe) on a violet-tinted background (#0b0510).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b0510black
Foreground
#060109black
#faf8fcghostwhite
Card
#fdfcfdwhite
#0b0510black
Card foreground
#060109black
#faf8fcghostwhite
Popover
#fdfcfdwhite
#0b0510black
Popover foreground
#060109black
#faf8fcghostwhite
Primary
#ecd2felavender
#ecd2felavender
Primary foreground
#5e0599indigo
#5e0599indigo
Secondary
#d7d2felavender
#d7d2felavender
Secondary foreground
#140599darkblue
#140599darkblue
Muted
#e7e6eflavender
#111019black
Muted foreground
#5b5969dimgray
#9896a6darkgray
Accent
#fed2f9mistyrose
#fed2f9mistyrose
Accent foreground
#360231black
#360231black
Destructive
#881a06darkred
#f42e0borangered
Destructive foreground
#fccdc5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecd2felavender
#ecd2felavender

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button7.80:1AAA
Secondary button9.64:1AAA
Muted text5.51:1AA
Accent13.09:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button7.80:1AAA
Secondary button9.64:1AAA
Muted text6.52:1AA
Accent13.09:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 312.339);
  --foreground: oklch(0.1 0.03 314.819);
  --muted: oklch(0.929 0.012 290.768);
  --muted-foreground: oklch(0.472 0.025 289.999);
  --popover: oklch(0.991 0.003 312.339);
  --popover-foreground: oklch(0.1 0.03 314.819);
  --card: oklch(0.991 0.003 312.339);
  --card-foreground: oklch(0.1 0.03 314.819);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.064 311.83);
  --primary-foreground: oklch(0.39 0.201 303.672);
  --secondary: oklch(0.883 0.059 289.712);
  --secondary-foreground: oklch(0.319 0.208 268.394);
  --accent: oklch(0.914 0.07 329.403);
  --accent-foreground: oklch(0.233 0.101 332.98);
  --destructive: oklch(0.409 0.148 32.091);
  --destructive-foreground: oklch(0.887 0.055 29.818);
  --ring: oklch(0.9 0.064 311.83);
  --chart-1: oklch(0.9 0.064 311.83);
  --chart-2: oklch(0.883 0.059 289.712);
  --chart-3: oklch(0.914 0.07 329.403);
  --chart-4: oklch(0.922 0.039 290.204);
  --chart-5: oklch(0.899 0.066 311.812);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.029 312.412);
  --foreground: oklch(0.982 0.005 312.322);
  --muted: oklch(0.178 0.018 288.97);
  --muted-foreground: oklch(0.681 0.023 290.38);
  --popover: oklch(0.131 0.029 312.412);
  --popover-foreground: oklch(0.982 0.005 312.322);
  --card: oklch(0.131 0.029 312.412);
  --card-foreground: oklch(0.982 0.005 312.322);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.064 311.83);
  --primary-foreground: oklch(0.39 0.201 303.672);
  --secondary: oklch(0.883 0.059 289.712);
  --secondary-foreground: oklch(0.319 0.208 268.394);
  --accent: oklch(0.914 0.07 329.403);
  --accent-foreground: oklch(0.233 0.101 332.98);
  --destructive: oklch(0.623 0.233 31.664);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.064 311.83);
  --chart-1: oklch(0.9 0.064 311.83);
  --chart-2: oklch(0.883 0.059 289.712);
  --chart-3: oklch(0.914 0.07 329.403);
  --chart-4: oklch(0.922 0.039 290.204);
  --chart-5: oklch(0.899 0.066 311.812);
}