Corrupt for shadcn/ui

Corrupt is a shadcn/ui theme built around a muted pink primary color (#6f4459) with muted red accents (#6f4544). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#6f4459) on a pink-tinted background (#0f050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050ablack
Foreground
#090105black
#fcf8fasnow
Card
#ffffffwhite
#0f050ablack
Card foreground
#090105black
#fcf8fasnow
Popover
#ffffffwhite
#0f050ablack
Popover foreground
#090105black
#fcf8fasnow
Primary
#6f4459dimgray
#6f4459dimgray
Primary foreground
#f5eff2whitesmoke
#f5eff2whitesmoke
Secondary
#6f446edimgray
#6f446edimgray
Secondary foreground
#f5eff5whitesmoke
#f5eff5whitesmoke
Muted
#e4cde4gainsboro
#321b31darkslategray
Muted foreground
#5c4d5bdimgray
#b2a3b2darkgray
Accent
#6f4544darkolivegreen
#6f4544darkolivegreen
Accent foreground
#f5efefwhitesmoke
#f5efefwhitesmoke
Destructive
#ca320cfirebrick
#de370dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f4459dimgray
#6f4459dimgray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button7.01:1AAA
Secondary button6.82:1AA
Muted text5.31:1AA
Accent7.12:1AAA
Destructive5.27:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button7.01:1AAA
Secondary button6.82:1AA
Muted text6.57:1AA
Accent7.12:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.03 345.676);
  --muted: oklch(0.875 0.039 326.411);
  --muted-foreground: oklch(0.439 0.031 326.603);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.03 345.676);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.03 345.676);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.443 0.066 349.685);
  --primary-foreground: oklch(0.958 0.008 346.228);
  --secondary: oklch(0.452 0.085 327.446);
  --secondary-foreground: oklch(0.959 0.01 326.14);
  --accent: oklch(0.437 0.059 20.773);
  --accent-foreground: oklch(0.958 0.006 18.466);
  --destructive: oklch(0.553 0.194 33.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.443 0.066 349.685);
  --chart-1: oklch(0.443 0.066 349.685);
  --chart-2: oklch(0.452 0.085 327.446);
  --chart-3: oklch(0.437 0.059 20.773);
  --chart-4: oklch(0.478 0.091 327.459);
  --chart-5: oklch(0.441 0.074 350.15);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.022 347.639);
  --foreground: oklch(0.983 0.005 346.147);
  --muted: oklch(0.262 0.052 327.516);
  --muted-foreground: oklch(0.734 0.027 326.348);
  --popover: oklch(0.137 0.022 347.639);
  --popover-foreground: oklch(0.983 0.005 346.147);
  --card: oklch(0.137 0.022 347.639);
  --card-foreground: oklch(0.983 0.005 346.147);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.443 0.066 349.685);
  --primary-foreground: oklch(0.958 0.008 346.228);
  --secondary: oklch(0.452 0.085 327.446);
  --secondary-foreground: oklch(0.959 0.01 326.14);
  --accent: oklch(0.437 0.059 20.773);
  --accent-foreground: oklch(0.958 0.006 18.466);
  --destructive: oklch(0.591 0.208 33.609);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.443 0.066 349.685);
  --chart-1: oklch(0.443 0.066 349.685);
  --chart-2: oklch(0.452 0.085 327.446);
  --chart-3: oklch(0.437 0.059 20.773);
  --chart-4: oklch(0.478 0.091 327.459);
  --chart-5: oklch(0.441 0.074 350.15);
}