Dreamy Candy Forest Unicorn for shadcn/ui

Dreamy Candy Forest Unicorn is a shadcn/ui theme built around a violet primary color (#b497dd) with muted light violet accents (#c0baca). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#b497dd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#020104black
#faf9fasnow
Card
#fcfbfewhite
#000000black
Card foreground
#020104black
#faf9fasnow
Popover
#fcfbfewhite
#000000black
Popover foreground
#020104black
#faf9fasnow
Primary
#b497ddplum
#b497ddplum
Primary foreground
#1e1032black
#1e1032black
Secondary
#d6d5d7lightgrey
#232028black
Secondary foreground
#3d3b3fdarkslategray
#bbb5c4silver
Muted
#f2eff5whitesmoke
#0c0a10black
Muted foreground
#645d6fdimgray
#9790a2darkgray
Accent
#c0bacasilver
#2f2839darkslategray
Accent foreground
#28232edarkslategray
#c8c0d3thistle
Destructive
#a23a02saddlebrown
#ed5502orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e6ealavender
#19181bblack
Input
#e8e6ealavender
#19181bblack
Ring
#b497ddplum
#b497ddplum

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button7.16:1AAA
Secondary button7.57:1AAA
Muted text5.52:1AA
Accent8.11:1AAA
Destructive6.71:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.16:1AAA
Secondary button8.05:1AAA
Muted text6.41:1AA
Accent8.03:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 304.979);
  --foreground: oklch(0.078 0.02 306.409);
  --muted: oklch(0.956 0.009 304.916);
  --muted-foreground: oklch(0.492 0.03 304.192);
  --popover: oklch(0.989 0.005 304.979);
  --popover-foreground: oklch(0.078 0.02 306.409);
  --card: oklch(0.989 0.005 304.979);
  --card-foreground: oklch(0.078 0.02 306.409);
  --border: oklch(0.928 0.005 304.977);
  --input: oklch(0.928 0.005 304.977);
  --primary: oklch(0.728 0.104 303.021);
  --primary-foreground: oklch(0.214 0.065 300.207);
  --secondary: oklch(0.874 0.003 304.989);
  --secondary-foreground: oklch(0.357 0.007 304.79);
  --accent: oklch(0.799 0.023 304.642);
  --accent-foreground: oklch(0.268 0.02 303.99);
  --destructive: oklch(0.489 0.148 41.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.728 0.104 303.021);
  --chart-1: oklch(0.728 0.104 303.021);
  --chart-2: oklch(0.874 0.003 304.989);
  --chart-3: oklch(0.799 0.023 304.642);
  --chart-4: oklch(0.898 0.003 305.001);
  --chart-5: oklch(0.725 0.11 302.885);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 305.023);
  --muted: oklch(0.149 0.014 303.741);
  --muted-foreground: oklch(0.665 0.028 304.461);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 305.023);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 305.023);
  --border: oklch(0.211 0.007 304.568);
  --input: oklch(0.211 0.007 304.568);
  --primary: oklch(0.728 0.104 303.021);
  --primary-foreground: oklch(0.214 0.065 300.207);
  --secondary: oklch(0.25 0.015 304.194);
  --secondary-foreground: oklch(0.784 0.021 304.667);
  --accent: oklch(0.292 0.031 303.572);
  --accent-foreground: oklch(0.821 0.026 304.599);
  --destructive: oklch(0.647 0.201 40.324);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.728 0.104 303.021);
  --chart-1: oklch(0.728 0.104 303.021);
  --chart-2: oklch(0.25 0.015 304.194);
  --chart-3: oklch(0.292 0.031 303.572);
  --chart-4: oklch(0.279 0.018 304.147);
  --chart-5: oklch(0.725 0.11 302.885);
}