Adolescent for shadcn/ui

Adolescent is a shadcn/ui theme built around a vivid light cyan primary color (#e7fafe) with vivid light red accents (#feeae7). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid light cyan primary (#e7fafe) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#030607black
Foreground
#041316black
#ffffffwhite
Card
#f8fbfcghostwhite
#030607black
Card foreground
#041316black
#ffffffwhite
Popover
#f8fbfcghostwhite
#030607black
Popover foreground
#041316black
#ffffffwhite
Primary
#e7fafelightcyan
#e7fafelightcyan
Primary foreground
#043e48darkslategray
#043e48darkslategray
Secondary
#feeae7linen
#feeae7linen
Secondary foreground
#a9220afirebrick
#a9220afirebrick
Muted
#e9dad8gainsboro
#271816black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#feeae7linen
#feeae7linen
Accent foreground
#a9220afirebrick
#a9220afirebrick
Destructive
#8d2207darkred
#f34a20orangered
Destructive foreground
#fcd4cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7fafelightcyan
#e7fafelightcyan

Contrast

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

Light mode
Text on background18.20:1AAA
Text on card18.20:1AAA
Primary button10.91:1AAA
Secondary button6.21:1AA
Muted text4.78:1AA
Accent6.21:1AA
Destructive6.54:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button10.91:1AAA
Secondary button6.21:1AA
Muted text6.59:1AA
Accent6.21:1AA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 209.46);
  --foreground: oklch(0.174 0.023 209.292);
  --muted: oklch(0.9 0.017 29.542);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.986 0.003 209.46);
  --popover-foreground: oklch(0.174 0.023 209.292);
  --card: oklch(0.986 0.003 209.46);
  --card-foreground: oklch(0.174 0.023 209.292);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.973 0.021 209.43);
  --primary-foreground: oklch(0.335 0.057 213.432);
  --secondary: oklch(0.952 0.022 29.56);
  --secondary-foreground: oklch(0.477 0.174 31.968);
  --accent: oklch(0.952 0.022 29.56);
  --accent-foreground: oklch(0.477 0.174 31.968);
  --destructive: oklch(0.424 0.146 34.014);
  --destructive-foreground: oklch(0.901 0.048 34.341);
  --ring: oklch(0.973 0.021 209.43);
  --chart-1: oklch(0.973 0.021 209.43);
  --chart-2: oklch(0.952 0.022 29.56);
  --chart-3: oklch(0.952 0.022 29.56);
  --chart-4: oklch(0.981 0.008 29.498);
  --chart-5: oklch(0.973 0.021 209.43);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.007 207.379);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.025 30.249);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.119 0.007 207.379);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.007 207.379);
  --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.973 0.021 209.43);
  --primary-foreground: oklch(0.335 0.057 213.432);
  --secondary: oklch(0.952 0.022 29.56);
  --secondary-foreground: oklch(0.477 0.174 31.968);
  --accent: oklch(0.952 0.022 29.56);
  --accent-foreground: oklch(0.477 0.174 31.968);
  --destructive: oklch(0.647 0.212 34.47);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.973 0.021 209.43);
  --chart-1: oklch(0.973 0.021 209.43);
  --chart-2: oklch(0.952 0.022 29.56);
  --chart-3: oklch(0.952 0.022 29.56);
  --chart-4: oklch(0.981 0.008 29.498);
  --chart-5: oklch(0.973 0.021 209.43);
}