Gherkin is a shadcn/ui theme built around a vivid green primary color (#0ebe5a) with vivid teal accents (#0ebeb2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#0ebe5a) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020805black |
| Foreground | #000000black | #f5faf7whitesmoke |
| Card | #f8fcfamintcream | #030c07black |
| Card foreground | #000000black | #f8fcfamintcream |
| Popover | #f8fcfamintcream | #030c07black |
| Popover foreground | #000000black | #f8fcfamintcream |
| Primary | #0ebe5amediumseagreen | #0ebe5amediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1abe0elimegreen | #1abe0elimegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff1eewhitesmoke | #0e110eblack |
| Muted foreground | #5c675bdimgray | #99a498darkgray |
| Accent | #0ebeb2lightseagreen | #0ebeb2lightseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #d63605orangered | #fa5a29tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0ebe5amediumseagreen | #0ebe5amediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 2.46:1 | Fail |
| Secondary button | 2.50:1 | Fail |
| Muted text | 5.21:1 | AA |
| Accent | 9.00:1 | AAA |
| Destructive | 4.78:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 2.46:1 | Fail |
| Secondary button | 2.50:1 | Fail |
| Muted text | 7.35:1 | AAA |
| Accent | 9.00:1 | AAA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Gherkin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 161.749);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.005 143.61);
--muted-foreground: oklch(0.5 0.023 143.395);
--popover: oklch(0.987 0.005 161.689);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 161.689);
--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.701 0.189 150.231);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.696 0.231 142.218);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.722 0.124 186.952);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.576 0.202 34.493);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.701 0.189 150.231);
--chart-1: oklch(0.701 0.189 150.231);
--chart-2: oklch(0.696 0.231 142.218);
--chart-3: oklch(0.722 0.124 186.952);
--chart-4: oklch(0.734 0.244 142.224);
--chart-5: oklch(0.709 0.194 149.921);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.018 161.788);
--foreground: oklch(0.98 0.007 161.647);
--muted: oklch(0.172 0.007 143.42);
--muted-foreground: oklch(0.706 0.021 143.48);
--popover: oklch(0.142 0.02 161.486);
--popover-foreground: oklch(0.987 0.004 161.702);
--card: oklch(0.142 0.02 161.486);
--card-foreground: oklch(0.987 0.004 161.702);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.701 0.189 150.231);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.696 0.231 142.218);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.722 0.124 186.952);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.674 0.204 36.581);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.701 0.189 150.231);
--chart-1: oklch(0.701 0.189 150.231);
--chart-2: oklch(0.696 0.231 142.218);
--chart-3: oklch(0.722 0.124 186.952);
--chart-4: oklch(0.734 0.244 142.224);
--chart-5: oklch(0.709 0.194 149.921);
}