Epoch is a shadcn/ui theme built around a green primary color (#36ba1c) with green accents (#1cba51). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the green primary (#36ba1c) on a neutral background (#030803).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf6mintcream | #030803black |
| Foreground | #061004black | #f9fbf8mintcream |
| Card | #f8fdf6mintcream | #030803black |
| Card foreground | #061004black | #f9fbf8mintcream |
| Popover | #f8fdf6mintcream | #030803black |
| Popover foreground | #061004black | #f9fbf8mintcream |
| Primary | #36ba1climegreen | #36ba1climegreen |
| Primary foreground | #030901black | #030901black |
| Secondary | #86ba1cyellowgreen | #86ba1cyellowgreen |
| Secondary foreground | #060901black | #060901black |
| Muted | #f2f6ealinen | #111509black |
| Muted foreground | #5f615cdimgray | #a2a39edarkgray |
| Accent | #1cba51limegreen | #1cba51limegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d10e00red | #ff3729orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #36ba1climegreen | #36ba1climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.66:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 2.55:1 | Fail |
| Destructive | 5.56:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.66:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 2.55:1 | Fail |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Epoch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.011 140.514);
--foreground: oklch(0.159 0.031 139.13);
--muted: oklch(0.966 0.016 121.765);
--muted-foreground: oklch(0.49 0.009 121.795);
--popover: oklch(0.989 0.011 140.514);
--popover-foreground: oklch(0.159 0.031 139.13);
--card: oklch(0.989 0.011 140.514);
--card-foreground: oklch(0.159 0.031 139.13);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.217 141.061);
--primary-foreground: oklch(0.126 0.029 138.247);
--secondary: oklch(0.726 0.182 127.771);
--secondary-foreground: oklch(0.132 0.025 121.072);
--accent: oklch(0.692 0.192 148.253);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.544 0.219 29.922);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.217 141.061);
--chart-1: oklch(0.692 0.217 141.061);
--chart-2: oklch(0.726 0.182 127.771);
--chart-3: oklch(0.692 0.192 148.253);
--chart-4: oklch(0.764 0.192 127.816);
--chart-5: oklch(0.7 0.223 141.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.019 139.045);
--foreground: oklch(0.986 0.005 140.524);
--muted: oklch(0.189 0.024 123.63);
--muted-foreground: oklch(0.714 0.008 121.681);
--popover: oklch(0.122 0.019 139.045);
--popover-foreground: oklch(0.986 0.005 140.524);
--card: oklch(0.122 0.019 139.045);
--card-foreground: oklch(0.986 0.005 140.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.692 0.217 141.061);
--primary-foreground: oklch(0.126 0.029 138.247);
--secondary: oklch(0.726 0.182 127.771);
--secondary-foreground: oklch(0.132 0.025 121.072);
--accent: oklch(0.692 0.192 148.253);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.651 0.236 29.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.217 141.061);
--chart-1: oklch(0.692 0.217 141.061);
--chart-2: oklch(0.726 0.182 127.771);
--chart-3: oklch(0.692 0.192 148.253);
--chart-4: oklch(0.764 0.192 127.816);
--chart-5: oklch(0.7 0.223 141.142);
}