Unkempt for shadcn/ui

Unkempt is a shadcn/ui theme built around a deep yellow primary color (#15110a) with muted light yellow accents (#eeece7). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#15110a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#140f06black
#ffffffwhite
Card
#fcfbf7snow
#030303black
Card foreground
#100c04black
#ffffffwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#140f06black
#ffffffwhite
Primary
#15110ablack
#15110ablack
Primary foreground
#c8b389tan
#c8b389tan
Secondary
#eeece7linen
#23201ablack
Secondary foreground
#5f5644darkolivegreen
#c2bbaesilver
Muted
#efece6linen
#191610black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#eeece7linen
#23201ablack
Accent foreground
#5f5644darkolivegreen
#c2bbaesilver
Destructive
#ae3809firebrick
#f45f25tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#15110ablack
#15110ablack

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.82:1AAA
Primary button9.19:1AAA
Secondary button6.12:1AA
Muted text7.89:1AAA
Accent6.12:1AA
Destructive6.21:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.19:1AAA
Secondary button8.51:1AAA
Muted text9.09:1AAA
Accent8.51:1AAA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 84.557);
  --foreground: oklch(0.172 0.021 85.428);
  --muted: oklch(0.945 0.009 84.575);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.994 0.002 84.557);
  --popover-foreground: oklch(0.172 0.021 85.428);
  --card: oklch(0.988 0.005 84.564);
  --card-foreground: oklch(0.157 0.018 87.191);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.18 0.015 84.338);
  --primary-foreground: oklch(0.773 0.061 84.402);
  --secondary: oklch(0.943 0.007 84.569);
  --secondary-foreground: oklch(0.458 0.031 84.481);
  --accent: oklch(0.943 0.007 84.569);
  --accent-foreground: oklch(0.458 0.031 84.481);
  --destructive: oklch(0.509 0.162 37.887);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.015 84.338);
  --chart-1: oklch(0.18 0.015 84.338);
  --chart-2: oklch(0.943 0.007 84.569);
  --chart-3: oklch(0.943 0.007 84.569);
  --chart-4: oklch(0.964 0.004 84.562);
  --chart-5: oklch(0.181 0.017 84.304);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.013 84.488);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.18 0.015 84.338);
  --primary-foreground: oklch(0.773 0.061 84.402);
  --secondary: oklch(0.245 0.011 84.572);
  --secondary-foreground: oklch(0.794 0.02 84.593);
  --accent: oklch(0.245 0.011 84.572);
  --accent-foreground: oklch(0.794 0.02 84.593);
  --destructive: oklch(0.671 0.194 39.531);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.18 0.015 84.338);
  --chart-1: oklch(0.18 0.015 84.338);
  --chart-2: oklch(0.245 0.011 84.572);
  --chart-3: oklch(0.245 0.011 84.572);
  --chart-4: oklch(0.278 0.014 84.564);
  --chart-5: oklch(0.181 0.017 84.304);
}