Adoption for shadcn/ui

Adoption is a shadcn/ui theme built around a deep cyan primary color (#091516) with deep red accents (#160a09). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the deep cyan primary (#091516) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#030707black
Foreground
#000000black
#fcfdfdwhite
Card
#f3fbfcmintcream
#040a0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f3fbfcmintcream
#040a0bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#091516black
#091516black
Primary foreground
#82c7ceskyblue
#82c7ceskyblue
Secondary
#160a09black
#160a09black
Secondary foreground
#ce8a82rosybrown
#ce8a82rosybrown
Muted
#e7d2d0gainsboro
#2f1b18black
Muted foreground
#646362dimgray
#9d9b9bdarkgray
Accent
#160a09black
#160a09black
Accent foreground
#ce8a82rosybrown
#ce8a82rosybrown
Destructive
#671d09maroon
#ed5d35tomato
Destructive foreground
#f8bbablightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#091516black
#091516black

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.01:1AAA
Primary button9.76:1AAA
Secondary button7.01:1AAA
Muted text4.14:1AA Large
Accent7.01:1AAA
Destructive7.19:1AAA
Dark mode
Text on background19.87:1AAA
Text on card19.90:1AAA
Primary button9.76:1AAA
Secondary button7.01:1AAA
Muted text5.89:1AA
Accent7.01:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 204.944);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.023 25.224);
  --muted-foreground: oklch(0.5 0.002 25.027);
  --popover: oklch(0.982 0.009 204.921);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.009 204.921);
  --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.184 0.018 204.713);
  --primary-foreground: oklch(0.786 0.07 204.725);
  --secondary: oklch(0.162 0.022 26.97);
  --secondary-foreground: oklch(0.7 0.086 26.439);
  --accent: oklch(0.162 0.022 26.97);
  --accent-foreground: oklch(0.7 0.086 26.439);
  --destructive: oklch(0.349 0.11 35.509);
  --destructive-foreground: oklch(0.844 0.074 36.017);
  --ring: oklch(0.184 0.018 204.713);
  --chart-1: oklch(0.184 0.018 204.713);
  --chart-2: oklch(0.162 0.022 26.97);
  --chart-3: oklch(0.162 0.022 26.97);
  --chart-4: oklch(0.194 0.031 27.078);
  --chart-5: oklch(0.185 0.019 204.714);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.01 202.823);
  --foreground: oklch(0.993 0.001 204.982);
  --muted: oklch(0.247 0.033 26.637);
  --muted-foreground: oklch(0.69 0.002 25.015);
  --popover: oklch(0.139 0.012 203.049);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.012 203.049);
  --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.184 0.018 204.713);
  --primary-foreground: oklch(0.786 0.07 204.725);
  --secondary: oklch(0.162 0.022 26.97);
  --secondary-foreground: oklch(0.7 0.086 26.439);
  --accent: oklch(0.162 0.022 26.97);
  --accent-foreground: oklch(0.7 0.086 26.439);
  --destructive: oklch(0.66 0.187 36.081);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.184 0.018 204.713);
  --chart-1: oklch(0.184 0.018 204.713);
  --chart-2: oklch(0.162 0.022 26.97);
  --chart-3: oklch(0.162 0.022 26.97);
  --chart-4: oklch(0.194 0.031 27.078);
  --chart-5: oklch(0.185 0.019 204.714);
}