Corporatism is a shadcn/ui theme built around a neutral gray primary color (#d7dbda) with neutral gray accents (#dbdad7). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the neutral gray primary (#d7dbda) on a neutral background (#020806).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #020806black |
| Foreground | #030c09black | #f6f9f8whitesmoke |
| Card | #fbfdfdwhite | #020806black |
| Card foreground | #030c09black | #f6f9f8whitesmoke |
| Popover | #fbfdfdwhite | #020806black |
| Popover foreground | #030c09black | #f6f9f8whitesmoke |
| Primary | #d7dbdagainsboro | #d7dbdagainsboro |
| Primary foreground | #3d4341darkslategray | #3d4341darkslategray |
| Secondary | #dad7dbgainsboro | #dad7dbgainsboro |
| Secondary foreground | #413d43darkslategray | #413d43darkslategray |
| Muted | #dfd3e4gainsboro | #271b2cdarkslategray |
| Muted foreground | #615964dimgray | #a39ba6darkgray |
| Accent | #dbdad7gainsboro | #dbdad7gainsboro |
| Accent foreground | #43413ddarkslategray | #43413ddarkslategray |
| Destructive | #a01008darkred | #f31d12red |
| Destructive foreground | #fddfddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7dbdagainsboro | #d7dbdagainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Corporatism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 176.592);
--foreground: oklch(0.143 0.017 176.294);
--muted: oklch(0.881 0.027 315.914);
--muted-foreground: oklch(0.474 0.02 315.868);
--popover: oklch(0.994 0.002 176.592);
--popover-foreground: oklch(0.143 0.017 176.294);
--card: oklch(0.994 0.002 176.592);
--card-foreground: oklch(0.143 0.017 176.294);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.887 0.004 176.513);
--primary-foreground: oklch(0.376 0.009 175.943);
--secondary: oklch(0.882 0.006 315.997);
--secondary-foreground: oklch(0.365 0.012 315.901);
--accent: oklch(0.887 0.004 87.443);
--accent-foreground: oklch(0.376 0.008 87.515);
--destructive: oklch(0.449 0.176 29.42);
--destructive-foreground: oklch(0.927 0.034 21.381);
--ring: oklch(0.887 0.004 176.513);
--chart-1: oklch(0.887 0.004 176.513);
--chart-2: oklch(0.882 0.006 315.997);
--chart-3: oklch(0.887 0.004 87.443);
--chart-4: oklch(0.906 0.005 316.003);
--chart-5: oklch(0.889 0.007 176.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 176.844);
--foreground: oklch(0.979 0.003 176.576);
--muted: oklch(0.245 0.036 315.478);
--muted-foreground: oklch(0.7 0.019 315.927);
--popover: oklch(0.125 0.015 176.844);
--popover-foreground: oklch(0.979 0.003 176.576);
--card: oklch(0.125 0.015 176.844);
--card-foreground: oklch(0.979 0.003 176.576);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.887 0.004 176.513);
--primary-foreground: oklch(0.376 0.009 175.943);
--secondary: oklch(0.882 0.006 315.997);
--secondary-foreground: oklch(0.365 0.012 315.901);
--accent: oklch(0.887 0.004 87.443);
--accent-foreground: oklch(0.376 0.008 87.515);
--destructive: oklch(0.612 0.24 29.431);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.004 176.513);
--chart-1: oklch(0.887 0.004 176.513);
--chart-2: oklch(0.882 0.006 315.997);
--chart-3: oklch(0.887 0.004 87.443);
--chart-4: oklch(0.906 0.005 316.003);
--chart-5: oklch(0.889 0.007 176.426);
}