Visor is a shadcn/ui theme built around a muted green primary color (#66a861) with neutral gray accents (#e2e4e2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#66a861) on a green-tinted background (#050a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050a05black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #fcfdfcwhite | #050a05black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #fcfdfcwhite | #050a05black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #66a861mediumseagreen | #66a861mediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #e2e4e2gainsboro | #2f372fdarkslategray |
| Secondary foreground | #484c48darkslategray | #c8d0c8lightgrey |
| Muted | #d7e0d6gainsboro | #1f291fblack |
| Muted foreground | #565856dimgray | #a8a9a7darkgray |
| Accent | #e2e4e2gainsboro | #2f372fdarkslategray |
| Accent foreground | #484c48darkslategray | #c8d0c8lightgrey |
| Destructive | #bd3a0afirebrick | #f34e12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #66a861mediumseagreen | #66a861mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.31:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 5.57:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Visor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 143.621);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.017 143.537);
--muted-foreground: oklch(0.457 0.003 143.596);
--popover: oklch(0.993 0.003 143.621);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.003 143.621);
--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.67 0.122 142.636);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.917 0.003 143.619);
--secondary-foreground: oklch(0.412 0.009 143.519);
--accent: oklch(0.917 0.003 143.619);
--accent-foreground: oklch(0.412 0.009 143.519);
--destructive: oklch(0.537 0.175 36.823);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.67 0.122 142.636);
--chart-1: oklch(0.67 0.122 142.636);
--chart-2: oklch(0.917 0.003 143.619);
--chart-3: oklch(0.917 0.003 143.619);
--chart-4: oklch(0.939 0.002 143.624);
--chart-5: oklch(0.677 0.133 142.558);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 142.548);
--foreground: oklch(0.986 0.002 143.623);
--muted: oklch(0.267 0.022 143.181);
--muted-foreground: oklch(0.734 0.003 143.614);
--popover: oklch(0.138 0.017 142.548);
--popover-foreground: oklch(0.986 0.002 143.623);
--card: oklch(0.138 0.017 142.548);
--card-foreground: oklch(0.986 0.002 143.623);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.67 0.122 142.636);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.327 0.018 143.349);
--secondary-foreground: oklch(0.85 0.014 143.549);
--accent: oklch(0.327 0.018 143.349);
--accent-foreground: oklch(0.85 0.014 143.549);
--destructive: oklch(0.648 0.21 36.946);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.67 0.122 142.636);
--chart-1: oklch(0.67 0.122 142.636);
--chart-2: oklch(0.327 0.018 143.349);
--chart-3: oklch(0.327 0.018 143.349);
--chart-4: oklch(0.358 0.02 143.341);
--chart-5: oklch(0.677 0.133 142.558);
}