Dew for shadcn/ui

Dew is a shadcn/ui theme built around a vivid deep red primary color (#130204) with muted light red accents (#e6e0e1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#130204) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#080203black
#fbf8f9snow
Card
#ffffffwhite
#070304black
Card foreground
#080203black
#fbf8f9snow
Popover
#ffffffwhite
#070304black
Popover foreground
#080203black
#fbf8f9snow
Primary
#130204black
#130204black
Primary foreground
#f05670indianred
#f05670indianred
Secondary
#e6e0e1gainsboro
#261d1eblack
Secondary foreground
#524245darkslategray
#c4b1b4silver
Muted
#e6d6d9gainsboro
#29191cblack
Muted foreground
#5f494ddimgray
#b6a0a4darkgray
Accent
#e6e0e1gainsboro
#261d1eblack
Accent foreground
#524245darkslategray
#c4b1b4silver
Destructive
#782f08saddlebrown
#f06114chocolate
Destructive foreground
#facfb7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#130204black
#130204black

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button6.05:1AA
Secondary button7.23:1AAA
Muted text5.87:1AA
Accent7.23:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button6.05:1AA
Secondary button8.09:1AAA
Muted text6.83:1AA
Accent8.09:1AAA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.016 5.959);
  --muted: oklch(0.889 0.018 5.967);
  --muted-foreground: oklch(0.43 0.03 7.238);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.016 5.959);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.016 5.959);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.127 0.04 8.422);
  --primary-foreground: oklch(0.665 0.189 14.041);
  --secondary: oklch(0.911 0.007 5.644);
  --secondary-foreground: oklch(0.396 0.023 6.917);
  --accent: oklch(0.911 0.007 5.644);
  --accent-foreground: oklch(0.396 0.023 6.917);
  --destructive: oklch(0.403 0.112 43.512);
  --destructive-foreground: oklch(0.885 0.059 49.873);
  --ring: oklch(0.127 0.04 8.422);
  --chart-1: oklch(0.127 0.04 8.422);
  --chart-2: oklch(0.911 0.007 5.644);
  --chart-3: oklch(0.911 0.007 5.644);
  --chart-4: oklch(0.936 0.005 5.586);
  --chart-5: oklch(0.126 0.041 8.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.014 5.894);
  --foreground: oklch(0.983 0.003 5.54);
  --muted: oklch(0.236 0.026 8.255);
  --muted-foreground: oklch(0.726 0.026 6.371);
  --popover: oklch(0.107 0.014 5.894);
  --popover-foreground: oklch(0.983 0.003 5.54);
  --card: oklch(0.107 0.014 5.894);
  --card-foreground: oklch(0.983 0.003 5.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.127 0.04 8.422);
  --primary-foreground: oklch(0.665 0.189 14.041);
  --secondary: oklch(0.24 0.015 7.017);
  --secondary-foreground: oklch(0.776 0.023 6.195);
  --accent: oklch(0.24 0.015 7.017);
  --accent-foreground: oklch(0.776 0.023 6.195);
  --destructive: oklch(0.667 0.192 42.631);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.127 0.04 8.422);
  --chart-1: oklch(0.127 0.04 8.422);
  --chart-2: oklch(0.24 0.015 7.017);
  --chart-3: oklch(0.24 0.015 7.017);
  --chart-4: oklch(0.271 0.018 7.115);
  --chart-5: oklch(0.126 0.041 8.583);
}