Digestive is a shadcn/ui theme built around a green primary color (#858b4b) with muted light green accents (#d7d8ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#858b4b) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #121306black | #f9faf5whitesmoke |
| Card | #ffffffwhite | #040401black |
| Card foreground | #121306black | #f9faf5whitesmoke |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #121306black | #f9faf5whitesmoke |
| Primary | #858b4bolivedrab | #858b4bolivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #e7e8e3gainsboro | #2a2a27darkslategray |
| Secondary foreground | #525346darkolivegreen | #c4c4bfsilver |
| Muted | #f5f6ealinen | #141509black |
| Muted foreground | #646558dimgray | #a6a79adarkgray |
| Accent | #d7d8calightgrey | #3d3e32darkslategray |
| Accent foreground | #3f4130darkslategray | #d5d6cdlightgrey |
| Destructive | #8d3b0csaddlebrown | #ee7f3fcoral |
| Destructive foreground | #fbe0d0blanchedalmond | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #858b4bolivedrab | #858b4bolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 5.80:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 5.42:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 5.80:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 7.75:1 | AAA |
Paste this into your globals.css to use Digestive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.026 113.433);
--muted: oklch(0.968 0.016 111.326);
--muted-foreground: oklch(0.501 0.02 111.77);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.026 113.433);
--card: oklch(1 0 180);
--card-foreground: oklch(0.183 0.026 113.433);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.617 0.088 113.664);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.929 0.006 111.138);
--secondary-foreground: oklch(0.438 0.022 111.941);
--accent: oklch(0.877 0.019 111.41);
--accent-foreground: oklch(0.367 0.028 112.406);
--destructive: oklch(0.457 0.123 45.026);
--destructive-foreground: oklch(0.924 0.037 52.067);
--ring: oklch(0.617 0.088 113.664);
--chart-1: oklch(0.617 0.088 113.664);
--chart-2: oklch(0.929 0.006 111.138);
--chart-3: oklch(0.877 0.019 111.41);
--chart-4: oklch(0.95 0.004 111.098);
--chart-5: oklch(0.626 0.095 113.857);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.013 112.227);
--foreground: oklch(0.983 0.006 111.137);
--muted: oklch(0.192 0.023 113.215);
--muted-foreground: oklch(0.724 0.019 111.496);
--popover: oklch(0.102 0.013 112.227);
--popover-foreground: oklch(0.983 0.006 111.137);
--card: oklch(0.102 0.013 112.227);
--card-foreground: oklch(0.983 0.006 111.137);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.617 0.088 113.664);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.285 0.006 111.397);
--secondary-foreground: oklch(0.819 0.007 111.169);
--accent: oklch(0.358 0.019 111.985);
--accent-foreground: oklch(0.872 0.012 111.281);
--destructive: oklch(0.711 0.157 48.157);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.617 0.088 113.664);
--chart-1: oklch(0.617 0.088 113.664);
--chart-2: oklch(0.285 0.006 111.397);
--chart-3: oklch(0.358 0.019 111.985);
--chart-4: oklch(0.317 0.007 111.412);
--chart-5: oklch(0.626 0.095 113.857);
}