Adult for shadcn/ui

Adult is a shadcn/ui theme built around a muted indigo primary color (#606180) with muted green accents (#618060). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the muted indigo primary (#606180) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f6f7fdghostwhite
#010104black
Foreground
#000000black
#fcfcfdwhite
Card
#f6f7fdghostwhite
#010104black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f6f7fdghostwhite
#010104black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#606180dimgray
#606180dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#806061dimgray
#806061dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eaeblinen
#150f0fblack
Muted foreground
#474343darkslategray
#bcb8b8silver
Accent
#618060dimgray
#618060dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#871d08darkred
#de300dorangered
Destructive foreground
#fccec5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#606180dimgray
#606180dimgray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button5.95:1AA
Secondary button5.55:1AA
Muted text8.23:1AAA
Accent4.40:1AA Large
Destructive6.68:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button5.95:1AA
Secondary button5.55:1AA
Muted text9.65:1AAA
Accent4.40:1AA Large
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 285.45);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.006 16.082);
  --muted-foreground: oklch(0.386 0.006 16.232);
  --popover: oklch(0.977 0.009 285.45);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.977 0.009 285.45);
  --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.504 0.049 283.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.523 0.041 17.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.059 144.331);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.409 0.144 32.738);
  --destructive-foreground: oklch(0.889 0.053 31.281);
  --ring: oklch(0.504 0.049 283.744);
  --chart-1: oklch(0.504 0.049 283.744);
  --chart-2: oklch(0.523 0.041 17.444);
  --chart-3: oklch(0.567 0.059 144.331);
  --chart-4: oklch(0.548 0.043 17.457);
  --chart-5: oklch(0.496 0.06 283.249);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.074 0.018 280.097);
  --foreground: oklch(0.992 0.001 285.599);
  --muted: oklch(0.176 0.009 16.915);
  --muted-foreground: oklch(0.786 0.005 16.079);
  --popover: oklch(0.074 0.018 280.097);
  --popover-foreground: oklch(0.992 0.001 285.599);
  --card: oklch(0.074 0.018 280.097);
  --card-foreground: oklch(0.992 0.001 285.599);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.504 0.049 283.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.523 0.041 17.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.059 144.331);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.585 0.213 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.049 283.744);
  --chart-1: oklch(0.504 0.049 283.744);
  --chart-2: oklch(0.523 0.041 17.444);
  --chart-3: oklch(0.567 0.059 144.331);
  --chart-4: oklch(0.548 0.043 17.457);
  --chart-5: oklch(0.496 0.06 283.249);
}