Corrupt for shadcn/ui

Corrupt is a shadcn/ui theme built around a neutral gray primary color (#c8cac4) with neutral gray accents (#c6c4ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c8cac4) on a green-tinted background (#090b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#090b04black
Foreground
#0f1405black
#f8faf5whitesmoke
Card
#fcfcfcsnow
#0c0f06black
Card foreground
#0c1004black
#fafcf8snow
Popover
#ffffffwhite
#090b04black
Popover foreground
#0f1405black
#f8faf5whitesmoke
Primary
#c8cac4silver
#c8cac4silver
Primary foreground
#2f312bdarkslategray
#2f312bdarkslategray
Secondary
#c6c4casilver
#c6c4casilver
Secondary foreground
#2d2b31darkslategray
#2d2b31darkslategray
Muted
#f1eef7whitesmoke
#0b0811black
Muted foreground
#5a5562dimgray
#a19daadarkgray
Accent
#c6c4casilver
#c6c4casilver
Accent foreground
#2d2b31darkslategray
#2d2b31darkslategray
Destructive
#c14e0bchocolate
#de590dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8cac4silver
#c8cac4silver

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.82:1AAA
Primary button7.97:1AAA
Secondary button8.06:1AAA
Muted text6.27:1AA
Accent8.06:1AAA
Destructive4.82:1AA
Dark mode
Text on background18.84:1AAA
Text on card18.77:1AAA
Primary button7.97:1AAA
Secondary button8.06:1AAA
Muted text7.48:1AAA
Accent8.06:1AAA
Destructive3.78:1AA Large

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.182 0.031 124.447);
  --muted: oklch(0.953 0.013 301.999);
  --muted-foreground: oklch(0.46 0.021 301.486);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.182 0.031 124.447);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.165 0.027 123.527);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.01 122.393);
  --primary-foreground: oklch(0.308 0.01 122.727);
  --secondary: oklch(0.823 0.01 302.03);
  --secondary-foreground: oklch(0.294 0.01 301.669);
  --accent: oklch(0.823 0.01 302.03);
  --accent-foreground: oklch(0.294 0.01 301.669);
  --destructive: oklch(0.568 0.162 43.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.01 122.393);
  --chart-1: oklch(0.836 0.01 122.393);
  --chart-2: oklch(0.823 0.01 302.03);
  --chart-3: oklch(0.823 0.01 302.03);
  --chart-4: oklch(0.847 0.008 302.06);
  --chart-5: oklch(0.839 0.014 122.482);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 121.953);
  --foreground: oklch(0.982 0.007 122.324);
  --muted: oklch(0.144 0.021 300.263);
  --muted-foreground: oklch(0.703 0.019 301.786);
  --popover: oklch(0.144 0.017 121.953);
  --popover-foreground: oklch(0.982 0.007 122.324);
  --card: oklch(0.16 0.019 123.243);
  --card-foreground: oklch(0.988 0.005 122.286);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.01 122.393);
  --primary-foreground: oklch(0.308 0.01 122.727);
  --secondary: oklch(0.823 0.01 302.03);
  --secondary-foreground: oklch(0.294 0.01 301.669);
  --accent: oklch(0.823 0.01 302.03);
  --accent-foreground: oklch(0.294 0.01 301.669);
  --destructive: oklch(0.629 0.181 43.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.01 122.393);
  --chart-1: oklch(0.836 0.01 122.393);
  --chart-2: oklch(0.823 0.01 302.03);
  --chart-3: oklch(0.823 0.01 302.03);
  --chart-4: oklch(0.847 0.008 302.06);
  --chart-5: oklch(0.839 0.014 122.482);
}