Dreary for shadcn/ui

Dreary is a shadcn/ui theme built around a yellow primary color (#c3a360) with green accents (#b1c360). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#c3a360) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040301black
Foreground
#130f06black
#f9f8f5whitesmoke
Card
#fcfbf8snow
#070603black
Card foreground
#0f0c05black
#fbfaf9snow
Popover
#fcfbf8snow
#070603black
Popover foreground
#0f0c05black
#fbfaf9snow
Primary
#c3a360darkkhaki
#c3a360darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#c37260indianred
#c37260indianred
Secondary foreground
#000000black
#000000black
Muted
#dfd9d8gainsboro
#272120black
Muted foreground
#695854dimgray
#ab9a96rosybrown
Accent
#b1c360darkkhaki
#b1c360darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#782b07saddlebrown
#f37439tomato
Destructive foreground
#fbccb7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3a360darkkhaki
#c3a360darkkhaki

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.83:1AAA
Primary button8.75:1AAA
Secondary button5.89:1AA
Muted text4.81:1AA
Accent10.80:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.43:1AAA
Primary button8.75:1AAA
Secondary button5.89:1AA
Muted text5.85:1AA
Accent10.80:1AAA
Destructive7.40:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 86.015);
  --foreground: oklch(0.171 0.019 86.739);
  --muted: oklch(0.89 0.007 32.661);
  --muted-foreground: oklch(0.475 0.023 32.755);
  --popover: oklch(0.987 0.004 86.023);
  --popover-foreground: oklch(0.156 0.016 88.291);
  --card: oklch(0.987 0.004 86.023);
  --card-foreground: oklch(0.156 0.016 88.291);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.73 0.094 85.252);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.106 33.535);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.781 0.126 118.014);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.399 0.117 40.941);
  --destructive-foreground: oklch(0.881 0.061 46.201);
  --ring: oklch(0.73 0.094 85.252);
  --chart-1: oklch(0.73 0.094 85.252);
  --chart-2: oklch(0.637 0.106 33.535);
  --chart-3: oklch(0.781 0.126 118.014);
  --chart-4: oklch(0.661 0.098 33.383);
  --chart-5: oklch(0.735 0.099 85.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 90.659);
  --foreground: oklch(0.98 0.004 86.023);
  --muted: oklch(0.256 0.009 32.711);
  --muted-foreground: oklch(0.7 0.021 32.694);
  --popover: oklch(0.122 0.011 90.659);
  --popover-foreground: oklch(0.986 0.003 86.017);
  --card: oklch(0.122 0.011 90.659);
  --card-foreground: oklch(0.986 0.003 86.017);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.73 0.094 85.252);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.106 33.535);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.781 0.126 118.014);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.701 0.172 43.348);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.73 0.094 85.252);
  --chart-1: oklch(0.73 0.094 85.252);
  --chart-2: oklch(0.637 0.106 33.535);
  --chart-3: oklch(0.781 0.126 118.014);
  --chart-4: oklch(0.661 0.098 33.383);
  --chart-5: oklch(0.735 0.099 85.088);
}