Osprey for shadcn/ui

Osprey is a shadcn/ui theme built around a vivid light orange primary color (#fdcb96) with vivid light yellow accents (#fbfd96). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid light orange primary (#fdcb96) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fdfaf7snow
#070503black
Foreground
#0d0802black
#fbfaf9snow
Card
#fbf7f3floralwhite
#0b0804black
Card foreground
#090501black
#fdfcfcsnow
Popover
#fdfaf7snow
#070503black
Popover foreground
#0d0802black
#fbfaf9snow
Primary
#fdcb96navajowhite
#fdcb96navajowhite
Primary foreground
#5f3202saddlebrown
#5f3202saddlebrown
Secondary
#fd9896lightsalmon
#fd9896lightsalmon
Secondary foreground
#5f0302maroon
#5f0302maroon
Muted
#f0e5e5linen
#1a0f0fblack
Muted foreground
#4c3939darkslategray
#c6b4b3silver
Accent
#fbfd96khaki
#fbfd96khaki
Accent foreground
#5d5f02darkolivegreen
#5d5f02darkolivegreen
Destructive
#640f07maroon
#ee2917orangered
Destructive foreground
#f8aca5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdcb96navajowhite
#fdcb96navajowhite

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.13:1AAA
Primary button7.29:1AAA
Secondary button6.72:1AA
Muted text8.74:1AAA
Accent6.30:1AA
Destructive7.10:1AAA
Dark mode
Text on background19.49:1AAA
Text on card19.53:1AAA
Primary button7.29:1AAA
Secondary button6.72:1AA
Muted text9.45:1AAA
Accent6.30:1AA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 69.604);
  --foreground: oklch(0.139 0.021 78.921);
  --muted: oklch(0.931 0.012 18.565);
  --muted-foreground: oklch(0.366 0.026 19.542);
  --popover: oklch(0.986 0.005 69.604);
  --popover-foreground: oklch(0.139 0.021 78.921);
  --card: oklch(0.979 0.007 69.58);
  --card-foreground: oklch(0.121 0.018 80.26);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.874 0.089 68.115);
  --primary-foreground: oklch(0.368 0.085 59.454);
  --secondary: oklch(0.783 0.122 21.247);
  --secondary-foreground: oklch(0.308 0.122 29.239);
  --accent: oklch(0.971 0.126 109.358);
  --accent-foreground: oklch(0.468 0.102 110.868);
  --destructive: oklch(0.326 0.118 30.011);
  --destructive-foreground: oklch(0.815 0.091 25.022);
  --ring: oklch(0.874 0.089 68.115);
  --chart-1: oklch(0.874 0.089 68.115);
  --chart-2: oklch(0.783 0.122 21.247);
  --chart-3: oklch(0.971 0.126 109.358);
  --chart-4: oklch(0.812 0.103 20.627);
  --chart-5: oklch(0.875 0.091 68.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.01 75.639);
  --foreground: oklch(0.985 0.001 69.64);
  --muted: oklch(0.183 0.019 20.185);
  --muted-foreground: oklch(0.784 0.021 18.781);
  --popover: oklch(0.119 0.01 75.639);
  --popover-foreground: oklch(0.985 0.001 69.64);
  --card: oklch(0.136 0.011 75.472);
  --card-foreground: oklch(0.993 0.001 69.645);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.874 0.089 68.115);
  --primary-foreground: oklch(0.368 0.085 59.454);
  --secondary: oklch(0.783 0.122 21.247);
  --secondary-foreground: oklch(0.308 0.122 29.239);
  --accent: oklch(0.971 0.126 109.358);
  --accent-foreground: oklch(0.468 0.102 110.868);
  --destructive: oklch(0.609 0.23 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.089 68.115);
  --chart-1: oklch(0.874 0.089 68.115);
  --chart-2: oklch(0.783 0.122 21.247);
  --chart-3: oklch(0.971 0.126 109.358);
  --chart-4: oklch(0.812 0.103 20.627);
  --chart-5: oklch(0.875 0.091 68.045);
}