Shallow is a shadcn/ui theme built around a deep green primary color (#347321) with muted light green accents (#c6cfc4). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the deep green primary (#347321) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #040803black |
| Foreground | #050d02black | #f6f9f5whitesmoke |
| Card | #f5fcf3honeydew | #060b04black |
| Card foreground | #030901black | #f9fbf8mintcream |
| Popover | #f5fcf3honeydew | #060b04black |
| Popover foreground | #030901black | #f9fbf8mintcream |
| Primary | #347321forestgreen | #347321forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8dad8gainsboro | #1c231ablack |
| Secondary foreground | #3f423edarkslategray | #b2c2aesilver |
| Muted | #ebf1eawhitesmoke | #10150eblack |
| Muted foreground | #596855dimgray | #9caa97darkgray |
| Accent | #c6cfc4silver | #2f412adarkslategray |
| Accent foreground | #2e362bdarkslategray | #c9d9c4lightgrey |
| Destructive | #942c10saddlebrown | #d94117chocolate |
| Destructive foreground | #fbe1damistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #347321forestgreen | #347321forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Shallow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 138.34);
--foreground: oklch(0.146 0.034 136.245);
--muted: oklch(0.951 0.011 138.342);
--muted-foreground: oklch(0.499 0.034 138.411);
--popover: oklch(0.983 0.015 138.346);
--popover-foreground: oklch(0.127 0.029 136.039);
--card: oklch(0.983 0.015 138.346);
--card-foreground: oklch(0.127 0.029 136.039);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.497 0.133 139.32);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.004 138.334);
--secondary-foreground: oklch(0.374 0.008 138.351);
--accent: oklch(0.845 0.019 138.354);
--accent-foreground: oklch(0.321 0.022 138.409);
--destructive: oklch(0.449 0.144 35.341);
--destructive-foreground: oklch(0.93 0.03 35.945);
--ring: oklch(0.497 0.133 139.32);
--chart-1: oklch(0.497 0.133 139.32);
--chart-2: oklch(0.886 0.004 138.334);
--chart-3: oklch(0.845 0.019 138.354);
--chart-4: oklch(0.909 0.003 138.333);
--chart-5: oklch(0.502 0.138 139.417);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.019 136.833);
--foreground: oklch(0.98 0.007 138.337);
--muted: oklch(0.189 0.016 138.438);
--muted-foreground: oklch(0.721 0.031 138.378);
--popover: oklch(0.141 0.022 136.882);
--popover-foreground: oklch(0.987 0.004 138.335);
--card: oklch(0.141 0.022 136.882);
--card-foreground: oklch(0.987 0.004 138.335);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.497 0.133 139.32);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.246 0.019 138.42);
--secondary-foreground: oklch(0.795 0.032 138.374);
--accent: oklch(0.354 0.046 138.523);
--accent-foreground: oklch(0.868 0.034 138.372);
--destructive: oklch(0.592 0.195 35.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.133 139.32);
--chart-1: oklch(0.497 0.133 139.32);
--chart-2: oklch(0.246 0.019 138.42);
--chart-3: oklch(0.354 0.046 138.523);
--chart-4: oklch(0.28 0.022 138.427);
--chart-5: oklch(0.502 0.138 139.417);
}