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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 4.16:1 | AA Large |
| Muted text | 7.77:1 | AAA |
| Accent | 3.93:1 | AA Large |
| Destructive | 6.73:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 4.16:1 | AA Large |
| Muted text | 9.10:1 | AAA |
| Accent | 3.93:1 | AA Large |
| Destructive | 3.55:1 | AA Large |
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);
}