Examination for shadcn/ui

Examination is a shadcn/ui theme built around an orange primary color (#bb673a) with blue accents (#3a8ebb). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#bb673a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf9f8snow
#000000black
Foreground
#0c0604black
#fbfaf9snow
Card
#fcf9f8snow
#000000black
Card foreground
#0c0604black
#fbfaf9snow
Popover
#fcf9f8snow
#000000black
Popover foreground
#0c0604black
#fbfaf9snow
Primary
#bb673aperu
#bb673aperu
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3a8ebbsteelblue
#3a8ebbsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e9eblavender
#14181ablack
Muted foreground
#41494edarkslategray
#b1babesilver
Accent
#3a8ebbsteelblue
#3a8ebbsteelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#df1001red
#fe382aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bb673aperu
#bb673aperu

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button4.10:1AA Large
Secondary button3.64:1AA Large
Muted text7.51:1AAA
Accent3.64:1AA Large
Destructive4.97:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button4.10:1AA Large
Secondary button3.64:1AA Large
Muted text9.05:1AAA
Accent3.64:1AA Large
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 50.619);
  --foreground: oklch(0.132 0.014 57.932);
  --muted: oklch(0.932 0.005 230.739);
  --muted-foreground: oklch(0.401 0.013 231.15);
  --popover: oklch(0.985 0.003 50.619);
  --popover-foreground: oklch(0.132 0.014 57.932);
  --card: oklch(0.985 0.003 50.619);
  --card-foreground: oklch(0.132 0.014 57.932);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.124 47.377);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.615 0.106 235.807);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.615 0.106 235.807);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.23 29.85);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.124 47.377);
  --chart-1: oklch(0.602 0.124 47.377);
  --chart-2: oklch(0.615 0.106 235.807);
  --chart-3: oklch(0.615 0.106 235.807);
  --chart-4: oklch(0.64 0.107 235.551);
  --chart-5: oklch(0.604 0.13 47.048);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 50.63);
  --muted: oklch(0.205 0.008 231.234);
  --muted-foreground: oklch(0.782 0.011 230.861);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 50.63);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.985 0.002 50.63);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.124 47.377);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.615 0.106 235.807);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.615 0.106 235.807);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.65 0.234 29.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.124 47.377);
  --chart-1: oklch(0.602 0.124 47.377);
  --chart-2: oklch(0.615 0.106 235.807);
  --chart-3: oklch(0.615 0.106 235.807);
  --chart-4: oklch(0.64 0.107 235.551);
  --chart-5: oklch(0.604 0.13 47.048);
}