Examiner for shadcn/ui

Examiner is a shadcn/ui theme built around a deep cyan primary color (#06191e) with deep green accents (#191e06). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#06191e) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#ffffffwhite
#020708black
Foreground
#010304black
#ffffffwhite
Card
#fcfcfcsnow
#030a0cblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030a0cblack
Popover foreground
#000000black
#ffffffwhite
Primary
#06191eblack
#06191eblack
Primary foreground
#28a5c8lightseagreen
#28a5c8lightseagreen
Secondary
#1e0619black
#1e0619black
Secondary foreground
#e372cborchid
#e372cborchid
Muted
#e4d8e1gainsboro
#271b25black
Muted foreground
#61565fdimgray
#a99ea6darkgray
Accent
#191e06black
#191e06black
Accent foreground
#a5c828yellowgreen
#a5c828yellowgreen
Destructive
#6b0705maroon
#f4231fcrimson
Destructive foreground
#fba9a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06191eblack
#06191eblack

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.54:1AAA
Primary button6.28:1AA
Secondary button6.88:1AA
Muted text5.05:1AA
Accent8.87:1AAA
Destructive6.83:1AA
Dark mode
Text on background20.27:1AAA
Text on card19.93:1AAA
Primary button6.28:1AA
Secondary button6.88:1AA
Muted text6.39:1AA
Accent8.87:1AAA
Destructive4.10:1AA Large

CSS variables

Paste this into your globals.css to use Examiner in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.011 211.23);
  --muted: oklch(0.894 0.018 332.927);
  --muted-foreground: oklch(0.468 0.02 333.252);
  --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.199 0.027 218.05);
  --primary-foreground: oklch(0.673 0.115 221.685);
  --secondary: oklch(0.174 0.052 336.701);
  --secondary-foreground: oklch(0.712 0.174 336.115);
  --accent: oklch(0.222 0.042 119.969);
  --accent-foreground: oklch(0.781 0.178 121.889);
  --destructive: oklch(0.336 0.132 28.786);
  --destructive-foreground: oklch(0.813 0.097 20.48);
  --ring: oklch(0.199 0.027 218.05);
  --chart-1: oklch(0.199 0.027 218.05);
  --chart-2: oklch(0.174 0.052 336.701);
  --chart-3: oklch(0.222 0.042 119.969);
  --chart-4: oklch(0.21 0.068 337.376);
  --chart-5: oklch(0.199 0.028 218.128);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.012 211.656);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.242 0.025 334.139);
  --muted-foreground: oklch(0.71 0.018 332.998);
  --popover: oklch(0.137 0.014 212.522);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.014 212.522);
  --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.199 0.027 218.05);
  --primary-foreground: oklch(0.673 0.115 221.685);
  --secondary: oklch(0.174 0.052 336.701);
  --secondary-foreground: oklch(0.712 0.174 336.115);
  --accent: oklch(0.222 0.042 119.969);
  --accent-foreground: oklch(0.781 0.178 121.889);
  --destructive: oklch(0.619 0.239 28.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.199 0.027 218.05);
  --chart-1: oklch(0.199 0.027 218.05);
  --chart-2: oklch(0.174 0.052 336.701);
  --chart-3: oklch(0.222 0.042 119.969);
  --chart-4: oklch(0.21 0.068 337.376);
  --chart-5: oklch(0.199 0.028 218.128);
}