Dollop for shadcn/ui

Dollop is a shadcn/ui theme built around a deep green primary color (#17310c) with deep violet accents (#260c31). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#17310c) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#000000black
#f7f9f5whitesmoke
Card
#fcfefbwhite
#020401black
Card foreground
#000000black
#f7f9f5whitesmoke
Popover
#fcfefbwhite
#020401black
Popover foreground
#000000black
#f7f9f5whitesmoke
Primary
#17310cblack
#17310cblack
Primary foreground
#67ce3byellowgreen
#67ce3byellowgreen
Secondary
#260c31black
#260c31black
Secondary foreground
#c98de2plum
#c98de2plum
Muted
#ebe9eclavender
#151316black
Muted foreground
#625f63dimgray
#9f9ca0darkgray
Accent
#260c31black
#260c31black
Accent foreground
#c98de2plum
#c98de2plum
Destructive
#bb3e0cfirebrick
#f3723ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#17310cblack
#17310cblack

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.65:1AAA
Primary button7.06:1AAA
Secondary button7.11:1AAA
Muted text5.22:1AA
Accent7.11:1AAA
Destructive5.53:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.06:1AAA
Secondary button7.11:1AAA
Muted text6.80:1AA
Accent7.11:1AAA
Destructive7.28:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 136.034);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.004 316.007);
  --muted-foreground: oklch(0.489 0.007 315.971);
  --popover: oklch(0.994 0.003 136.034);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 136.034);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.283 0.068 137.565);
  --primary-foreground: oklch(0.761 0.205 138.035);
  --secondary: oklch(0.217 0.074 314.284);
  --secondary-foreground: oklch(0.732 0.136 315.307);
  --accent: oklch(0.217 0.074 314.284);
  --accent-foreground: oklch(0.732 0.136 315.307);
  --destructive: oklch(0.537 0.17 38.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.283 0.068 137.565);
  --chart-1: oklch(0.283 0.068 137.565);
  --chart-2: oklch(0.217 0.074 314.284);
  --chart-3: oklch(0.217 0.074 314.284);
  --chart-4: oklch(0.246 0.088 314.095);
  --chart-5: oklch(0.285 0.071 137.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.015 134.581);
  --foreground: oklch(0.98 0.006 136.045);
  --muted: oklch(0.191 0.006 315.917);
  --muted-foreground: oklch(0.697 0.006 315.989);
  --popover: oklch(0.098 0.015 134.581);
  --popover-foreground: oklch(0.98 0.006 136.045);
  --card: oklch(0.098 0.015 134.581);
  --card-foreground: oklch(0.98 0.006 136.045);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.283 0.068 137.565);
  --primary-foreground: oklch(0.761 0.205 138.035);
  --secondary: oklch(0.217 0.074 314.284);
  --secondary-foreground: oklch(0.732 0.136 315.307);
  --accent: oklch(0.217 0.074 314.284);
  --accent-foreground: oklch(0.732 0.136 315.307);
  --destructive: oklch(0.697 0.171 40.999);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.283 0.068 137.565);
  --chart-1: oklch(0.283 0.068 137.565);
  --chart-2: oklch(0.217 0.074 314.284);
  --chart-3: oklch(0.217 0.074 314.284);
  --chart-4: oklch(0.246 0.088 314.095);
  --chart-5: oklch(0.285 0.071 137.67);
}