Unkempt for shadcn/ui

Unkempt is a shadcn/ui theme built around a muted green primary color (#467750) with muted teal accents (#467769). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#467750) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#010402black
#ffffffwhite
Card
#ffffffwhite
#030704black
Card foreground
#010402black
#ffffffwhite
Popover
#ffffffwhite
#030704black
Popover foreground
#010402black
#ffffffwhite
Primary
#467750seagreen
#467750seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#547746darkolivegreen
#547746darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2eeddgainsboro
#162211black
Muted foreground
#596c51dimgray
#9bae93darkseagreen
Accent
#467769seagreen
#467769seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#730202maroon
#e10505red
Destructive foreground
#fdaaaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#467750seagreen
#467750seagreen

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button5.23:1AA
Secondary button5.12:1AA
Muted text4.73:1AA
Accent5.12:1AA
Destructive6.61:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button5.23:1AA
Secondary button5.12:1AA
Muted text6.99:1AA
Accent5.12:1AA
Destructive4.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.02 151.629);
  --muted: oklch(0.935 0.025 136.69);
  --muted-foreground: oklch(0.506 0.047 136.916);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.02 151.629);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.02 151.629);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.523 0.081 149.83);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.084 137.23);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.53 0.058 173.915);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.35 0.142 28.9);
  --destructive-foreground: oklch(0.819 0.098 19.401);
  --ring: oklch(0.523 0.081 149.83);
  --chart-1: oklch(0.523 0.081 149.83);
  --chart-2: oklch(0.529 0.084 137.23);
  --chart-3: oklch(0.53 0.058 173.915);
  --chart-4: oklch(0.559 0.089 137.237);
  --chart-5: oklch(0.529 0.089 149.519);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 152.031);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.234 0.034 137.165);
  --muted-foreground: oklch(0.728 0.043 136.794);
  --popover: oklch(0.121 0.015 152.031);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.015 152.031);
  --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.523 0.081 149.83);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.084 137.23);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.53 0.058 173.915);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.233 29.083);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.523 0.081 149.83);
  --chart-1: oklch(0.523 0.081 149.83);
  --chart-2: oklch(0.529 0.084 137.23);
  --chart-3: oklch(0.53 0.058 173.915);
  --chart-4: oklch(0.559 0.089 137.237);
  --chart-5: oklch(0.529 0.089 149.519);
}