Housework for shadcn/ui

Housework is a shadcn/ui theme built around a purple primary color (#dd5fd7) with green accents (#5fdd65). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#dd5fd7) on a purple-tinted background (#100410).

Color palette

TokenLightDark
Background
#ffffffwhite
#100410black
Foreground
#0c030cblack
#fbf9fbsnow
Card
#ffffffwhite
#100410black
Card foreground
#0c030cblack
#fbf9fbsnow
Popover
#ffffffwhite
#100410black
Popover foreground
#0c030cblack
#fbf9fbsnow
Primary
#dd5fd7orchid
#dd5fd7orchid
Primary foreground
#080208black
#080208black
Secondary
#5fdd65mediumseagreen
#5fdd65mediumseagreen
Secondary foreground
#020802black
#020802black
Muted
#dceaddgainsboro
#152316black
Muted foreground
#484c48darkslategray
#b3b7b3darkgray
Accent
#5fdd65mediumseagreen
#5fdd65mediumseagreen
Accent foreground
#020802black
#020802black
Destructive
#8e0e0bdarkred
#ed2521crimson
Destructive foreground
#fbd1d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd5fd7orchid
#dd5fd7orchid

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.54:1AA
Secondary button11.58:1AAA
Muted text7.00:1AAA
Accent11.58:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button6.54:1AA
Secondary button11.58:1AAA
Muted text8.06:1AAA
Accent11.58:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.031 328.734);
  --muted: oklch(0.922 0.022 146.811);
  --muted-foreground: oklch(0.412 0.009 146.833);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.031 328.734);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.031 328.734);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.21 329.549);
  --primary-foreground: oklch(0.107 0.029 328.685);
  --secondary: oklch(0.8 0.196 144.331);
  --secondary-foreground: oklch(0.123 0.027 145.339);
  --accent: oklch(0.8 0.196 144.331);
  --accent-foreground: oklch(0.123 0.027 145.339);
  --destructive: oklch(0.412 0.16 28.528);
  --destructive-foreground: oklch(0.896 0.048 19.234);
  --ring: oklch(0.685 0.21 329.549);
  --chart-1: oklch(0.685 0.21 329.549);
  --chart-2: oklch(0.8 0.196 144.331);
  --chart-3: oklch(0.8 0.196 144.331);
  --chart-4: oklch(0.813 0.183 144.594);
  --chart-5: oklch(0.687 0.217 329.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.035 328.945);
  --foreground: oklch(0.984 0.004 327.071);
  --muted: oklch(0.238 0.031 145.751);
  --muted-foreground: oklch(0.776 0.008 146.946);
  --popover: oklch(0.138 0.035 328.945);
  --popover-foreground: oklch(0.984 0.004 327.071);
  --card: oklch(0.138 0.035 328.945);
  --card-foreground: oklch(0.984 0.004 327.071);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.685 0.21 329.549);
  --primary-foreground: oklch(0.107 0.029 328.685);
  --secondary: oklch(0.8 0.196 144.331);
  --secondary-foreground: oklch(0.123 0.027 145.339);
  --accent: oklch(0.8 0.196 144.331);
  --accent-foreground: oklch(0.123 0.027 145.339);
  --destructive: oklch(0.607 0.231 28.225);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.21 329.549);
  --chart-1: oklch(0.685 0.21 329.549);
  --chart-2: oklch(0.8 0.196 144.331);
  --chart-3: oklch(0.8 0.196 144.331);
  --chart-4: oklch(0.813 0.183 144.594);
  --chart-5: oklch(0.687 0.217 329.633);
}