theme-3 for shadcn/ui

theme-3 is a shadcn/ui theme built around a light pink primary color (#e8b5c6) with light teal accents (#b5e8d7). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light pink primary (#e8b5c6) on a pink-tinted background (#0c0406).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0c0406black
Foreground
#0f0508black
#f9f6f7whitesmoke
Card
#fdfcfcsnow
#0c0406black
Card foreground
#0f0508black
#f9f6f7whitesmoke
Popover
#fdfcfcsnow
#0c0406black
Popover foreground
#0f0508black
#f9f6f7whitesmoke
Primary
#e8b5c6lightpink
#e8b5c6lightpink
Primary foreground
#511a2cmaroon
#511a2cmaroon
Secondary
#b5e8d7powderblue
#b5e8d7powderblue
Secondary foreground
#1a513fdarkslategray
#1a513fdarkslategray
Muted
#f1f4f3whitesmoke
#0b0e0dblack
Muted foreground
#465852darkslategray
#a7b9b3darkgray
Accent
#b5e8d7powderblue
#b5e8d7powderblue
Accent foreground
#1a513fdarkslategray
#1a513fdarkslategray
Destructive
#bc2e15firebrick
#d33417firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeededwhitesmoke
#222021black
Input
#eeededwhitesmoke
#222021black
Ring
#e8b5c6lightpink
#e8b5c6lightpink

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button7.74:1AAA
Secondary button6.74:1AA
Muted text6.81:1AA
Accent6.74:1AA
Destructive5.92:1AA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button7.74:1AAA
Secondary button6.74:1AA
Muted text9.43:1AAA
Accent6.74:1AA
Destructive4.91:1AA

CSS variables

Paste this into your globals.css to use theme-3 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 354.645);
  --foreground: oklch(0.135 0.023 355.888);
  --muted: oklch(0.964 0.003 174.49);
  --muted-foreground: oklch(0.443 0.024 172.937);
  --popover: oklch(0.991 0.002 354.645);
  --popover-foreground: oklch(0.135 0.023 355.888);
  --card: oklch(0.991 0.002 354.645);
  --card-foreground: oklch(0.135 0.023 355.888);
  --border: oklch(0.946 0.001 354.625);
  --input: oklch(0.946 0.001 354.625);
  --primary: oklch(0.824 0.062 356.666);
  --primary-foreground: oklch(0.31 0.085 2.816);
  --secondary: oklch(0.89 0.057 172.574);
  --secondary-foreground: oklch(0.394 0.066 167.474);
  --accent: oklch(0.89 0.057 172.574);
  --accent-foreground: oklch(0.394 0.066 167.474);
  --destructive: oklch(0.524 0.182 32.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.062 356.666);
  --chart-1: oklch(0.824 0.062 356.666);
  --chart-2: oklch(0.89 0.057 172.574);
  --chart-3: oklch(0.89 0.057 172.574);
  --chart-4: oklch(0.907 0.048 172.945);
  --chart-5: oklch(0.823 0.066 356.789);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.021 354.469);
  --foreground: oklch(0.975 0.004 354.713);
  --muted: oklch(0.161 0.005 173.658);
  --muted-foreground: oklch(0.77 0.021 173.775);
  --popover: oklch(0.121 0.021 354.469);
  --popover-foreground: oklch(0.975 0.004 354.713);
  --card: oklch(0.121 0.021 354.469);
  --card-foreground: oklch(0.975 0.004 354.713);
  --border: oklch(0.247 0.003 354.965);
  --input: oklch(0.247 0.003 354.965);
  --primary: oklch(0.824 0.062 356.666);
  --primary-foreground: oklch(0.31 0.085 2.816);
  --secondary: oklch(0.89 0.057 172.574);
  --secondary-foreground: oklch(0.394 0.066 167.474);
  --accent: oklch(0.89 0.057 172.574);
  --accent-foreground: oklch(0.394 0.066 167.474);
  --destructive: oklch(0.57 0.2 32.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.062 356.666);
  --chart-1: oklch(0.824 0.062 356.666);
  --chart-2: oklch(0.89 0.057 172.574);
  --chart-3: oklch(0.89 0.057 172.574);
  --chart-4: oklch(0.907 0.048 172.945);
  --chart-5: oklch(0.823 0.066 356.789);
}