Doting for shadcn/ui

Doting is a shadcn/ui theme built around a vivid deep pink primary color (#78073a) with vivid deep red accents (#780d07). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#78073a) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#ffffffwhite
#040202black
Foreground
#16040cblack
#fdfcfcsnow
Card
#fcfcfcsnow
#070305black
Card foreground
#110309black
#ffffffwhite
Popover
#ffffffwhite
#040202black
Popover foreground
#16040cblack
#fdfcfcsnow
Primary
#78073amaroon
#78073amaroon
Primary foreground
#fbb7d5pink
#fbb7d5pink
Secondary
#780773purple
#780773purple
Secondary foreground
#fbb7f7pink
#fbb7f7pink
Muted
#f2e8f1whitesmoke
#170d16black
Muted foreground
#6c5a6cdimgray
#a593a4darkgray
Accent
#780d07maroon
#780d07maroon
Accent foreground
#fbbab7lightpink
#fbbab7lightpink
Destructive
#8a2a0asaddlebrown
#e04410orangered
Destructive foreground
#fbd7cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78073amaroon
#78073amaroon

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.74:1AAA
Primary button6.76:1AA
Secondary button6.34:1AA
Muted text5.31:1AA
Accent6.86:1AA
Destructive6.48:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.49:1AAA
Primary button6.76:1AA
Secondary button6.34:1AA
Muted text6.61:1AA
Accent6.86:1AA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.039 351.895);
  --muted: oklch(0.942 0.016 327.194);
  --muted-foreground: oklch(0.493 0.035 327.668);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.039 351.895);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.034 349.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.374 0.145 2.523);
  --primary-foreground: oklch(0.85 0.087 350.462);
  --secondary: oklch(0.402 0.177 330.813);
  --secondary-foreground: oklch(0.862 0.114 328.188);
  --accent: oklch(0.368 0.141 29.333);
  --accent-foreground: oklch(0.848 0.075 22.204);
  --destructive: oklch(0.429 0.137 36.703);
  --destructive-foreground: oklch(0.906 0.044 39.288);
  --ring: oklch(0.374 0.145 2.523);
  --chart-1: oklch(0.374 0.145 2.523);
  --chart-2: oklch(0.402 0.177 330.813);
  --chart-3: oklch(0.368 0.141 29.333);
  --chart-4: oklch(0.436 0.193 330.845);
  --chart-5: oklch(0.377 0.148 3.066);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.011 347.604);
  --foreground: oklch(0.991 0.002 347.87);
  --muted: oklch(0.177 0.024 328.215);
  --muted-foreground: oklch(0.683 0.032 327.463);
  --popover: oklch(0.086 0.011 347.604);
  --popover-foreground: oklch(0.991 0.002 347.87);
  --card: oklch(0.109 0.014 347.604);
  --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.374 0.145 2.523);
  --primary-foreground: oklch(0.85 0.087 350.462);
  --secondary: oklch(0.402 0.177 330.813);
  --secondary-foreground: oklch(0.862 0.114 328.188);
  --accent: oklch(0.368 0.141 29.333);
  --accent-foreground: oklch(0.848 0.075 22.204);
  --destructive: oklch(0.607 0.201 36.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.374 0.145 2.523);
  --chart-1: oklch(0.374 0.145 2.523);
  --chart-2: oklch(0.402 0.177 330.813);
  --chart-3: oklch(0.368 0.141 29.333);
  --chart-4: oklch(0.436 0.193 330.845);
  --chart-5: oklch(0.377 0.148 3.066);
}