Corrupt for shadcn/ui

Corrupt is a shadcn/ui theme built around a light yellow primary color (#dbdab3) with light indigo accents (#b3b3db). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#dbdab3) on a yellow-tinted background (#0f0f06).

Color palette

TokenLightDark
Background
#fcfcf8snow
#0f0f06black
Foreground
#000000black
#f9f9f6whitesmoke
Card
#fbfbf4floralwhite
#121207black
Card foreground
#000000black
#fbfbf9snow
Popover
#fcfcf8snow
#0f0f06black
Popover foreground
#000000black
#f9f9f6whitesmoke
Primary
#dbdab3palegoldenrod
#dbdab3palegoldenrod
Primary foreground
#3e3e1ddarkolivegreen
#3e3e1ddarkolivegreen
Secondary
#b3b3dblightsteelblue
#b3b3dblightsteelblue
Secondary foreground
#1d1e3emidnightblue
#1d1e3emidnightblue
Muted
#d8d9degainsboro
#212127black
Muted foreground
#414149darkslategray
#b6b6besilver
Accent
#b3b3dblightsteelblue
#b3b3dblightsteelblue
Accent foreground
#1d1e3emidnightblue
#1d1e3emidnightblue
Destructive
#67160amaroon
#ec4f36tomato
Destructive foreground
#f7b5ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbdab3palegoldenrod
#dbdab3palegoldenrod

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.14:1AAA
Primary button7.70:1AAA
Secondary button7.96:1AAA
Muted text7.15:1AAA
Accent7.96:1AAA
Destructive7.18:1AAA
Dark mode
Text on background18.28:1AAA
Text on card18.12:1AAA
Primary button7.70:1AAA
Secondary button7.96:1AAA
Muted text7.95:1AAA
Accent7.96:1AAA
Destructive3.65: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.99 0.006 105.721);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.885 0.008 285.462);
  --muted-foreground: oklch(0.378 0.014 284.948);
  --popover: oklch(0.99 0.006 105.721);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.009 105.774);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.88 0.053 106.632);
  --primary-foreground: oklch(0.355 0.05 107.835);
  --secondary: oklch(0.781 0.056 284.253);
  --secondary-foreground: oklch(0.253 0.06 280.437);
  --accent: oklch(0.781 0.056 284.253);
  --accent-foreground: oklch(0.253 0.06 280.437);
  --destructive: oklch(0.339 0.116 31.662);
  --destructive-foreground: oklch(0.832 0.079 28.713);
  --ring: oklch(0.88 0.053 106.632);
  --chart-1: oklch(0.88 0.053 106.632);
  --chart-2: oklch(0.781 0.056 284.253);
  --chart-3: oklch(0.781 0.056 284.253);
  --chart-4: oklch(0.811 0.048 284.507);
  --chart-5: oklch(0.884 0.057 106.703);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.019 107.545);
  --foreground: oklch(0.981 0.004 105.689);
  --muted: oklch(0.25 0.011 284.837);
  --muted-foreground: oklch(0.779 0.011 285.352);
  --popover: oklch(0.164 0.019 107.545);
  --popover-foreground: oklch(0.981 0.004 105.689);
  --card: oklch(0.18 0.022 107.58);
  --card-foreground: oklch(0.987 0.003 105.665);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.88 0.053 106.632);
  --primary-foreground: oklch(0.355 0.05 107.835);
  --secondary: oklch(0.781 0.056 284.253);
  --secondary-foreground: oklch(0.253 0.06 280.437);
  --accent: oklch(0.781 0.056 284.253);
  --accent-foreground: oklch(0.253 0.06 280.437);
  --destructive: oklch(0.642 0.198 31.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.88 0.053 106.632);
  --chart-1: oklch(0.88 0.053 106.632);
  --chart-2: oklch(0.781 0.056 284.253);
  --chart-3: oklch(0.781 0.056 284.253);
  --chart-4: oklch(0.811 0.048 284.507);
  --chart-5: oklch(0.884 0.057 106.703);
}