Doubtful Sweet Slumber Pink for shadcn/ui

Doubtful Sweet Slumber Pink is a shadcn/ui theme built around a vivid light purple primary color (#fcb6f7) with muted light purple accents (#d5b8d4). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light purple primary (#fcb6f7) on a purple-tinted background (#10040f).

Color palette

TokenLightDark
Background
#fefbfdsnow
#10040fblack
Foreground
#040104black
#faf5f9whitesmoke
Card
#fcf8fcsnow
#140513black
Card foreground
#000000black
#fbf8fbsnow
Popover
#fcf8fcsnow
#140513black
Popover foreground
#000000black
#fbf8fbsnow
Primary
#fcb6f7pink
#fcb6f7pink
Primary foreground
#7a0573purple
#7a0573purple
Secondary
#dbccdalightgrey
#382937darkslategray
Secondary foreground
#453143darkslategray
#d2c1d1thistle
Muted
#f4e6f3lavenderblush
#190b18black
Muted foreground
#574256darkslategray
#bda8bcsilver
Accent
#d5b8d4thistle
#4b3049darkslategray
Accent foreground
#3a2238darkslategray
#dfcddegainsboro
Destructive
#8f220adarkred
#d7340ffirebrick
Destructive foreground
#fcd7cfbisque
#ffffffwhite
Border
#eeedeewhitesmoke
#252325darkslategray
Input
#eeedeewhitesmoke
#252325darkslategray
Ring
#fcb6f7pink
#fcb6f7pink

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card19.92:1AAA
Primary button6.26:1AA
Secondary button7.71:1AAA
Muted text7.54:1AAA
Accent7.96:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.74:1AAA
Primary button6.26:1AA
Secondary button7.99:1AAA
Muted text8.61:1AAA
Accent7.68:1AAA
Destructive4.80:1AA

CSS variables

Paste this into your globals.css to use Doubtful Sweet Slumber Pink in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 327.584);
  --foreground: oklch(0.086 0.019 328.864);
  --muted: oklch(0.94 0.022 327.776);
  --muted-foreground: oklch(0.409 0.043 328.529);
  --popover: oklch(0.983 0.008 327.623);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.008 327.623);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.946 0.002 327.564);
  --input: oklch(0.946 0.002 327.564);
  --primary: oklch(0.861 0.117 328.797);
  --primary-foreground: oklch(0.405 0.179 331.745);
  --secondary: oklch(0.862 0.025 327.824);
  --secondary-foreground: oklch(0.342 0.042 328.678);
  --accent: oklch(0.817 0.049 328.124);
  --accent-foreground: oklch(0.292 0.051 329.147);
  --destructive: oklch(0.43 0.148 33.435);
  --destructive-foreground: oklch(0.909 0.042 32.745);
  --ring: oklch(0.861 0.117 328.797);
  --chart-1: oklch(0.861 0.117 328.797);
  --chart-2: oklch(0.862 0.025 327.824);
  --chart-3: oklch(0.817 0.049 328.124);
  --chart-4: oklch(0.887 0.02 327.767);
  --chart-5: oklch(0.86 0.121 328.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.034 329.443);
  --foreground: oklch(0.975 0.007 327.621);
  --muted: oklch(0.176 0.033 329.245);
  --muted-foreground: oklch(0.756 0.037 328.017);
  --popover: oklch(0.151 0.039 329.67);
  --popover-foreground: oklch(0.983 0.005 327.595);
  --card: oklch(0.151 0.039 329.67);
  --card-foreground: oklch(0.983 0.005 327.595);
  --border: oklch(0.258 0.005 327.729);
  --input: oklch(0.258 0.005 327.729);
  --primary: oklch(0.861 0.117 328.797);
  --primary-foreground: oklch(0.405 0.179 331.745);
  --secondary: oklch(0.304 0.034 328.575);
  --secondary-foreground: oklch(0.83 0.029 327.884);
  --accent: oklch(0.35 0.056 328.998);
  --accent-foreground: oklch(0.869 0.03 327.88);
  --destructive: oklch(0.576 0.204 33.13);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.117 328.797);
  --chart-1: oklch(0.861 0.117 328.797);
  --chart-2: oklch(0.304 0.034 328.575);
  --chart-3: oklch(0.35 0.056 328.998);
  --chart-4: oklch(0.333 0.038 328.606);
  --chart-5: oklch(0.86 0.121 328.835);
}