Digging is a shadcn/ui theme built around a violet primary color (#8c39d0) with green accents (#7dd039). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#8c39d0) on a violet-tinted background (#08040b).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #08040bblack |
| Foreground | #0b0311black | #f7f6f9whitesmoke |
| Card | #faf8fcghostwhite | #08040bblack |
| Card foreground | #0b0311black | #f7f6f9whitesmoke |
| Popover | #faf8fcghostwhite | #08040bblack |
| Popover foreground | #0b0311black | #f7f6f9whitesmoke |
| Primary | #8c39d0darkorchid | #8c39d0darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7dd039yellowgreen | #7dd039yellowgreen |
| Secondary foreground | #1d320cblack | #1d320cblack |
| Muted | #f2f3f1whitesmoke | #0d0e0cblack |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #7dd039yellowgreen | #7dd039yellowgreen |
| Accent foreground | #1d320cblack | #1d320cblack |
| Destructive | #c92208firebrick | #e6270aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c39d0darkorchid | #8c39d0darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 5.81:1 | AA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 5.66:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 5.81:1 | AA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Digging in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 310.39);
--foreground: oklch(0.127 0.036 310.418);
--muted: oklch(0.963 0.002 130.459);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.982 0.005 310.39);
--popover-foreground: oklch(0.127 0.036 310.418);
--card: oklch(0.982 0.005 310.39);
--card-foreground: oklch(0.127 0.036 310.418);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.535 0.221 305.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.777 0.199 134.262);
--secondary-foreground: oklch(0.288 0.066 133.525);
--accent: oklch(0.777 0.199 134.262);
--accent-foreground: oklch(0.288 0.066 133.525);
--destructive: oklch(0.537 0.203 31.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.535 0.221 305.009);
--chart-1: oklch(0.535 0.221 305.009);
--chart-2: oklch(0.777 0.199 134.262);
--chart-3: oklch(0.777 0.199 134.262);
--chart-4: oklch(0.789 0.19 133.809);
--chart-5: oklch(0.534 0.229 304.614);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.021 311.728);
--foreground: oklch(0.975 0.004 310.402);
--muted: oklch(0.16 0.003 130.642);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.12 0.021 311.728);
--popover-foreground: oklch(0.975 0.004 310.402);
--card: oklch(0.12 0.021 311.728);
--card-foreground: oklch(0.975 0.004 310.402);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.535 0.221 305.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.777 0.199 134.262);
--secondary-foreground: oklch(0.288 0.066 133.525);
--accent: oklch(0.777 0.199 134.262);
--accent-foreground: oklch(0.288 0.066 133.525);
--destructive: oklch(0.595 0.226 31.175);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.535 0.221 305.009);
--chart-1: oklch(0.535 0.221 305.009);
--chart-2: oklch(0.777 0.199 134.262);
--chart-3: oklch(0.777 0.199 134.262);
--chart-4: oklch(0.789 0.19 133.809);
--chart-5: oklch(0.534 0.229 304.614);
}