Corrupt for shadcn/ui

Corrupt is a shadcn/ui theme built around a vivid purple primary color (#ed0cd7) with muted light purple accents (#dac8d8). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid purple primary (#ed0cd7) on a purple-tinted background (#10040f).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#10040fblack
Foreground
#080208black
#fdfcfdwhite
Card
#fcf8fcsnow
#140612black
Card foreground
#040104black
#ffffffwhite
Popover
#fcf8fcsnow
#140612black
Popover foreground
#040104black
#ffffffwhite
Primary
#ed0cd7magenta
#ed0cd7magenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dac8d8thistle
#303030darkslategray
Secondary foreground
#432d41darkslategray
#c9c9c9silver
Muted
#f1eaf0whitesmoke
#150e0eblack
Muted foreground
#655864dimgray
#a79a9adarkgray
Accent
#dac8d8thistle
#303030darkslategray
Accent foreground
#432d41darkslategray
#c9c9c9silver
Destructive
#c21505firebrick
#f92d1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ed0cd7magenta
#ed0cd7magenta

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card19.72:1AAA
Primary button3.71:1AA Large
Secondary button7.84:1AAA
Muted text5.65:1AA
Accent7.84:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.75:1AAA
Primary button3.71:1AA Large
Secondary button7.91:1AAA
Muted text7.00:1AAA
Accent7.91:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 328.63);
  --foreground: oklch(0.107 0.028 330.038);
  --muted: oklch(0.943 0.011 328.726);
  --muted-foreground: oklch(0.476 0.025 329.16);
  --popover: oklch(0.983 0.007 328.667);
  --popover-foreground: oklch(0.085 0.022 330.038);
  --card: oklch(0.983 0.007 328.667);
  --card-foreground: oklch(0.085 0.022 330.038);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.654 0.289 333.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.853 0.029 328.958);
  --secondary-foreground: oklch(0.332 0.044 329.97);
  --accent: oklch(0.853 0.029 328.958);
  --accent-foreground: oklch(0.332 0.044 329.97);
  --destructive: oklch(0.518 0.204 30.105);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.289 333.749);
  --chart-1: oklch(0.654 0.289 333.749);
  --chart-2: oklch(0.853 0.029 328.958);
  --chart-3: oklch(0.853 0.029 328.958);
  --chart-4: oklch(0.878 0.024 328.888);
  --chart-5: oklch(0.661 0.293 333.848);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.032 330.521);
  --foreground: oklch(0.992 0.001 328.602);
  --muted: oklch(0.174 0.012 18.392);
  --muted-foreground: oklch(0.698 0.016 17.532);
  --popover: oklch(0.151 0.037 330.831);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.151 0.037 330.831);
  --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.654 0.289 333.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.311 0 180);
  --secondary-foreground: oklch(0.837 0 171.254);
  --accent: oklch(0.311 0 180);
  --accent-foreground: oklch(0.837 0 171.254);
  --destructive: oklch(0.633 0.238 30.068);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.289 333.749);
  --chart-1: oklch(0.654 0.289 333.749);
  --chart-2: oklch(0.311 0 180);
  --chart-3: oklch(0.311 0 180);
  --chart-4: oklch(0.341 0 158.199);
  --chart-5: oklch(0.661 0.293 333.848);
}