Institution is a shadcn/ui theme built around a red primary color (#722c3e) with orange accents (#723e2c). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the red primary (#722c3e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #000000black |
| Foreground | #0d0205black | #fcf8f9snow |
| Card | #faf5f6whitesmoke | #030303black |
| Card foreground | #090103black | #fdfcfcsnow |
| Popover | #faf5f6whitesmoke | #030303black |
| Popover foreground | #090103black | #fdfcfcsnow |
| Primary | #722c3ebrown | #722c3ebrown |
| Primary foreground | #f2dee3mistyrose | #f2dee3mistyrose |
| Secondary | #722c60purple | #722c60purple |
| Secondary foreground | #f2deedmistyrose | #f2deedmistyrose |
| Muted | #e6d1e1gainsboro | #2e1929darkslategray |
| Muted foreground | #4f404bdarkslategray | #bfb0bbsilver |
| Accent | #723e2csaddlebrown | #723e2csaddlebrown |
| Accent foreground | #f2e3deantiquewhite | #f2e3deantiquewhite |
| Destructive | #741902maroon | #fc562ctomato |
| Destructive foreground | #febaaalightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #722c3ebrown | #722c3ebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Institution in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 359.977);
--foreground: oklch(0.117 0.029 0.223);
--muted: oklch(0.882 0.032 334.474);
--muted-foreground: oklch(0.391 0.026 334.958);
--popover: oklch(0.974 0.006 0.035);
--popover-foreground: oklch(0.101 0.025 359.756);
--card: oklch(0.974 0.006 0.035);
--card-foreground: oklch(0.101 0.025 359.756);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.398 0.099 7.244);
--primary-foreground: oklch(0.918 0.023 0.568);
--secondary: oklch(0.412 0.118 338.396);
--secondary-foreground: oklch(0.921 0.03 334.411);
--accent: oklch(0.423 0.078 39.108);
--accent-foreground: oklch(0.927 0.018 39.395);
--destructive: oklch(0.367 0.129 34.314);
--destructive-foreground: oklch(0.848 0.082 34.508);
--ring: oklch(0.398 0.099 7.244);
--chart-1: oklch(0.398 0.099 7.244);
--chart-2: oklch(0.412 0.118 338.396);
--chart-3: oklch(0.423 0.078 39.108);
--chart-4: oklch(0.439 0.128 338.451);
--chart-5: oklch(0.399 0.106 7.85);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 359.987);
--muted: oklch(0.249 0.043 336.586);
--muted-foreground: oklch(0.774 0.022 334.348);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.002 359.926);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 359.926);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.398 0.099 7.244);
--primary-foreground: oklch(0.918 0.023 0.568);
--secondary: oklch(0.412 0.118 338.396);
--secondary-foreground: oklch(0.921 0.03 334.411);
--accent: oklch(0.423 0.078 39.108);
--accent-foreground: oklch(0.927 0.018 39.395);
--destructive: oklch(0.673 0.209 34.81);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.398 0.099 7.244);
--chart-1: oklch(0.398 0.099 7.244);
--chart-2: oklch(0.412 0.118 338.396);
--chart-3: oklch(0.423 0.078 39.108);
--chart-4: oklch(0.439 0.128 338.451);
--chart-5: oklch(0.399 0.106 7.85);
}