Teen for shadcn/ui

Teen is a shadcn/ui theme built around a pink primary color (#6c2d51) with neutral gray accents (#d7d6d6). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#6c2d51) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#0d0308black
#fcf8fasnow
Card
#fbf3f8lavenderblush
#030303black
Card foreground
#080206black
#fdfbfdsnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#0d0308black
#fcf8fasnow
Primary
#6c2d51dimgray
#6c2d51dimgray
Primary foreground
#f0dbe7mistyrose
#f0dbe7mistyrose
Secondary
#d7d6d6lightgrey
#372f34darkslategray
Secondary foreground
#3e3d3ddarkslategray
#d0c8cdlightgrey
Muted
#e1dadegainsboro
#251e22black
Muted foreground
#65585fdimgray
#a79aa2darkgray
Accent
#d7d6d6lightgrey
#372f34darkslategray
Accent foreground
#3e3d3ddarkslategray
#d0c8cdlightgrey
Destructive
#953b0fsaddlebrown
#e96625chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c2d51dimgray
#6c2d51dimgray

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card18.91:1AAA
Primary button7.50:1AAA
Secondary button7.44:1AAA
Muted text4.92:1AA
Accent7.44:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.94:1AAA
Text on card20.08:1AAA
Primary button7.50:1AAA
Secondary button7.93:1AAA
Muted text6.07:1AA
Accent7.93:1AAA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 341.981);
  --foreground: oklch(0.12 0.029 342.324);
  --muted: oklch(0.896 0.01 342.065);
  --muted-foreground: oklch(0.475 0.021 342.818);
  --popover: oklch(0.982 0.007 341.981);
  --popover-foreground: oklch(0.12 0.029 342.324);
  --card: oklch(0.973 0.011 342.071);
  --card-foreground: oklch(0.105 0.025 341.836);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.397 0.1 347.491);
  --primary-foreground: oklch(0.912 0.028 342.521);
  --secondary: oklch(0.876 0.001 341.838);
  --secondary-foreground: oklch(0.36 0.002 341.943);
  --accent: oklch(0.876 0.001 341.838);
  --accent-foreground: oklch(0.36 0.002 341.943);
  --destructive: oklch(0.47 0.131 42.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.397 0.1 347.491);
  --chart-1: oklch(0.397 0.1 347.491);
  --chart-2: oklch(0.876 0.001 341.838);
  --chart-3: oklch(0.876 0.001 341.838);
  --chart-4: oklch(0.9 0.001 341.831);
  --chart-5: oklch(0.397 0.106 347.909);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.005 341.93);
  --muted: oklch(0.243 0.014 343.088);
  --muted-foreground: oklch(0.7 0.019 342.436);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.005 341.93);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.003 341.868);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.397 0.1 347.491);
  --primary-foreground: oklch(0.912 0.028 342.521);
  --secondary: oklch(0.315 0.014 342.848);
  --secondary-foreground: oklch(0.84 0.011 342.119);
  --accent: oklch(0.315 0.014 342.848);
  --accent-foreground: oklch(0.84 0.011 342.119);
  --destructive: oklch(0.665 0.178 43.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.397 0.1 347.491);
  --chart-1: oklch(0.397 0.1 347.491);
  --chart-2: oklch(0.315 0.014 342.848);
  --chart-3: oklch(0.315 0.014 342.848);
  --chart-4: oklch(0.345 0.016 342.878);
  --chart-5: oklch(0.397 0.106 347.909);
}