Detainee for shadcn/ui

Detainee is a shadcn/ui theme built around a teal primary color (#2e6b63) with blue accents (#2e556b). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#2e6b63) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#040b0ablack
Foreground
#021210black
#ffffffwhite
Card
#f3fcfamintcream
#060e0dblack
Card foreground
#020d0cblack
#ffffffwhite
Popover
#f7fdfcmintcream
#040b0ablack
Popover foreground
#021210black
#ffffffwhite
Primary
#2e6b63seagreen
#2e6b63seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e6b44darkslategray
#2e6b44darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dae7dfgainsboro
#18251dblack
Muted foreground
#4b5850darkslategray
#a7b4acdarkgray
Accent
#2e556bdarkslategray
#2e556bdarkslategray
Accent foreground
#dbe8f0lavender
#dbe8f0lavender
Destructive
#c31209firebrick
#f53c32tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e6b63seagreen
#2e6b63seagreen

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.83:1AAA
Primary button6.17:1AA
Secondary button6.34:1AA
Muted text5.86:1AA
Accent6.42:1AA
Destructive6.15:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.46:1AAA
Primary button6.17:1AA
Secondary button6.34:1AA
Muted text7.37:1AAA
Accent6.42:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 187.599);
  --foreground: oklch(0.166 0.024 184.887);
  --muted: oklch(0.916 0.018 158.28);
  --muted-foreground: oklch(0.447 0.021 157.654);
  --popover: oklch(0.989 0.006 187.599);
  --popover-foreground: oklch(0.166 0.024 184.887);
  --card: oklch(0.983 0.009 187.523);
  --card-foreground: oklch(0.147 0.021 186.062);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.485 0.065 183.682);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.477 0.09 153.485);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.43 0.058 235.671);
  --accent-foreground: oklch(0.924 0.017 232.849);
  --destructive: oklch(0.518 0.205 29.471);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.485 0.065 183.682);
  --chart-1: oklch(0.485 0.065 183.682);
  --chart-2: oklch(0.477 0.09 153.485);
  --chart-3: oklch(0.43 0.058 235.671);
  --chart-4: oklch(0.51 0.097 153.413);
  --chart-5: oklch(0.491 0.068 183.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 187.173);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.025 156.359);
  --muted-foreground: oklch(0.757 0.019 158.177);
  --popover: oklch(0.141 0.012 187.173);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.014 186.001);
  --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.485 0.065 183.682);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.477 0.09 153.485);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.43 0.058 235.671);
  --accent-foreground: oklch(0.924 0.017 232.849);
  --destructive: oklch(0.639 0.222 28.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.485 0.065 183.682);
  --chart-1: oklch(0.485 0.065 183.682);
  --chart-2: oklch(0.477 0.09 153.485);
  --chart-3: oklch(0.43 0.058 235.671);
  --chart-4: oklch(0.51 0.097 153.413);
  --chart-5: oklch(0.491 0.068 183.414);
}