Dresser for shadcn/ui

Dresser is a shadcn/ui theme built around a vivid green primary color (#78f226) with vivid pink accents (#f22678). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#78f226) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#ffffffwhite
#050802black
Foreground
#020401black
#fafcf8snow
Card
#fcfcfcsnow
#070c04black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#050802black
Popover foreground
#020401black
#fafcf8snow
Primary
#78f226lawngreen
#78f226lawngreen
Primary foreground
#1f4804darkgreen
#1f4804darkgreen
Secondary
#2678f2dodgerblue
#2678f2dodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff2f6whitesmoke
#090c10black
Muted foreground
#474b52darkslategray
#adb1b8darkgray
Accent
#f22678deeppink
#f22678deeppink
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#751200maroon
#ff3c19orangered
Destructive foreground
#ffb5a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78f226lawngreen
#78f226lawngreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button7.33:1AAA
Secondary button4.16:1AA Large
Muted text7.77:1AAA
Accent3.93:1AA Large
Destructive6.73:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.41:1AAA
Primary button7.33:1AAA
Secondary button4.16:1AA Large
Muted text9.10:1AAA
Accent3.93:1AA Large
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.021 130.545);
  --muted: oklch(0.959 0.007 258.33);
  --muted-foreground: oklch(0.413 0.012 258.365);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.021 130.545);
  --card: oklch(0.992 0 161.565);
  --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.857 0.248 136.762);
  --primary-foreground: oklch(0.359 0.104 136.54);
  --secondary: oklch(0.594 0.2 259.101);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.632 0.236 4.471);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.364 0.136 32.583);
  --destructive-foreground: oklch(0.84 0.088 30.209);
  --ring: oklch(0.857 0.248 136.762);
  --chart-1: oklch(0.857 0.248 136.762);
  --chart-2: oklch(0.594 0.2 259.101);
  --chart-3: oklch(0.632 0.236 4.471);
  --chart-4: oklch(0.617 0.187 258.74);
  --chart-5: oklch(0.865 0.253 136.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.018 131.034);
  --foreground: oklch(0.987 0.005 132.394);
  --muted: oklch(0.153 0.011 258.169);
  --muted-foreground: oklch(0.76 0.01 258.344);
  --popover: oklch(0.125 0.018 131.034);
  --popover-foreground: oklch(0.987 0.005 132.394);
  --card: oklch(0.143 0.021 131.148);
  --card-foreground: oklch(0.994 0.002 132.376);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.857 0.248 136.762);
  --primary-foreground: oklch(0.359 0.104 136.54);
  --secondary: oklch(0.594 0.2 259.101);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.632 0.236 4.471);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.234 32.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.248 136.762);
  --chart-1: oklch(0.857 0.248 136.762);
  --chart-2: oklch(0.594 0.2 259.101);
  --chart-3: oklch(0.632 0.236 4.471);
  --chart-4: oklch(0.617 0.187 258.74);
  --chart-5: oklch(0.865 0.253 136.931);
}