Sentimental for shadcn/ui

Sentimental is a shadcn/ui theme built around a deep pink primary color (#460b27) with deep teal accents (#0b462b). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#460b27) on a pink-tinted background (#0e060a).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0e060ablack
Foreground
#13060cblack
#fdfcfcsnow
Card
#fefbfcsnow
#0e060ablack
Card foreground
#13060cblack
#fdfcfcsnow
Popover
#fefbfcsnow
#0e060ablack
Popover foreground
#13060cblack
#fdfcfcsnow
Primary
#460b27maroon
#460b27maroon
Primary foreground
#ee96bfplum
#ee96bfplum
Secondary
#0b462bdarkslategray
#0b462bdarkslategray
Secondary foreground
#3ee094mediumaquamarine
#3ee094mediumaquamarine
Muted
#ddeee6gainsboro
#11221ablack
Muted foreground
#515c57dimgray
#a3aea9darkgray
Accent
#0b462bdarkslategray
#0b462bdarkslategray
Accent foreground
#3ee094mediumaquamarine
#3ee094mediumaquamarine
Destructive
#c80d09firebrick
#f5312ecrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#460b27maroon
#460b27maroon

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button7.27:1AAA
Secondary button6.37:1AA
Muted text5.79:1AA
Accent6.37:1AA
Destructive5.98:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.27:1AAA
Secondary button6.37:1AA
Muted text7.22:1AAA
Accent6.37:1AA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 346.999);
  --foreground: oklch(0.149 0.027 350.283);
  --muted: oklch(0.935 0.022 166.256);
  --muted-foreground: oklch(0.464 0.015 165.989);
  --popover: oklch(0.991 0.003 346.999);
  --popover-foreground: oklch(0.149 0.027 350.283);
  --card: oklch(0.991 0.003 346.999);
  --card-foreground: oklch(0.149 0.027 350.283);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.269 0.092 357.021);
  --primary-foreground: oklch(0.774 0.117 350.699);
  --secondary: oklch(0.351 0.076 157.633);
  --secondary-foreground: oklch(0.805 0.17 157.965);
  --accent: oklch(0.351 0.076 157.633);
  --accent-foreground: oklch(0.805 0.17 157.965);
  --destructive: oklch(0.526 0.211 29.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.269 0.092 357.021);
  --chart-1: oklch(0.269 0.092 357.021);
  --chart-2: oklch(0.351 0.076 157.633);
  --chart-3: oklch(0.351 0.076 157.633);
  --chart-4: oklch(0.393 0.086 157.276);
  --chart-5: oklch(0.271 0.094 357.499);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.019 348.307);
  --foreground: oklch(0.992 0.001 346.946);
  --muted: oklch(0.235 0.029 162.898);
  --muted-foreground: oklch(0.74 0.014 166.4);
  --popover: oklch(0.138 0.019 348.307);
  --popover-foreground: oklch(0.992 0.001 346.946);
  --card: oklch(0.138 0.019 348.307);
  --card-foreground: oklch(0.992 0.001 346.946);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.269 0.092 357.021);
  --primary-foreground: oklch(0.774 0.117 350.699);
  --secondary: oklch(0.351 0.076 157.633);
  --secondary-foreground: oklch(0.805 0.17 157.965);
  --accent: oklch(0.351 0.076 157.633);
  --accent-foreground: oklch(0.805 0.17 157.965);
  --destructive: oklch(0.63 0.23 27.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.269 0.092 357.021);
  --chart-1: oklch(0.269 0.092 357.021);
  --chart-2: oklch(0.351 0.076 157.633);
  --chart-3: oklch(0.351 0.076 157.633);
  --chart-4: oklch(0.393 0.086 157.276);
  --chart-5: oklch(0.271 0.094 357.499);
}