Dress is a shadcn/ui theme built around a vivid deep green primary color (#014708) with vivid deep teal accents (#01472b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#014708) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #061407black | #fcfdfcwhite |
| Card | #ffffffwhite | #010402black |
| Card foreground | #061407black | #fcfdfcwhite |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #061407black | #fcfdfcwhite |
| Primary | #014708darkgreen | #014708darkgreen |
| Primary foreground | #17fd2elime | #17fd2elime |
| Secondary | #1d4701darkgreen | #1d4701darkgreen |
| Secondary foreground | #73fd17lawngreen | #73fd17lawngreen |
| Muted | #e1edd9gainsboro | #1a2612black |
| Muted foreground | #5e625bdimgray | #a0a49ddarkgray |
| Accent | #01472bdarkgreen | #01472bdarkgreen |
| Accent foreground | #17fda1mediumspringgreen | #17fda1mediumspringgreen |
| Destructive | #bf3503firebrick | #e74004orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #014708darkgreen | #014708darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Dress in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.032 146.691);
--muted: oklch(0.932 0.03 132.602);
--muted-foreground: oklch(0.49 0.013 132.561);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.032 146.691);
--card: oklch(1 0 180);
--card-foreground: oklch(0.172 0.032 146.691);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.112 143.778);
--primary-foreground: oklch(0.862 0.282 143.254);
--secondary: oklch(0.352 0.106 136.708);
--secondary-foreground: oklch(0.88 0.265 137.483);
--accent: oklch(0.35 0.08 158.997);
--accent-foreground: oklch(0.876 0.203 157.848);
--destructive: oklch(0.535 0.181 36.067);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.112 143.778);
--chart-1: oklch(0.345 0.112 143.778);
--chart-2: oklch(0.352 0.106 136.708);
--chart-3: oklch(0.35 0.08 158.997);
--chart-4: oklch(0.401 0.121 137.111);
--chart-5: oklch(0.348 0.114 143.74);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.015 147.491);
--foreground: oklch(0.993 0.001 148.584);
--muted: oklch(0.252 0.04 133.775);
--muted-foreground: oklch(0.714 0.012 132.484);
--popover: oklch(0.096 0.015 147.491);
--popover-foreground: oklch(0.993 0.001 148.584);
--card: oklch(0.096 0.015 147.491);
--card-foreground: oklch(0.993 0.001 148.584);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.112 143.778);
--primary-foreground: oklch(0.862 0.282 143.254);
--secondary: oklch(0.352 0.106 136.708);
--secondary-foreground: oklch(0.88 0.265 137.483);
--accent: oklch(0.35 0.08 158.997);
--accent-foreground: oklch(0.876 0.203 157.848);
--destructive: oklch(0.615 0.211 35.7);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.112 143.778);
--chart-1: oklch(0.345 0.112 143.778);
--chart-2: oklch(0.352 0.106 136.708);
--chart-3: oklch(0.35 0.08 158.997);
--chart-4: oklch(0.401 0.121 137.111);
--chart-5: oklch(0.348 0.114 143.74);
}