Plover for shadcn/ui

Plover is a shadcn/ui theme built around a deep blue primary color (#070b17) with muted light blue accents (#bdc2d6). The light mode uses a neutral background (#f7f8fc). Dark mode keeps the deep blue primary (#070b17) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#f7f8fcghostwhite
#06080eblack
Foreground
#050710black
#f5f6fawhitesmoke
Card
#f7f8fcghostwhite
#06080eblack
Card foreground
#050710black
#f5f6fawhitesmoke
Popover
#f7f8fcghostwhite
#06080eblack
Popover foreground
#050710black
#f5f6fawhitesmoke
Primary
#070b17black
#070b17black
Primary foreground
#7c8fd5cornflowerblue
#7c8fd5cornflowerblue
Secondary
#d6d8e0gainsboro
#1d1e20black
Secondary foreground
#393d4cdarkslategray
#b3b5bcsilver
Muted
#dbdde6gainsboro
#191b24black
Muted foreground
#58595adimgray
#a5a5a7darkgray
Accent
#bdc2d6lightsteelblue
#282b34darkslategray
Accent foreground
#252a3cdarkslategray
#c0c3cesilver
Destructive
#5e2508maroon
#d95412chocolate
Destructive foreground
#f7bea1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070b17black
#070b17black

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button6.30:1AA
Secondary button7.61:1AAA
Muted text5.18:1AA
Accent8.06:1AAA
Destructive7.36:1AAA
Dark mode
Text on background18.52:1AAA
Text on card18.52:1AAA
Primary button6.30:1AA
Secondary button8.17:1AAA
Muted text6.96:1AA
Accent8.07:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 273.802);
  --foreground: oklch(0.131 0.02 268.391);
  --muted: oklch(0.899 0.013 273.702);
  --muted-foreground: oklch(0.463 0.002 273.809);
  --popover: oklch(0.981 0.005 273.802);
  --popover-foreground: oklch(0.131 0.02 268.391);
  --card: oklch(0.981 0.005 273.802);
  --card-foreground: oklch(0.131 0.02 268.391);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.152 0.027 270.511);
  --primary-foreground: oklch(0.664 0.106 271.494);
  --secondary: oklch(0.884 0.011 273.723);
  --secondary-foreground: oklch(0.362 0.026 272.937);
  --accent: oklch(0.817 0.028 273.455);
  --accent-foreground: oklch(0.289 0.033 272.273);
  --destructive: oklch(0.343 0.093 43.25);
  --destructive-foreground: oklch(0.845 0.078 47.782);
  --ring: oklch(0.152 0.027 270.511);
  --chart-1: oklch(0.152 0.027 270.511);
  --chart-2: oklch(0.884 0.011 273.723);
  --chart-3: oklch(0.817 0.028 273.455);
  --chart-4: oklch(0.909 0.009 273.758);
  --chart-5: oklch(0.151 0.029 270.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.014 270.401);
  --foreground: oklch(0.973 0.006 273.797);
  --muted: oklch(0.225 0.018 272.791);
  --muted-foreground: oklch(0.723 0.002 273.833);
  --popover: oklch(0.136 0.014 270.401);
  --popover-foreground: oklch(0.973 0.006 273.797);
  --card: oklch(0.136 0.014 270.401);
  --card-foreground: oklch(0.973 0.006 273.797);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.152 0.027 270.511);
  --primary-foreground: oklch(0.664 0.106 271.494);
  --secondary: oklch(0.233 0.006 273.58);
  --secondary-foreground: oklch(0.774 0.01 273.721);
  --accent: oklch(0.288 0.017 273.088);
  --accent-foreground: oklch(0.817 0.016 273.631);
  --destructive: oklch(0.614 0.18 41.496);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.027 270.511);
  --chart-1: oklch(0.152 0.027 270.511);
  --chart-2: oklch(0.233 0.006 273.58);
  --chart-3: oklch(0.288 0.017 273.088);
  --chart-4: oklch(0.265 0.007 273.559);
  --chart-5: oklch(0.151 0.029 270.064);
}