Unkempt for shadcn/ui

Unkempt is a shadcn/ui theme built around a light violet primary color (#c5afef) with light green accents (#d8efaf). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the light violet primary (#c5afef) on a violet-tinted background (#080410).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#080410black
Foreground
#0b0613black
#fcfcfdwhite
Card
#f9f7fdghostwhite
#080410black
Card foreground
#0b0613black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#080410black
Popover foreground
#0b0613black
#fcfcfdwhite
Primary
#c5afefplum
#c5afefplum
Primary foreground
#2b1259midnightblue
#2b1259midnightblue
Secondary
#d8efafpalegoldenrod
#d8efafpalegoldenrod
Secondary foreground
#405912darkolivegreen
#405912darkolivegreen
Muted
#dee6d1gainsboro
#272e19darkslategray
Muted foreground
#4d4d4cdarkslategray
#b3b3b2darkgray
Accent
#d8efafpalegoldenrod
#d8efafpalegoldenrod
Accent foreground
#405912darkolivegreen
#405912darkolivegreen
Destructive
#b5310dfirebrick
#ea3f10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5afefplum
#c5afefplum

Contrast

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

Light mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button8.03:1AAA
Secondary button6.33:1AA
Muted text6.57:1AA
Accent6.33:1AA
Destructive6.14:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button8.03:1AAA
Secondary button6.33:1AA
Muted text6.70:1AA
Accent6.33:1AA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 302.079);
  --foreground: oklch(0.139 0.03 299.86);
  --muted: oklch(0.913 0.029 122.71);
  --muted-foreground: oklch(0.42 0.003 122.31);
  --popover: oklch(0.979 0.008 302.079);
  --popover-foreground: oklch(0.139 0.03 299.86);
  --card: oklch(0.979 0.008 302.079);
  --card-foreground: oklch(0.139 0.03 299.86);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.092 300.36);
  --primary-foreground: oklch(0.269 0.118 292.667);
  --secondary: oklch(0.919 0.087 123.756);
  --secondary-foreground: oklch(0.429 0.099 127.286);
  --accent: oklch(0.919 0.087 123.756);
  --accent-foreground: oklch(0.429 0.099 127.286);
  --destructive: oklch(0.514 0.174 34.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.092 300.36);
  --chart-1: oklch(0.794 0.092 300.36);
  --chart-2: oklch(0.919 0.087 123.756);
  --chart-3: oklch(0.919 0.087 123.756);
  --chart-4: oklch(0.931 0.073 123.484);
  --chart-5: oklch(0.791 0.096 300.266);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.031 301.341);
  --foreground: oklch(0.991 0.002 302.176);
  --muted: oklch(0.288 0.037 124.374);
  --muted-foreground: oklch(0.767 0.002 122.259);
  --popover: oklch(0.125 0.031 301.341);
  --popover-foreground: oklch(0.991 0.002 302.176);
  --card: oklch(0.125 0.031 301.341);
  --card-foreground: oklch(0.991 0.002 302.176);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.092 300.36);
  --primary-foreground: oklch(0.269 0.118 292.667);
  --secondary: oklch(0.919 0.087 123.756);
  --secondary-foreground: oklch(0.429 0.099 127.286);
  --accent: oklch(0.919 0.087 123.756);
  --accent-foreground: oklch(0.429 0.099 127.286);
  --destructive: oklch(0.619 0.213 34.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.092 300.36);
  --chart-1: oklch(0.794 0.092 300.36);
  --chart-2: oklch(0.919 0.087 123.756);
  --chart-3: oklch(0.919 0.087 123.756);
  --chart-4: oklch(0.931 0.073 123.484);
  --chart-5: oklch(0.791 0.096 300.266);
}