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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 6.25:1 | AA |
| Muted text | 4.17:1 | AA Large |
| Accent | 6.65:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 6.25:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 6.65:1 | AA |
| Destructive | 7.68:1 | AAA |
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);
}