Dream for shadcn/ui

Dream is a shadcn/ui theme built around a near-black primary color (#0e0206) with near-black accents (#0e0302). The light mode uses a neutral background (#fefbfc). Dark mode keeps the near-black primary (#0e0206) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#040102black
#ffffffwhite
Card
#fefbfcsnow
#000000black
Card foreground
#040102black
#ffffffwhite
Popover
#fefbfcsnow
#000000black
Popover foreground
#040102black
#ffffffwhite
Primary
#0e0206black
#0e0206black
Primary foreground
#e9588dpalevioletred
#e9588dpalevioletred
Secondary
#0e020cblack
#0e020cblack
Secondary foreground
#e958d6orchid
#e958d6orchid
Muted
#eee7edlavender
#181117black
Muted foreground
#584655darkslategray
#b9a7b6darkgray
Accent
#0e0302black
#0e0302black
Accent foreground
#e96b58tomato
#e96b58tomato
Destructive
#ba300dfirebrick
#ee3d11orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0206black
#0e0206black

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.07:1AA
Secondary button6.62:1AA
Muted text7.15:1AAA
Accent6.49:1AA
Destructive5.98:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.07:1AA
Secondary button6.62:1AA
Muted text8.19:1AAA
Accent6.49:1AA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 352.647);
  --foreground: oklch(0.082 0.019 352.085);
  --muted: oklch(0.936 0.01 329.818);
  --muted-foreground: oklch(0.419 0.033 330.625);
  --popover: oklch(0.991 0.002 352.647);
  --popover-foreground: oklch(0.082 0.019 352.085);
  --card: oklch(0.991 0.002 352.647);
  --card-foreground: oklch(0.082 0.019 352.085);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.117 0.033 352.655);
  --primary-foreground: oklch(0.665 0.185 0.782);
  --secondary: oklch(0.121 0.039 331.787);
  --secondary-foreground: oklch(0.693 0.226 333.37);
  --accent: oklch(0.121 0.025 36.87);
  --accent-foreground: oklch(0.677 0.16 30.621);
  --destructive: oklch(0.521 0.18 33.921);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.117 0.033 352.655);
  --chart-1: oklch(0.117 0.033 352.655);
  --chart-2: oklch(0.121 0.039 331.787);
  --chart-3: oklch(0.121 0.025 36.87);
  --chart-4: oklch(0.163 0.056 333.14);
  --chart-5: oklch(0.116 0.034 352.685);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.015 330.639);
  --muted-foreground: oklch(0.749 0.029 330.15);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.117 0.033 352.655);
  --primary-foreground: oklch(0.665 0.185 0.782);
  --secondary: oklch(0.121 0.039 331.787);
  --secondary-foreground: oklch(0.693 0.226 333.37);
  --accent: oklch(0.121 0.025 36.87);
  --accent-foreground: oklch(0.677 0.16 30.621);
  --destructive: oklch(0.625 0.219 33.719);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.117 0.033 352.655);
  --chart-1: oklch(0.117 0.033 352.655);
  --chart-2: oklch(0.121 0.039 331.787);
  --chart-3: oklch(0.121 0.025 36.87);
  --chart-4: oklch(0.163 0.056 333.14);
  --chart-5: oklch(0.116 0.034 352.685);
}