Dill is a shadcn/ui theme built around a muted green primary color (#54785d) with muted teal accents (#547870). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#54785d) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #041608black | #f8fbf9mintcream |
| Card | #fcfcfcsnow | #020804black |
| Card foreground | #031207black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #020804black |
| Popover foreground | #031207black | #fcfdfcwhite |
| Primary | #54785ddimgray | #54785ddimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5c7854dimgray | #5c7854dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaf2e8linen | #0f170dblack |
| Muted foreground | #5c635adimgray | #9ea59cdarkgray |
| Accent | #547870dimgray | #547870dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ac3802firebrick | #fd7435tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #54785ddimgray | #54785ddimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 4.95:1 | AA |
| Secondary button | 4.89:1 | AA |
| Muted text | 5.43:1 | AA |
| Accent | 4.87:1 | AA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.95:1 | AA |
| Secondary button | 4.89:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 4.87:1 | AA |
| Destructive | 7.74:1 | AAA |
Paste this into your globals.css to use Dill in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.038 151.487);
--muted: oklch(0.953 0.016 138.348);
--muted-foreground: oklch(0.491 0.017 138.368);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.162 0.033 152.523);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.033 152.523);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.538 0.059 152.381);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.542 0.065 138.499);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.044 178.439);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.504 0.16 39.011);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.059 152.381);
--chart-1: oklch(0.538 0.059 152.381);
--chart-2: oklch(0.542 0.065 138.499);
--chart-3: oklch(0.544 0.044 178.439);
--chart-4: oklch(0.57 0.068 138.501);
--chart-5: oklch(0.544 0.068 152.026);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.014 153.971);
--foreground: oklch(0.986 0.004 154.452);
--muted: oklch(0.193 0.024 138.505);
--muted-foreground: oklch(0.715 0.016 138.353);
--popover: oklch(0.122 0.018 153.971);
--popover-foreground: oklch(0.993 0.002 154.49);
--card: oklch(0.122 0.018 153.971);
--card-foreground: oklch(0.993 0.002 154.49);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.538 0.059 152.381);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.542 0.065 138.499);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.044 178.439);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.714 0.183 42.921);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.538 0.059 152.381);
--chart-1: oklch(0.538 0.059 152.381);
--chart-2: oklch(0.542 0.065 138.499);
--chart-3: oklch(0.544 0.044 178.439);
--chart-4: oklch(0.57 0.068 138.501);
--chart-5: oklch(0.544 0.068 152.026);
}