Virtual is a shadcn/ui theme built around a muted deep green primary color (#364431) with muted light green accents (#e2e5e0). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted deep green primary (#364431) on a green-tinted background (#071005).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #071005black |
| Foreground | #081604black | #fafbf9snow |
| Card | #f9fcf8mintcream | #091406black |
| Card foreground | #071103black | #fcfdfcwhite |
| Popover | #f9fcf8mintcream | #091406black |
| Popover foreground | #071103black | #fcfdfcwhite |
| Primary | #364431darkslategray | #364431darkslategray |
| Primary foreground | #d0dbcdlightgrey | #d0dbcdlightgrey |
| Secondary | #e2e5e0gainsboro | #1b1e1ablack |
| Secondary foreground | #475143darkslategray | #b2bab0darkgray |
| Muted | #dde8d9gainsboro | #1b2617black |
| Muted foreground | #4c554adarkslategray | #adb5aadarkgray |
| Accent | #e2e5e0gainsboro | #1b1e1ablack |
| Accent foreground | #475143darkslategray | #b2bab0darkgray |
| Destructive | #972511brown | #e63c1eorangered |
| Destructive foreground | #fbe3dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #364431darkslategray | #364431darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.32:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 8.45:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Virtual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 137.769);
--foreground: oklch(0.18 0.041 137.093);
--muted: oklch(0.918 0.023 137.806);
--muted-foreground: oklch(0.437 0.021 137.847);
--popover: oklch(0.988 0.007 137.775);
--popover-foreground: oklch(0.163 0.036 136.436);
--card: oklch(0.988 0.007 137.775);
--card-foreground: oklch(0.163 0.036 136.436);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.368 0.036 137.959);
--primary-foreground: oklch(0.878 0.022 137.806);
--secondary: oklch(0.919 0.008 137.778);
--secondary-foreground: oklch(0.42 0.025 137.871);
--accent: oklch(0.919 0.008 137.778);
--accent-foreground: oklch(0.42 0.025 137.871);
--destructive: oklch(0.448 0.154 32.299);
--destructive-foreground: oklch(0.935 0.027 29.595);
--ring: oklch(0.368 0.036 137.959);
--chart-1: oklch(0.368 0.036 137.959);
--chart-2: oklch(0.919 0.008 137.778);
--chart-3: oklch(0.919 0.008 137.778);
--chart-4: oklch(0.941 0.006 137.773);
--chart-5: oklch(0.372 0.043 138.004);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.027 136.759);
--foreground: oklch(0.986 0.002 137.766);
--muted: oklch(0.253 0.031 138.026);
--muted-foreground: oklch(0.765 0.018 137.803);
--popover: oklch(0.174 0.031 137.42);
--popover-foreground: oklch(0.993 0.001 137.765);
--card: oklch(0.174 0.031 137.42);
--card-foreground: oklch(0.993 0.001 137.765);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.368 0.036 137.959);
--primary-foreground: oklch(0.878 0.022 137.806);
--secondary: oklch(0.23 0.009 137.828);
--secondary-foreground: oklch(0.781 0.017 137.8);
--accent: oklch(0.23 0.009 137.828);
--accent-foreground: oklch(0.781 0.017 137.8);
--destructive: oklch(0.611 0.211 32.278);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.368 0.036 137.959);
--chart-1: oklch(0.368 0.036 137.959);
--chart-2: oklch(0.23 0.009 137.828);
--chart-3: oklch(0.23 0.009 137.828);
--chart-4: oklch(0.264 0.011 137.833);
--chart-5: oklch(0.372 0.043 138.004);
}