Mentor is a shadcn/ui theme built around a deep blue primary color (#0a111a) with deep indigo accents (#0a0a1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0a111a) on a blue-tinted background (#040a10).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040a10black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #060c14black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060c14black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0a111ablack | #0a111ablack |
| Primary foreground | #84a8d2skyblue | #84a8d2skyblue |
| Secondary | #0a1a1ablack | #0a1a1ablack |
| Secondary foreground | #41abaflightseagreen | #41abaflightseagreen |
| Muted | #d2e9eagainsboro | #152d2ddarkslategray |
| Muted foreground | #5c7070dimgray | #8fa3a3darkgray |
| Accent | #0a0a1ablack | #0a0a1ablack |
| Accent foreground | #d0cfedgainsboro | #d0cfedgainsboro |
| Destructive | #8a0e05darkred | #f73022orangered |
| Destructive foreground | #fdc8c4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a111ablack | #0a111ablack |
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 | 7.67:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 4.14:1 | AA Large |
| Accent | 12.92:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.51:1 | AA |
| Accent | 12.92:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Mentor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.918 0.025 199.247);
--muted-foreground: oklch(0.528 0.023 199.042);
--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.176 0.022 252.327);
--primary-foreground: oklch(0.721 0.072 252.155);
--secondary: oklch(0.202 0.022 198.469);
--secondary-foreground: oklch(0.683 0.096 198.373);
--accent: oklch(0.154 0.034 283.094);
--accent-foreground: oklch(0.864 0.042 287.015);
--destructive: oklch(0.404 0.157 29.89);
--destructive-foreground: oklch(0.878 0.061 23.121);
--ring: oklch(0.176 0.022 252.327);
--chart-1: oklch(0.176 0.022 252.327);
--chart-2: oklch(0.202 0.022 198.469);
--chart-3: oklch(0.154 0.034 283.094);
--chart-4: oklch(0.244 0.029 198.413);
--chart-5: oklch(0.176 0.023 252.335);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.017 247.014);
--foreground: oklch(0.992 0.001 251.456);
--muted: oklch(0.277 0.03 198.465);
--muted-foreground: oklch(0.699 0.022 199.192);
--popover: oklch(0.152 0.02 249.913);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.02 249.913);
--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.176 0.022 252.327);
--primary-foreground: oklch(0.721 0.072 252.155);
--secondary: oklch(0.202 0.022 198.469);
--secondary-foreground: oklch(0.683 0.096 198.373);
--accent: oklch(0.154 0.034 283.094);
--accent-foreground: oklch(0.864 0.042 287.015);
--destructive: oklch(0.631 0.234 29.498);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.176 0.022 252.327);
--chart-1: oklch(0.176 0.022 252.327);
--chart-2: oklch(0.202 0.022 198.469);
--chart-3: oklch(0.154 0.034 283.094);
--chart-4: oklch(0.244 0.029 198.413);
--chart-5: oklch(0.176 0.023 252.335);
}