Institute is a shadcn/ui theme built around a deep violet primary color (#16092a) with deep purple accents (#27092a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#16092a) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #050307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #16092ablack | #16092ablack |
| Primary foreground | #a981e4mediumpurple | #a981e4mediumpurple |
| Secondary | #090c2ablack | #090c2ablack |
| Secondary foreground | #818be4cornflowerblue | #818be4cornflowerblue |
| Muted | #d2d4e4gainsboro | #1b1d2dblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #27092ablack | #27092ablack |
| Accent foreground | #da81e4orchid | #da81e4orchid |
| Destructive | #ab1103firebrick | #fb2613orangered |
| Destructive foreground | #ffe3e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16092ablack | #16092ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 4.92:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Institute in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.874 0.022 280.868);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.064 298.136);
--primary-foreground: oklch(0.681 0.147 301.038);
--secondary: oklch(0.174 0.06 273.572);
--secondary-foreground: oklch(0.666 0.133 277.354);
--accent: oklch(0.208 0.072 323.586);
--accent-foreground: oklch(0.733 0.167 323.402);
--destructive: oklch(0.471 0.185 30.234);
--destructive-foreground: oklch(0.938 0.03 23.922);
--ring: oklch(0.182 0.064 298.136);
--chart-1: oklch(0.182 0.064 298.136);
--chart-2: oklch(0.174 0.06 273.572);
--chart-3: oklch(0.208 0.072 323.586);
--chart-4: oklch(0.198 0.075 272.656);
--chart-5: oklch(0.181 0.067 297.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.012 305.063);
--foreground: oklch(0.991 0.002 304.31);
--muted: oklch(0.235 0.031 278.836);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0.105 0.015 305.063);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.015 305.063);
--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.182 0.064 298.136);
--primary-foreground: oklch(0.681 0.147 301.038);
--secondary: oklch(0.174 0.06 273.572);
--secondary-foreground: oklch(0.666 0.133 277.354);
--accent: oklch(0.208 0.072 323.586);
--accent-foreground: oklch(0.733 0.167 323.402);
--destructive: oklch(0.633 0.244 30.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.064 298.136);
--chart-1: oklch(0.182 0.064 298.136);
--chart-2: oklch(0.174 0.06 273.572);
--chart-3: oklch(0.208 0.072 323.586);
--chart-4: oklch(0.198 0.075 272.656);
--chart-5: oklch(0.181 0.067 297.771);
}