Corrupt is a shadcn/ui theme built around a vivid yellow primary color (#f4f72b) with muted light yellow accents (#d5d5c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f4f72b) on a neutral background (#040402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040402black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #ffffffwhite | #040402black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #040402black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #f4f72byellow | #f4f72byellow |
| Primary foreground | #525403darkolivegreen | #525403darkolivegreen |
| Secondary | #e2e2dfgainsboro | #1d1d16black |
| Secondary foreground | #4c4c43darkslategray | #bdbda8silver |
| Muted | #e7e8d4gainsboro | #2b2b17black |
| Muted foreground | #6e6e59dimgray | #a6a691darkgray |
| Accent | #d5d5c8lightgrey | #3a3a27darkslategray |
| Accent foreground | #3c3d2fdarkslategray | #d4d4bflightgrey |
| Destructive | #b32309firebrick | #f33c1borangered |
| Destructive foreground | #fef3f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f72byellow | #f4f72byellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.69:1 | AA |
| Muted text | 4.18:1 | AA Large |
| Accent | 7.44:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 8.87:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 3.84:1 | AA Large |
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.106 0.017 109.519);
--muted: oklch(0.925 0.026 107.682);
--muted-foreground: oklch(0.533 0.033 108.252);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.017 109.519);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.017 109.519);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.944 0.199 110.711);
--primary-foreground: oklch(0.429 0.093 110.816);
--secondary: oklch(0.912 0.005 107.268);
--secondary-foreground: oklch(0.412 0.014 107.772);
--accent: oklch(0.869 0.017 107.523);
--accent-foreground: oklch(0.353 0.023 108.315);
--destructive: oklch(0.498 0.183 31.889);
--destructive-foreground: oklch(0.971 0.013 29.517);
--ring: oklch(0.944 0.199 110.711);
--chart-1: oklch(0.944 0.199 110.711);
--chart-2: oklch(0.912 0.005 107.268);
--chart-3: oklch(0.869 0.017 107.523);
--chart-4: oklch(0.935 0.004 107.241);
--chart-5: oklch(0.953 0.202 110.743);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.01 108.73);
--foreground: oklch(0.994 0.001 107.197);
--muted: oklch(0.283 0.033 109.18);
--muted-foreground: oklch(0.72 0.031 107.928);
--popover: oklch(0.101 0.01 108.73);
--popover-foreground: oklch(0.994 0.001 107.197);
--card: oklch(0.101 0.01 108.73);
--card-foreground: oklch(0.994 0.001 107.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.944 0.199 110.711);
--primary-foreground: oklch(0.429 0.093 110.816);
--secondary: oklch(0.228 0.013 108.192);
--secondary-foreground: oklch(0.793 0.029 107.832);
--accent: oklch(0.343 0.032 108.77);
--accent-foreground: oklch(0.864 0.029 107.767);
--destructive: oklch(0.633 0.223 32.18);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.944 0.199 110.711);
--chart-1: oklch(0.944 0.199 110.711);
--chart-2: oklch(0.228 0.013 108.192);
--chart-3: oklch(0.343 0.032 108.77);
--chart-4: oklch(0.264 0.017 108.271);
--chart-5: oklch(0.953 0.202 110.743);
}