Dollop for shadcn/ui

Dollop is a shadcn/ui theme built around a neutral gray primary color (#867574) with neutral gray accents (#867e74). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#867574) on a red-tinted background (#0f0605).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0f0605black
Foreground
#120302black
#fbf9f9snow
Card
#fcf8f8snow
#0f0605black
Card foreground
#120302black
#fbf9f9snow
Popover
#fcf8f8snow
#0f0605black
Popover foreground
#120302black
#fbf9f9snow
Primary
#867574gray
#867574gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#86747cgray
#86747cgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecdfe5gainsboro
#201319black
Muted foreground
#6f5862dimgray
#a7909arosybrown
Accent
#867e74gray
#867e74gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d81c03red
#f62004red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#867574gray
#867574gray

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button4.35:1AA Large
Secondary button4.36:1AA Large
Muted text4.99:1AA
Accent3.99:1AA Large
Destructive5.13:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button4.35:1AA Large
Secondary button4.36:1AA Large
Muted text6.08:1AA
Accent3.99:1AA Large
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 22.266);
  --foreground: oklch(0.131 0.032 29.541);
  --muted: oklch(0.915 0.017 349.242);
  --muted-foreground: oklch(0.486 0.035 350.63);
  --popover: oklch(0.982 0.004 22.266);
  --popover-foreground: oklch(0.131 0.032 29.541);
  --card: oklch(0.982 0.004 22.266);
  --card-foreground: oklch(0.131 0.032 29.541);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.578 0.02 22.641);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.024 349.866);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.017 74.75);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.563 0.219 30.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.578 0.02 22.641);
  --chart-1: oklch(0.578 0.02 22.641);
  --chart-2: oklch(0.578 0.024 349.866);
  --chart-3: oklch(0.597 0.017 74.75);
  --chart-4: oklch(0.604 0.024 349.785);
  --chart-5: oklch(0.574 0.03 22.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.019 25.767);
  --foreground: oklch(0.984 0.002 22.232);
  --muted: oklch(0.206 0.025 351.893);
  --muted-foreground: oklch(0.677 0.032 350);
  --popover: oklch(0.136 0.019 25.767);
  --popover-foreground: oklch(0.984 0.002 22.232);
  --card: oklch(0.136 0.019 25.767);
  --card-foreground: oklch(0.984 0.002 22.232);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.578 0.02 22.641);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.024 349.866);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.017 74.75);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.62 0.243 30.595);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.578 0.02 22.641);
  --chart-1: oklch(0.578 0.02 22.641);
  --chart-2: oklch(0.578 0.024 349.866);
  --chart-3: oklch(0.597 0.017 74.75);
  --chart-4: oklch(0.604 0.024 349.785);
  --chart-5: oklch(0.574 0.03 22.859);
}