Dream for shadcn/ui

Dream is a shadcn/ui theme built around a yellow primary color (#cfb277) with blue accents (#7795cf). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the yellow primary (#cfb277) on a yellow-tinted background (#0c0903).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0c0903black
Foreground
#161003black
#fdfdfcwhite
Card
#fcfbf8snow
#100c04black
Card foreground
#120d03black
#ffffffwhite
Popover
#fdfdfbsnow
#0c0903black
Popover foreground
#161003black
#fdfdfcwhite
Primary
#cfb277tan
#cfb277tan
Primary foreground
#0f0c05black
#0f0c05black
Secondary
#7795cfcornflowerblue
#7795cfcornflowerblue
Secondary foreground
#05090fblack
#05090fblack
Muted
#e2e4e9gainsboro
#16181dblack
Muted foreground
#393d47darkslategray
#b8bdc6silver
Accent
#7795cfcornflowerblue
#7795cfcornflowerblue
Accent foreground
#05090fblack
#05090fblack
Destructive
#8c390dsaddlebrown
#d25614chocolate
Destructive foreground
#fbdfd0blanchedalmond
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfb277tan
#cfb277tan

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.66:1AAA
Primary button9.56:1AAA
Secondary button6.61:1AA
Muted text8.55:1AAA
Accent6.61:1AA
Destructive6.10:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.49:1AAA
Primary button9.56:1AAA
Secondary button6.61:1AA
Muted text9.39:1AAA
Accent6.61:1AA
Destructive4.12: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.994 0.002 84.556);
  --foreground: oklch(0.177 0.028 86.111);
  --muted: oklch(0.919 0.007 264.527);
  --muted-foreground: oklch(0.361 0.017 264.33);
  --popover: oklch(0.994 0.002 84.556);
  --popover-foreground: oklch(0.177 0.028 86.111);
  --card: oklch(0.987 0.004 84.562);
  --card-foreground: oklch(0.161 0.025 88.091);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.775 0.084 84.035);
  --primary-foreground: oklch(0.155 0.016 86.789);
  --secondary: oklch(0.669 0.094 263.629);
  --secondary-foreground: oklch(0.137 0.016 259.824);
  --accent: oklch(0.669 0.094 263.629);
  --accent-foreground: oklch(0.137 0.016 259.824);
  --destructive: oklch(0.453 0.124 43.854);
  --destructive-foreground: oklch(0.923 0.036 50.178);
  --ring: oklch(0.775 0.084 84.035);
  --chart-1: oklch(0.775 0.084 84.035);
  --chart-2: oklch(0.669 0.094 263.629);
  --chart-3: oklch(0.669 0.094 263.629);
  --chart-4: oklch(0.697 0.085 263.782);
  --chart-5: oklch(0.779 0.088 83.937);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.017 90.027);
  --foreground: oklch(0.993 0.001 84.554);
  --muted: oklch(0.21 0.01 264.33);
  --muted-foreground: oklch(0.797 0.014 264.488);
  --popover: oklch(0.141 0.017 90.027);
  --popover-foreground: oklch(0.993 0.001 84.554);
  --card: oklch(0.157 0.019 87.241);
  --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.775 0.084 84.035);
  --primary-foreground: oklch(0.155 0.016 86.789);
  --secondary: oklch(0.669 0.094 263.629);
  --secondary-foreground: oklch(0.137 0.016 259.824);
  --accent: oklch(0.669 0.094 263.629);
  --accent-foreground: oklch(0.137 0.016 259.824);
  --destructive: oklch(0.606 0.171 43.108);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.775 0.084 84.035);
  --chart-1: oklch(0.775 0.084 84.035);
  --chart-2: oklch(0.669 0.094 263.629);
  --chart-3: oklch(0.669 0.094 263.629);
  --chart-4: oklch(0.697 0.085 263.782);
  --chart-5: oklch(0.779 0.088 83.937);
}