Shoddy for shadcn/ui

Shoddy is a shadcn/ui theme built around a purple primary color (#e141bf) with cyan accents (#41bfe1). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e141bf) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#ffffffwhite
#070306black
Foreground
#0d030ablack
#fbf9fasnow
Card
#ffffffwhite
#070306black
Card foreground
#0d030ablack
#fbf9fasnow
Popover
#ffffffwhite
#070306black
Popover foreground
#0d030ablack
#fbf9fasnow
Primary
#e141bfmediumorchid
#e141bfmediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bfe141greenyellow
#bfe141greenyellow
Secondary foreground
#3d4b0cdarkolivegreen
#3d4b0cdarkolivegreen
Muted
#eeeeecwhitesmoke
#121311black
Muted foreground
#4c4e46darkslategray
#b7b9b1silver
Accent
#41bfe1mediumturquoise
#41bfe1mediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#8a110adarkred
#d51a10firebrick
Destructive foreground
#fbcdcbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e141bfmediumorchid
#e141bfmediumorchid

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button3.66:1AA Large
Secondary button6.37:1AA
Muted text7.28:1AAA
Accent9.74:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button3.66:1AA Large
Secondary button6.37:1AA
Muted text9.39:1AAA
Accent9.74:1AAA
Destructive5.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.031 334.076);
  --muted: oklch(0.949 0.003 116.386);
  --muted-foreground: oklch(0.419 0.012 116.858);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.031 334.076);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.031 334.076);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.233 338.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.857 0.183 121.14);
  --secondary-foreground: oklch(0.388 0.086 121.522);
  --accent: oklch(0.75 0.118 220.215);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.405 0.155 29.231);
  --destructive-foreground: oklch(0.888 0.052 21.711);
  --ring: oklch(0.649 0.233 338.046);
  --chart-1: oklch(0.649 0.233 338.046);
  --chart-2: oklch(0.857 0.183 121.14);
  --chart-3: oklch(0.75 0.118 220.215);
  --chart-4: oklch(0.866 0.175 120.694);
  --chart-5: oklch(0.652 0.24 338.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.013 333.094);
  --foreground: oklch(0.984 0.002 332.648);
  --muted: oklch(0.185 0.004 116.755);
  --muted-foreground: oklch(0.782 0.01 116.573);
  --popover: oklch(0.111 0.013 333.094);
  --popover-foreground: oklch(0.984 0.002 332.648);
  --card: oklch(0.111 0.013 333.094);
  --card-foreground: oklch(0.984 0.002 332.648);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.233 338.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.857 0.183 121.14);
  --secondary-foreground: oklch(0.388 0.086 121.522);
  --accent: oklch(0.75 0.118 220.215);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.557 0.217 29.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.233 338.046);
  --chart-1: oklch(0.649 0.233 338.046);
  --chart-2: oklch(0.857 0.183 121.14);
  --chart-3: oklch(0.75 0.118 220.215);
  --chart-4: oklch(0.866 0.175 120.694);
  --chart-5: oklch(0.652 0.24 338.236);
}