Lye for shadcn/ui

Lye is a shadcn/ui theme built around a light blue primary color (#dceaf4) with light orange accents (#f4e6dc). The light mode uses a neutral background (#f7fafd). Dark mode keeps the light blue primary (#dceaf4) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#010304black
Foreground
#010304black
#f6f8f9whitesmoke
Card
#f3f8fbaliceblue
#030507black
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f3f8fbaliceblue
#030507black
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#dceaf4lavender
#dceaf4lavender
Primary foreground
#275477darkslategray
#275477darkslategray
Secondary
#f4e6dcantiquewhite
#f4e6dcantiquewhite
Secondary foreground
#774a27saddlebrown
#774a27saddlebrown
Muted
#ead9cdgainsboro
#322215black
Muted foreground
#5f5954dimgray
#aba5a0darkgray
Accent
#f4e6dcantiquewhite
#f4e6dcantiquewhite
Accent foreground
#774a27saddlebrown
#774a27saddlebrown
Destructive
#7d1d03maroon
#f03805orangered
Destructive foreground
#fdc4b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dceaf4lavender
#dceaf4lavender

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.63:1AAA
Primary button6.51:1AA
Secondary button6.17:1AA
Muted text5.03:1AA
Accent6.17:1AA
Destructive6.70:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.50:1AAA
Primary button6.51:1AA
Secondary button6.17:1AA
Muted text6.27:1AA
Accent6.17:1AA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 240.347);
  --foreground: oklch(0.09 0.012 230.803);
  --muted: oklch(0.896 0.025 59.906);
  --muted-foreground: oklch(0.467 0.011 59.964);
  --popover: oklch(0.976 0.007 240.379);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.976 0.007 240.379);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.929 0.02 240.579);
  --primary-foreground: oklch(0.432 0.077 244.071);
  --secondary: oklch(0.934 0.02 59.991);
  --secondary-foreground: oklch(0.453 0.079 56.399);
  --accent: oklch(0.934 0.02 59.991);
  --accent-foreground: oklch(0.453 0.079 56.399);
  --destructive: oklch(0.39 0.135 34.803);
  --destructive-foreground: oklch(0.867 0.07 35.998);
  --ring: oklch(0.929 0.02 240.579);
  --chart-1: oklch(0.929 0.02 240.579);
  --chart-2: oklch(0.934 0.02 59.991);
  --chart-3: oklch(0.934 0.02 59.991);
  --chart-4: oklch(0.956 0.013 60.094);
  --chart-5: oklch(0.929 0.021 240.597);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.008 234.298);
  --foreground: oklch(0.977 0.003 240.327);
  --muted: oklch(0.267 0.033 58.178);
  --muted-foreground: oklch(0.726 0.01 60.1);
  --popover: oklch(0.114 0.01 234.298);
  --popover-foreground: oklch(0.985 0.002 240.312);
  --card: oklch(0.114 0.01 234.298);
  --card-foreground: oklch(0.985 0.002 240.312);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.929 0.02 240.579);
  --primary-foreground: oklch(0.432 0.077 244.071);
  --secondary: oklch(0.934 0.02 59.991);
  --secondary-foreground: oklch(0.453 0.079 56.399);
  --accent: oklch(0.934 0.02 59.991);
  --accent-foreground: oklch(0.453 0.079 56.399);
  --destructive: oklch(0.623 0.225 33.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.02 240.579);
  --chart-1: oklch(0.929 0.02 240.579);
  --chart-2: oklch(0.934 0.02 59.991);
  --chart-3: oklch(0.934 0.02 59.991);
  --chart-4: oklch(0.956 0.013 60.094);
  --chart-5: oklch(0.929 0.021 240.597);
}