Dungarees for shadcn/ui

Dungarees is a shadcn/ui theme built around a vivid deep green primary color (#091301) with vivid deep pink accents (#130109). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid deep green primary (#091301) on a neutral background (#050704).

Color palette

TokenLightDark
Background
#fafcf8snow
#050704black
Foreground
#020401black
#fcfdfbsnow
Card
#fafcf8snow
#050704black
Card foreground
#020401black
#fcfdfbsnow
Popover
#fafcf8snow
#050704black
Popover foreground
#020401black
#fcfdfbsnow
Primary
#091301black
#091301black
Primary foreground
#66d30dlawngreen
#66d30dlawngreen
Secondary
#010913black
#010913black
Secondary foreground
#529bf4cornflowerblue
#529bf4cornflowerblue
Muted
#dfe0e2gainsboro
#1d1e20black
Muted foreground
#55606ddimgray
#929daadarkgray
Accent
#130109black
#130109black
Accent foreground
#f4529bhotpink
#f4529bhotpink
Destructive
#71190amaroon
#d32f12firebrick
Destructive foreground
#f8beb4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#091301black
#091301black

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button9.83:1AAA
Secondary button6.99:1AA
Muted text4.85:1AA
Accent6.29:1AA
Destructive7.06:1AAA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button9.83:1AAA
Secondary button6.99:1AA
Muted text6.03:1AA
Accent6.29:1AA
Destructive5.00:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 130.482);
  --foreground: oklch(0.102 0.02 128.847);
  --muted: oklch(0.907 0.003 253.24);
  --muted-foreground: oklch(0.484 0.024 253.511);
  --popover: oklch(0.987 0.005 130.482);
  --popover-foreground: oklch(0.102 0.02 128.847);
  --card: oklch(0.987 0.005 130.482);
  --card-foreground: oklch(0.102 0.02 128.847);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.172 0.042 130.362);
  --primary-foreground: oklch(0.771 0.228 136.422);
  --secondary: oklch(0.136 0.028 244.835);
  --secondary-foreground: oklch(0.684 0.151 254.699);
  --accent: oklch(0.129 0.045 350.276);
  --accent-foreground: oklch(0.679 0.207 356.397);
  --destructive: oklch(0.362 0.124 32.305);
  --destructive-foreground: oklch(0.852 0.069 29.978);
  --ring: oklch(0.172 0.042 130.362);
  --chart-1: oklch(0.172 0.042 130.362);
  --chart-2: oklch(0.136 0.028 244.835);
  --chart-3: oklch(0.129 0.045 350.276);
  --chart-4: oklch(0.172 0.043 251.461);
  --chart-5: oklch(0.173 0.043 130.357);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 129.68);
  --foreground: oklch(0.994 0.003 130.465);
  --muted: oklch(0.236 0.004 253.325);
  --muted-foreground: oklch(0.692 0.022 253.417);
  --popover: oklch(0.122 0.011 129.68);
  --popover-foreground: oklch(0.994 0.003 130.465);
  --card: oklch(0.122 0.011 129.68);
  --card-foreground: oklch(0.994 0.003 130.465);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.172 0.042 130.362);
  --primary-foreground: oklch(0.771 0.228 136.422);
  --secondary: oklch(0.136 0.028 244.835);
  --secondary-foreground: oklch(0.684 0.151 254.699);
  --accent: oklch(0.129 0.045 350.276);
  --accent-foreground: oklch(0.679 0.207 356.397);
  --destructive: oklch(0.566 0.203 32.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.172 0.042 130.362);
  --chart-1: oklch(0.172 0.042 130.362);
  --chart-2: oklch(0.136 0.028 244.835);
  --chart-3: oklch(0.129 0.045 350.276);
  --chart-4: oklch(0.172 0.043 251.461);
  --chart-5: oklch(0.173 0.043 130.357);
}