Corrupt for shadcn/ui

Corrupt is a shadcn/ui theme built around a purple primary color (#b85699) with cyan accents (#5699b8). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#b85699) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#000000black
Foreground
#090206black
#ffffffwhite
Card
#fdf7fbsnow
#000000black
Card foreground
#090206black
#ffffffwhite
Popover
#fdf7fbsnow
#000000black
Popover foreground
#090206black
#ffffffwhite
Primary
#b85699palevioletred
#b85699palevioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#99b856darkkhaki
#99b856darkkhaki
Secondary foreground
#262f14black
#262f14black
Muted
#e7e9e2gainsboro
#1b1d16black
Muted foreground
#697156dimgray
#a1a98edarkseagreen
Accent
#5699b8cadetblue
#5699b8cadetblue
Accent foreground
#000000black
#000000black
Destructive
#ae3a04firebrick
#fa7538tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b85699palevioletred
#b85699palevioletred

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button4.34:1AA Large
Secondary button6.25:1AA
Muted text4.17:1AA Large
Accent6.65:1AA
Destructive6.15:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.34:1AA Large
Secondary button6.25:1AA
Muted text6.98:1AA
Accent6.65:1AA
Destructive7.68:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 336.722);
  --foreground: oklch(0.105 0.028 337.152);
  --muted: oklch(0.929 0.008 120.917);
  --muted-foreground: oklch(0.534 0.043 122.132);
  --popover: oklch(0.982 0.008 336.722);
  --popover-foreground: oklch(0.105 0.028 337.152);
  --card: oklch(0.982 0.008 336.722);
  --card-foreground: oklch(0.105 0.028 337.152);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.15 341.121);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.739 0.131 124.137);
  --secondary-foreground: oklch(0.288 0.047 123.753);
  --accent: oklch(0.651 0.083 229.803);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.511 0.16 39.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.15 341.121);
  --chart-1: oklch(0.596 0.15 341.121);
  --chart-2: oklch(0.739 0.131 124.137);
  --chart-3: oklch(0.651 0.083 229.803);
  --chart-4: oklch(0.756 0.124 123.802);
  --chart-5: oklch(0.597 0.16 341.437);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.012 121.651);
  --muted-foreground: oklch(0.722 0.04 121.702);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.596 0.15 341.121);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.739 0.131 124.137);
  --secondary-foreground: oklch(0.288 0.047 123.753);
  --accent: oklch(0.651 0.083 229.803);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.712 0.178 43.164);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.596 0.15 341.121);
  --chart-1: oklch(0.596 0.15 341.121);
  --chart-2: oklch(0.739 0.131 124.137);
  --chart-3: oklch(0.651 0.083 229.803);
  --chart-4: oklch(0.756 0.124 123.802);
  --chart-5: oklch(0.597 0.16 341.437);
}