Visit is a shadcn/ui theme built around a green primary color (#2fb01c) with green accents (#1cb052). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#2fb01c) on a green-tinted background (#080e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080e07black |
| Foreground | #040d02black | #f9fbf9mintcream |
| Card | #f8fcf8mintcream | #0a1109black |
| Card foreground | #020902black | #fcfdfcwhite |
| Popover | #f8fcf8mintcream | #0a1109black |
| Popover foreground | #020902black | #fcfdfcwhite |
| Primary | #2fb01climegreen | #2fb01climegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7ab01colivedrab | #7ab01colivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #dfe2d9gainsboro | #22261dblack |
| Muted foreground | #5a5d56dimgray | #a7a9a2darkgray |
| Accent | #1cb052seagreen | #1cb052seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #923807saddlebrown | #db530achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2fb01climegreen | #2fb01climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 2.84:1 | Fail |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 2.83:1 | Fail |
| Destructive | 7.53:1 | AAA |
| Text on background | 18.81:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 2.84:1 | Fail |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 2.83:1 | Fail |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Visit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 141.582);
--foreground: oklch(0.144 0.033 139.51);
--muted: oklch(0.909 0.013 123.147);
--muted-foreground: oklch(0.473 0.012 123.309);
--popover: oklch(0.987 0.007 141.571);
--popover-foreground: oklch(0.125 0.028 139.426);
--card: oklch(0.987 0.007 141.571);
--card-foreground: oklch(0.125 0.028 139.426);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.664 0.209 141.442);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.695 0.176 129.04);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.665 0.178 149.384);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.461 0.133 42.562);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.209 141.442);
--chart-1: oklch(0.664 0.209 141.442);
--chart-2: oklch(0.695 0.176 129.04);
--chart-3: oklch(0.665 0.178 149.384);
--chart-4: oklch(0.733 0.186 129.089);
--chart-5: oklch(0.672 0.214 141.5);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.018 140.754);
--foreground: oklch(0.986 0.004 141.582);
--muted: oklch(0.261 0.017 123.976);
--muted-foreground: oklch(0.732 0.011 123.149);
--popover: oklch(0.167 0.021 141.077);
--popover-foreground: oklch(0.993 0.002 141.587);
--card: oklch(0.167 0.021 141.077);
--card-foreground: oklch(0.993 0.002 141.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.664 0.209 141.442);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.695 0.176 129.04);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.665 0.178 149.384);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.617 0.184 41.64);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.209 141.442);
--chart-1: oklch(0.664 0.209 141.442);
--chart-2: oklch(0.695 0.176 129.04);
--chart-3: oklch(0.665 0.178 149.384);
--chart-4: oklch(0.733 0.186 129.089);
--chart-5: oklch(0.672 0.214 141.5);
}