Visitor is a shadcn/ui theme built around a vivid yellow primary color (#f4f448) with vivid indigo accents (#4848f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f4f448) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #171703black | #f9f9f5whitesmoke |
| Card | #ffffffwhite | #070703black |
| Card foreground | #171703black | #f9f9f5whitesmoke |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #171703black | #f9f9f5whitesmoke |
| Primary | #f4f448khaki | #f4f448khaki |
| Primary foreground | #0a0a01black | #0a0a01black |
| Secondary | #4848f4royalblue | #4848f4royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dcdceflavender | #101023black |
| Muted foreground | #54545fdimgray | #a0a0abdarkgray |
| Accent | #4848f4royalblue | #4848f4royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b8360ffirebrick | #ec4613orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f448khaki | #f4f448khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.09:1 | AAA |
| Text on card | 18.09:1 | AAA |
| Primary button | 16.97:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 5.86:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 16.97:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 5.98:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Visitor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.197 0.037 109.333);
--muted: oklch(0.9 0.026 285.874);
--muted-foreground: oklch(0.449 0.017 285.681);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.197 0.037 109.333);
--card: oklch(1 0 180);
--card-foreground: oklch(0.197 0.037 109.333);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.939 0.183 109.459);
--primary-foreground: oklch(0.139 0.028 109.514);
--secondary: oklch(0.523 0.248 273.709);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.523 0.248 273.709);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.525 0.172 35.659);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.183 109.459);
--chart-1: oklch(0.939 0.183 109.459);
--chart-2: oklch(0.523 0.248 273.709);
--chart-3: oklch(0.523 0.248 273.709);
--chart-4: oklch(0.554 0.23 275.831);
--chart-5: oklch(0.948 0.187 109.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 108.11);
--foreground: oklch(0.982 0.006 106.503);
--muted: oklch(0.185 0.038 282.016);
--muted-foreground: oklch(0.71 0.015 286.001);
--popover: oklch(0.127 0.013 108.11);
--popover-foreground: oklch(0.982 0.006 106.503);
--card: oklch(0.127 0.013 108.11);
--card-foreground: oklch(0.982 0.006 106.503);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.939 0.183 109.459);
--primary-foreground: oklch(0.139 0.028 109.514);
--secondary: oklch(0.523 0.248 273.709);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.523 0.248 273.709);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.21 35.416);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.183 109.459);
--chart-1: oklch(0.939 0.183 109.459);
--chart-2: oklch(0.523 0.248 273.709);
--chart-3: oklch(0.523 0.248 273.709);
--chart-4: oklch(0.554 0.23 275.831);
--chart-5: oklch(0.948 0.187 109.491);
}