Slow Dreamy Candy Forest for shadcn/ui

Slow Dreamy Candy Forest is a shadcn/ui theme built around a violet primary color (#b992ed) with muted violet accents (#beb8c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#b992ed) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050ablack
Foreground
#050109black
#faf9fbghostwhite
Card
#fcfcfcsnow
#0a070dblack
Card foreground
#020105black
#fcfcfdwhite
Popover
#fcfcfcsnow
#0a070dblack
Popover foreground
#020105black
#fcfcfdwhite
Primary
#b992edplum
#b992edplum
Primary foreground
#230b41midnightblue
#230b41midnightblue
Secondary
#d6d5d7lightgrey
#303031darkslategray
Secondary foreground
#3d3b3fdarkslategray
#c9c9casilver
Muted
#e2dceagainsboro
#1b1523black
Muted foreground
#545257dimgray
#aba8addarkgray
Accent
#beb8c7silver
#44404adarkslategray
Accent foreground
#26222bdarkslategray
#dedce0gainsboro
Destructive
#b42808firebrick
#f4461forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f0eff0whitesmoke
#262528darkslategray
Input
#f0eff0whitesmoke
#262528darkslategray
Ring
#b992edplum
#b992edplum

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.36:1AAA
Primary button7.02:1AAA
Secondary button7.57:1AAA
Muted text5.76:1AA
Accent8.05:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.51:1AAA
Primary button7.02:1AAA
Secondary button7.96:1AAA
Muted text7.56:1AAA
Accent7.41:1AAA
Destructive3.64:1AA Large

CSS variables

Paste this into your globals.css to use Slow Dreamy Candy Forest in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.093 0.033 307.81);
  --muted: oklch(0.904 0.019 305.457);
  --muted-foreground: oklch(0.441 0.009 305.48);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.074 0.026 307.81);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.074 0.026 307.81);
  --border: oklch(0.953 0.002 305.715);
  --input: oklch(0.953 0.002 305.715);
  --primary: oklch(0.731 0.133 303.203);
  --primary-foreground: oklch(0.225 0.096 297.925);
  --secondary: oklch(0.874 0.004 305.686);
  --secondary-foreground: oklch(0.357 0.007 305.493);
  --accent: oklch(0.791 0.023 305.361);
  --accent-foreground: oklch(0.259 0.018 304.821);
  --destructive: oklch(0.504 0.18 32.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.731 0.133 303.203);
  --chart-1: oklch(0.731 0.133 303.203);
  --chart-2: oklch(0.874 0.004 305.686);
  --chart-3: oklch(0.791 0.023 305.361);
  --chart-4: oklch(0.898 0.003 305.697);
  --chart-5: oklch(0.728 0.139 303.076);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 306.342);
  --foreground: oklch(0.983 0.003 305.693);
  --muted: oklch(0.211 0.027 303.982);
  --muted-foreground: oklch(0.736 0.008 305.603);
  --popover: oklch(0.137 0.015 305.434);
  --popover-foreground: oklch(0.991 0.002 305.717);
  --card: oklch(0.137 0.015 305.434);
  --card-foreground: oklch(0.991 0.002 305.717);
  --border: oklch(0.266 0.006 305.444);
  --input: oklch(0.266 0.006 305.444);
  --primary: oklch(0.731 0.133 303.203);
  --primary-foreground: oklch(0.225 0.096 297.925);
  --secondary: oklch(0.31 0.002 305.662);
  --secondary-foreground: oklch(0.836 0.002 305.715);
  --accent: oklch(0.379 0.017 305.142);
  --accent-foreground: oklch(0.896 0.007 305.641);
  --destructive: oklch(0.644 0.216 33.643);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.731 0.133 303.203);
  --chart-1: oklch(0.731 0.133 303.203);
  --chart-2: oklch(0.31 0.002 305.662);
  --chart-3: oklch(0.379 0.017 305.142);
  --chart-4: oklch(0.34 0.002 305.659);
  --chart-5: oklch(0.728 0.139 303.076);
}