Mentor for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.67:1AAA
Secondary button6.54:1AA
Muted text4.14:1AA Large
Accent12.92:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.60:1AAA
Primary button7.67:1AAA
Secondary button6.54:1AA
Muted text5.51:1AA
Accent12.92:1AAA
Destructive3.89:1AA Large

CSS variables

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);
}