Teen for shadcn/ui

Teen is a shadcn/ui theme built around a vivid deep purple primary color (#310736) with vivid deep pink accents (#360723). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid deep purple primary (#310736) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#070307black
Foreground
#140416black
#f9f6f9whitesmoke
Card
#fdfcfdwhite
#070307black
Card foreground
#140416black
#f9f6f9whitesmoke
Popover
#fdfcfdwhite
#070307black
Popover foreground
#140416black
#f9f6f9whitesmoke
Primary
#310736midnightblue
#310736midnightblue
Primary foreground
#e381eeviolet
#e381eeviolet
Secondary
#1a0736black
#1a0736black
Secondary foreground
#ad81eemediumpurple
#ad81eemediumpurple
Muted
#e2dce9gainsboro
#1b1623black
Muted foreground
#5c516cdimgray
#9e93aedarkgray
Accent
#360723black
#360723black
Accent foreground
#ee81c2hotpink
#ee81c2hotpink
Destructive
#d7580fchocolate
#d7580fchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#310736midnightblue
#310736midnightblue

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.10:1AAA
Secondary button6.33:1AA
Muted text5.50:1AA
Accent7.05:1AAA
Destructive3.97:1AA Large
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button7.10:1AAA
Secondary button6.33:1AA
Muted text6.12:1AA
Accent7.05:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 322.638);
  --foreground: oklch(0.148 0.046 323.92);
  --muted: oklch(0.904 0.018 304.056);
  --muted-foreground: oklch(0.456 0.044 302.946);
  --popover: oklch(0.991 0.003 322.638);
  --popover-foreground: oklch(0.148 0.046 323.92);
  --card: oklch(0.991 0.003 322.638);
  --card-foreground: oklch(0.148 0.046 323.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.233 0.093 323.56);
  --primary-foreground: oklch(0.748 0.181 323.434);
  --secondary: oklch(0.196 0.085 295.92);
  --secondary-foreground: oklch(0.691 0.159 300.778);
  --accent: oklch(0.23 0.08 348.367);
  --accent-foreground: oklch(0.743 0.153 344.562);
  --destructive: oklch(0.616 0.175 43.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.093 323.56);
  --chart-1: oklch(0.233 0.093 323.56);
  --chart-2: oklch(0.196 0.085 295.92);
  --chart-3: oklch(0.23 0.08 348.367);
  --chart-4: oklch(0.222 0.1 294.97);
  --chart-5: oklch(0.234 0.096 323.554);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.018 323.899);
  --foreground: oklch(0.976 0.005 322.646);
  --muted: oklch(0.211 0.026 302.544);
  --muted-foreground: oklch(0.683 0.04 303.504);
  --popover: oklch(0.11 0.018 323.899);
  --popover-foreground: oklch(0.976 0.005 322.646);
  --card: oklch(0.11 0.018 323.899);
  --card-foreground: oklch(0.976 0.005 322.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.233 0.093 323.56);
  --primary-foreground: oklch(0.748 0.181 323.434);
  --secondary: oklch(0.196 0.085 295.92);
  --secondary-foreground: oklch(0.691 0.159 300.778);
  --accent: oklch(0.23 0.08 348.367);
  --accent-foreground: oklch(0.743 0.153 344.562);
  --destructive: oklch(0.616 0.175 43.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.093 323.56);
  --chart-1: oklch(0.233 0.093 323.56);
  --chart-2: oklch(0.196 0.085 295.92);
  --chart-3: oklch(0.23 0.08 348.367);
  --chart-4: oklch(0.222 0.1 294.97);
  --chart-5: oklch(0.234 0.096 323.554);
}