Misplacement for shadcn/ui

Misplacement is a shadcn/ui theme built around a green primary color (#92c28e) with muted light green accents (#cad3ca). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#92c28e) on a green-tinted background (#060f05).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#060f05black
Foreground
#071406black
#f6f9f6whitesmoke
Card
#f8fcf8mintcream
#060f05black
Card foreground
#071406black
#f6f9f6whitesmoke
Popover
#f8fcf8mintcream
#060f05black
Popover foreground
#071406black
#f6f9f6whitesmoke
Primary
#92c28edarkseagreen
#92c28edarkseagreen
Primary foreground
#0b140bblack
#0b140bblack
Secondary
#cad3calightgrey
#141a14black
Secondary foreground
#313b30darkslategray
#a6bca4darkgray
Muted
#e9f3e8honeydew
#0d170cblack
Muted foreground
#404a3fdarkslategray
#b5c0b5silver
Accent
#cad3calightgrey
#141a14black
Accent foreground
#313b30darkslategray
#a6bca4darkgray
Destructive
#880401darkred
#f20602red
Destructive foreground
#febebdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92c28edarkseagreen
#92c28edarkseagreen

Contrast

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

Light mode
Text on background18.21:1AAA
Text on card18.21:1AAA
Primary button9.25:1AAA
Secondary button7.63:1AAA
Muted text8.09:1AAA
Accent7.63:1AAA
Destructive6.43:1AA
Dark mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button9.25:1AAA
Secondary button8.69:1AAA
Muted text9.73:1AAA
Accent8.69:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 143.603);
  --foreground: oklch(0.173 0.036 142.137);
  --muted: oklch(0.952 0.018 143.537);
  --muted-foreground: oklch(0.398 0.023 143.332);
  --popover: oklch(0.987 0.006 143.603);
  --popover-foreground: oklch(0.173 0.036 142.137);
  --card: oklch(0.987 0.006 143.603);
  --card-foreground: oklch(0.173 0.036 142.137);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.767 0.089 143.003);
  --primary-foreground: oklch(0.179 0.023 142.947);
  --secondary: oklch(0.858 0.016 143.534);
  --secondary-foreground: oklch(0.339 0.023 143.275);
  --accent: oklch(0.858 0.016 143.534);
  --accent-foreground: oklch(0.339 0.023 143.275);
  --destructive: oklch(0.396 0.16 29.373);
  --destructive-foreground: oklch(0.861 0.074 19.815);
  --ring: oklch(0.767 0.089 143.003);
  --chart-1: oklch(0.767 0.089 143.003);
  --chart-2: oklch(0.858 0.016 143.534);
  --chart-3: oklch(0.858 0.016 143.534);
  --chart-4: oklch(0.881 0.014 143.553);
  --chart-5: oklch(0.771 0.098 142.946);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.026 142.298);
  --foreground: oklch(0.979 0.006 143.604);
  --muted: oklch(0.192 0.026 142.902);
  --muted-foreground: oklch(0.796 0.019 143.509);
  --popover: oklch(0.155 0.026 142.298);
  --popover-foreground: oklch(0.979 0.006 143.604);
  --card: oklch(0.155 0.026 142.298);
  --card-foreground: oklch(0.979 0.006 143.604);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.767 0.089 143.003);
  --primary-foreground: oklch(0.179 0.023 142.947);
  --secondary: oklch(0.21 0.016 143.214);
  --secondary-foreground: oklch(0.771 0.041 143.35);
  --accent: oklch(0.21 0.016 143.214);
  --accent-foreground: oklch(0.771 0.041 143.35);
  --destructive: oklch(0.605 0.247 29.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.767 0.089 143.003);
  --chart-1: oklch(0.767 0.089 143.003);
  --chart-2: oklch(0.21 0.016 143.214);
  --chart-3: oklch(0.21 0.016 143.214);
  --chart-4: oklch(0.245 0.021 143.171);
  --chart-5: oklch(0.771 0.098 142.946);
}