Lapdog for shadcn/ui

Lapdog is a shadcn/ui theme built around a muted deep green primary color (#1d211c) with muted deep purple accents (#201c21). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the muted deep green primary (#1d211c) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#040703black
Foreground
#081604black
#ffffffwhite
Card
#f6fbf4whitesmoke
#060b04black
Card foreground
#071103black
#ffffffwhite
Popover
#f6fbf4whitesmoke
#060b04black
Popover foreground
#071103black
#ffffffwhite
Primary
#1d211cblack
#1d211cblack
Primary foreground
#b4beb1silver
#b4beb1silver
Secondary
#201c21black
#201c21black
Secondary foreground
#bbb1besilver
#bbb1besilver
Muted
#eaddeelavender
#1e1122black
Muted foreground
#5b4f5fdimgray
#aca0b0darkgray
Accent
#201c21black
#201c21black
Accent foreground
#bbb1besilver
#bbb1besilver
Destructive
#99180adarkred
#f13b27orangered
Destructive foreground
#fddcd9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d211cblack
#1d211cblack

Contrast

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

Light mode
Text on background18.01:1AAA
Text on card18.30:1AAA
Primary button8.47:1AAA
Secondary button8.12:1AAA
Muted text5.89:1AA
Accent8.12:1AAA
Destructive6.56:1AA
Dark mode
Text on background20.22:1AAA
Text on card19.85:1AAA
Primary button8.47:1AAA
Secondary button8.12:1AAA
Muted text7.25:1AAA
Accent8.12:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 137.774);
  --foreground: oklch(0.18 0.041 137.111);
  --muted: oklch(0.913 0.025 317.717);
  --muted-foreground: oklch(0.444 0.029 317.656);
  --popover: oklch(0.981 0.01 137.78);
  --popover-foreground: oklch(0.163 0.035 136.455);
  --card: oklch(0.981 0.01 137.78);
  --card-foreground: oklch(0.163 0.035 136.455);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.012 137.85);
  --primary-foreground: oklch(0.79 0.021 137.808);
  --secondary: oklch(0.233 0.012 317.678);
  --secondary-foreground: oklch(0.773 0.021 317.719);
  --accent: oklch(0.233 0.012 317.678);
  --accent-foreground: oklch(0.773 0.021 317.719);
  --destructive: oklch(0.441 0.165 30.515);
  --destructive-foreground: oklch(0.921 0.036 25.359);
  --ring: oklch(0.243 0.012 137.85);
  --chart-1: oklch(0.243 0.012 137.85);
  --chart-2: oklch(0.233 0.012 317.678);
  --chart-3: oklch(0.233 0.012 317.678);
  --chart-4: oklch(0.264 0.015 317.672);
  --chart-5: oklch(0.245 0.016 137.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 136.423);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.204 0.036 317.425);
  --muted-foreground: oklch(0.722 0.026 317.705);
  --popover: oklch(0.14 0.019 136.453);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.019 136.453);
  --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.243 0.012 137.85);
  --primary-foreground: oklch(0.79 0.021 137.808);
  --secondary: oklch(0.233 0.012 317.678);
  --secondary-foreground: oklch(0.773 0.021 317.719);
  --accent: oklch(0.233 0.012 317.678);
  --accent-foreground: oklch(0.773 0.021 317.719);
  --destructive: oklch(0.63 0.22 30.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.243 0.012 137.85);
  --chart-1: oklch(0.243 0.012 137.85);
  --chart-2: oklch(0.233 0.012 317.678);
  --chart-3: oklch(0.233 0.012 317.678);
  --chart-4: oklch(0.264 0.015 317.672);
  --chart-5: oklch(0.245 0.016 137.881);
}