Drop for shadcn/ui

Drop is a shadcn/ui theme built around a deep yellow primary color (#433b0e) with deep blue accents (#0e1643). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#433b0e) on a yellow-tinted background (#0e0d07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0d07black
Foreground
#0c0b03black
#ffffffwhite
Card
#ffffffwhite
#0e0d07black
Card foreground
#0c0b03black
#ffffffwhite
Popover
#ffffffwhite
#0e0d07black
Popover foreground
#0c0b03black
#ffffffwhite
Primary
#433b0edarkolivegreen
#433b0edarkolivegreen
Primary foreground
#d8c246darkkhaki
#d8c246darkkhaki
Secondary
#0e1643midnightblue
#0e1643midnightblue
Secondary foreground
#9aa6ealightsteelblue
#9aa6ealightsteelblue
Muted
#e2e3e9gainsboro
#16171dblack
Muted foreground
#5e606edimgray
#9193a1lightslategray
Accent
#0e1643midnightblue
#0e1643midnightblue
Accent foreground
#9aa6ealightsteelblue
#9aa6ealightsteelblue
Destructive
#92320csaddlebrown
#ee622bchocolate
Destructive foreground
#fce0d5antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#433b0edarkolivegreen
#433b0edarkolivegreen

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.23:1AA
Secondary button7.40:1AAA
Muted text4.86:1AA
Accent7.40:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button6.23:1AA
Secondary button7.40:1AAA
Muted text5.86:1AA
Accent7.40:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.019 101.614);
  --muted: oklch(0.917 0.008 278.196);
  --muted-foreground: oklch(0.493 0.022 277.622);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.019 101.614);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.019 101.614);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.352 0.063 99.046);
  --primary-foreground: oklch(0.81 0.142 99.125);
  --secondary: oklch(0.227 0.085 270.437);
  --secondary-foreground: oklch(0.741 0.099 276.025);
  --accent: oklch(0.227 0.085 270.437);
  --accent-foreground: oklch(0.741 0.099 276.025);
  --destructive: oklch(0.453 0.138 38.793);
  --destructive-foreground: oklch(0.925 0.034 42.838);
  --ring: oklch(0.352 0.063 99.046);
  --chart-1: oklch(0.352 0.063 99.046);
  --chart-2: oklch(0.227 0.085 270.437);
  --chart-3: oklch(0.227 0.085 270.437);
  --chart-4: oklch(0.251 0.098 270.005);
  --chart-5: oklch(0.356 0.065 98.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.013 99.821);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.011 277.469);
  --muted-foreground: oklch(0.667 0.021 277.853);
  --popover: oklch(0.157 0.013 99.821);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.013 99.821);
  --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.352 0.063 99.046);
  --primary-foreground: oklch(0.81 0.142 99.125);
  --secondary: oklch(0.227 0.085 270.437);
  --secondary-foreground: oklch(0.741 0.099 276.025);
  --accent: oklch(0.227 0.085 270.437);
  --accent-foreground: oklch(0.741 0.099 276.025);
  --destructive: oklch(0.666 0.185 40.003);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.352 0.063 99.046);
  --chart-1: oklch(0.352 0.063 99.046);
  --chart-2: oklch(0.227 0.085 270.437);
  --chart-3: oklch(0.227 0.085 270.437);
  --chart-4: oklch(0.251 0.098 270.005);
  --chart-5: oklch(0.356 0.065 98.943);
}