Doll for shadcn/ui

Doll is a shadcn/ui theme built around a muted green primary color (#a1b48d) with muted violet accents (#a08db4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#a1b48d) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#050901black
#fcfdfcwhite
Card
#ffffffwhite
#030401black
Card foreground
#050901black
#fcfdfcwhite
Popover
#ffffffwhite
#030401black
Popover foreground
#050901black
#fcfdfcwhite
Primary
#a1b48ddarkseagreen
#a1b48ddarkseagreen
Primary foreground
#080906black
#080906black
Secondary
#a08db4darkgray
#a08db4darkgray
Secondary foreground
#080609black
#080609black
Muted
#edebf0lavender
#120f14black
Muted foreground
#545058dimgray
#aba7afdarkgray
Accent
#a08db4darkgray
#a08db4darkgray
Accent foreground
#080609black
#080609black
Destructive
#670909maroon
#ed3131crimson
Destructive foreground
#f8abablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a1b48ddarkseagreen
#a1b48ddarkseagreen

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button9.00:1AAA
Secondary button6.68:1AA
Muted text6.64:1AA
Accent6.68:1AA
Destructive7.02:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button9.00:1AAA
Secondary button6.68:1AA
Muted text8.02:1AAA
Accent6.68:1AA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.025 126.475);
  --muted: oklch(0.942 0.007 307.701);
  --muted-foreground: oklch(0.438 0.015 307.402);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.025 126.475);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.025 126.475);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.746 0.059 128.759);
  --primary-foreground: oklch(0.137 0.009 127.353);
  --secondary: oklch(0.674 0.061 306.725);
  --secondary-foreground: oklch(0.127 0.009 308.284);
  --accent: oklch(0.674 0.061 306.725);
  --accent-foreground: oklch(0.127 0.009 308.284);
  --destructive: oklch(0.33 0.126 27.769);
  --destructive-foreground: oklch(0.814 0.091 19.228);
  --ring: oklch(0.746 0.059 128.759);
  --chart-1: oklch(0.746 0.059 128.759);
  --chart-2: oklch(0.674 0.061 306.725);
  --chart-3: oklch(0.674 0.061 306.725);
  --chart-4: oklch(0.701 0.056 306.86);
  --chart-5: oklch(0.752 0.067 128.894);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 126.926);
  --foreground: oklch(0.994 0.003 127.82);
  --muted: oklch(0.175 0.011 307.068);
  --muted-foreground: oklch(0.733 0.013 307.585);
  --popover: oklch(0.099 0.012 126.926);
  --popover-foreground: oklch(0.994 0.003 127.82);
  --card: oklch(0.099 0.012 126.926);
  --card-foreground: oklch(0.994 0.003 127.82);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.746 0.059 128.759);
  --primary-foreground: oklch(0.137 0.009 127.353);
  --secondary: oklch(0.674 0.061 306.725);
  --secondary-foreground: oklch(0.127 0.009 308.284);
  --accent: oklch(0.674 0.061 306.725);
  --accent-foreground: oklch(0.127 0.009 308.284);
  --destructive: oklch(0.615 0.223 26.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.059 128.759);
  --chart-1: oklch(0.746 0.059 128.759);
  --chart-2: oklch(0.674 0.061 306.725);
  --chart-3: oklch(0.674 0.061 306.725);
  --chart-4: oklch(0.701 0.056 306.86);
  --chart-5: oklch(0.752 0.067 128.894);
}