Dollop is a shadcn/ui theme built around a deep green primary color (#17310c) with deep violet accents (#260c31). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#17310c) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #000000black | #f7f9f5whitesmoke |
| Card | #fcfefbwhite | #020401black |
| Card foreground | #000000black | #f7f9f5whitesmoke |
| Popover | #fcfefbwhite | #020401black |
| Popover foreground | #000000black | #f7f9f5whitesmoke |
| Primary | #17310cblack | #17310cblack |
| Primary foreground | #67ce3byellowgreen | #67ce3byellowgreen |
| Secondary | #260c31black | #260c31black |
| Secondary foreground | #c98de2plum | #c98de2plum |
| Muted | #ebe9eclavender | #151316black |
| Muted foreground | #625f63dimgray | #9f9ca0darkgray |
| Accent | #260c31black | #260c31black |
| Accent foreground | #c98de2plum | #c98de2plum |
| Destructive | #bb3e0cfirebrick | #f3723ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #17310cblack | #17310cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 7.28:1 | AAA |
Paste this into your globals.css to use Dollop in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.034);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.004 316.007);
--muted-foreground: oklch(0.489 0.007 315.971);
--popover: oklch(0.994 0.003 136.034);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 136.034);
--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.283 0.068 137.565);
--primary-foreground: oklch(0.761 0.205 138.035);
--secondary: oklch(0.217 0.074 314.284);
--secondary-foreground: oklch(0.732 0.136 315.307);
--accent: oklch(0.217 0.074 314.284);
--accent-foreground: oklch(0.732 0.136 315.307);
--destructive: oklch(0.537 0.17 38.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.283 0.068 137.565);
--chart-1: oklch(0.283 0.068 137.565);
--chart-2: oklch(0.217 0.074 314.284);
--chart-3: oklch(0.217 0.074 314.284);
--chart-4: oklch(0.246 0.088 314.095);
--chart-5: oklch(0.285 0.071 137.67);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.015 134.581);
--foreground: oklch(0.98 0.006 136.045);
--muted: oklch(0.191 0.006 315.917);
--muted-foreground: oklch(0.697 0.006 315.989);
--popover: oklch(0.098 0.015 134.581);
--popover-foreground: oklch(0.98 0.006 136.045);
--card: oklch(0.098 0.015 134.581);
--card-foreground: oklch(0.98 0.006 136.045);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.283 0.068 137.565);
--primary-foreground: oklch(0.761 0.205 138.035);
--secondary: oklch(0.217 0.074 314.284);
--secondary-foreground: oklch(0.732 0.136 315.307);
--accent: oklch(0.217 0.074 314.284);
--accent-foreground: oklch(0.732 0.136 315.307);
--destructive: oklch(0.697 0.171 40.999);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.283 0.068 137.565);
--chart-1: oklch(0.283 0.068 137.565);
--chart-2: oklch(0.217 0.074 314.284);
--chart-3: oklch(0.217 0.074 314.284);
--chart-4: oklch(0.246 0.088 314.095);
--chart-5: oklch(0.285 0.071 137.67);
}