Wretched for shadcn/ui

Wretched is a shadcn/ui theme built around a light teal primary color (#dcefeb) with muted light teal accents (#d7e0de). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the light teal primary (#dcefeb) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#020403black
Foreground
#041512black
#f5f9f9whitesmoke
Card
#f8fcfbmintcream
#030706black
Card foreground
#03110fblack
#f8fbfbghostwhite
Popover
#f8fcfbmintcream
#030706black
Popover foreground
#03110fblack
#f8fbfbghostwhite
Primary
#dcefeblavender
#dcefeblavender
Primary foreground
#10231fblack
#10231fblack
Secondary
#eaebeblavender
#202222black
Secondary foreground
#4f5453darkslategray
#b9bcbbsilver
Muted
#cdeae4gainsboro
#15322ddarkslategray
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#d7e0degainsboro
#2d3433darkslategray
Accent foreground
#3a4a47darkslategray
#c5cecclightgrey
Destructive
#9a0904darkred
#fa3a33tomato
Destructive foreground
#fed4d2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dcefeblavender
#dcefeblavender

Contrast

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

Light mode
Text on background18.41:1AAA
Text on card18.61:1AAA
Primary button13.69:1AAA
Secondary button6.45:1AA
Muted text4.84:1AA
Accent6.91:1AA
Destructive6.43:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.44:1AAA
Primary button13.69:1AAA
Secondary button8.36:1AAA
Muted text5.13:1AA
Accent7.90:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 184.251);
  --foreground: oklch(0.18 0.025 180.547);
  --muted: oklch(0.914 0.031 183.386);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.988 0.005 184.189);
  --popover-foreground: oklch(0.163 0.022 181.557);
  --card: oklch(0.988 0.005 184.189);
  --card-foreground: oklch(0.163 0.022 181.557);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.02 183.736);
  --primary-foreground: oklch(0.238 0.025 180.992);
  --secondary: oklch(0.94 0.001 184.274);
  --secondary-foreground: oklch(0.441 0.006 183.919);
  --accent: oklch(0.898 0.009 184.029);
  --accent-foreground: oklch(0.395 0.021 182.835);
  --destructive: oklch(0.435 0.174 29.409);
  --destructive-foreground: oklch(0.904 0.048 20.396);
  --ring: oklch(0.937 0.02 183.736);
  --chart-1: oklch(0.937 0.02 183.736);
  --chart-2: oklch(0.94 0.001 184.274);
  --chart-3: oklch(0.898 0.009 184.029);
  --chart-4: oklch(0.962 0.001 184.289);
  --chart-5: oklch(0.938 0.022 183.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 184.133);
  --foreground: oklch(0.98 0.005 184.185);
  --muted: oklch(0.293 0.036 180.264);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.122 0.01 184.133);
  --popover-foreground: oklch(0.987 0.003 184.228);
  --card: oklch(0.122 0.01 184.133);
  --card-foreground: oklch(0.987 0.003 184.228);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.02 183.736);
  --primary-foreground: oklch(0.238 0.025 180.992);
  --secondary: oklch(0.25 0.002 184.095);
  --secondary-foreground: oklch(0.791 0.003 184.205);
  --accent: oklch(0.318 0.011 183.374);
  --accent-foreground: oklch(0.844 0.01 184.006);
  --destructive: oklch(0.645 0.228 27.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.02 183.736);
  --chart-1: oklch(0.937 0.02 183.736);
  --chart-2: oklch(0.25 0.002 184.095);
  --chart-3: oklch(0.318 0.011 183.374);
  --chart-4: oklch(0.282 0.002 184.082);
  --chart-5: oklch(0.938 0.022 183.689);
}