Vitro is a shadcn/ui theme built around a green primary color (#83ce87) with muted light green accents (#c4d9c5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#83ce87) on a green-tinted background (#050a06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a06black |
| Foreground | #030c03black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #070d07black |
| Card foreground | #020802black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050a06black |
| Popover foreground | #030c03black | #f9fbf9mintcream |
| Primary | #83ce87darkseagreen | #83ce87darkseagreen |
| Primary foreground | #091609black | #091609black |
| Secondary | #dae2dagainsboro | #262626darkslategray |
| Secondary foreground | #3c4e3ddarkslategray | #bfbfbfsilver |
| Muted | #d7ead8gainsboro | #281515black |
| Muted foreground | #414941darkslategray | #beb6b6silver |
| Accent | #c4d9c5lightgrey | #413535darkslategray |
| Accent foreground | #2a412bdarkslategray | #d8cfcflightgrey |
| Destructive | #781308maroon | #f0260forangered |
| Destructive foreground | #fabeb7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #83ce87darkseagreen | #83ce87darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.82:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 9.82:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Vitro in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.029 145.409);
--muted: oklch(0.917 0.03 146.725);
--muted-foreground: oklch(0.395 0.017 146.633);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.029 145.409);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.025 145.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.783 0.124 145.412);
--primary-foreground: oklch(0.183 0.031 145.326);
--secondary: oklch(0.904 0.014 146.89);
--secondary-foreground: oklch(0.402 0.036 146.162);
--accent: oklch(0.864 0.034 146.663);
--accent-foreground: oklch(0.349 0.046 145.701);
--destructive: oklch(0.371 0.136 30.561);
--destructive-foreground: oklch(0.854 0.071 25.883);
--ring: oklch(0.783 0.124 145.412);
--chart-1: oklch(0.783 0.124 145.412);
--chart-2: oklch(0.904 0.014 146.89);
--chart-3: oklch(0.864 0.034 146.663);
--chart-4: oklch(0.927 0.011 146.928);
--chart-5: oklch(0.788 0.132 145.306);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.015 146.241);
--foreground: oklch(0.986 0.004 146.999);
--muted: oklch(0.223 0.03 19.73);
--muted-foreground: oklch(0.783 0.009 17.357);
--popover: oklch(0.137 0.015 146.241);
--popover-foreground: oklch(0.986 0.004 146.999);
--card: oklch(0.151 0.017 146.134);
--card-foreground: oklch(0.993 0.002 147.019);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.783 0.124 145.412);
--primary-foreground: oklch(0.183 0.031 145.326);
--secondary: oklch(0.27 0 180);
--secondary-foreground: oklch(0.805 0 169.695);
--accent: oklch(0.341 0.017 18.008);
--accent-foreground: oklch(0.862 0.01 17.343);
--destructive: oklch(0.611 0.234 30.458);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.783 0.124 145.412);
--chart-1: oklch(0.783 0.124 145.412);
--chart-2: oklch(0.27 0 180);
--chart-3: oklch(0.341 0.017 18.008);
--chart-4: oklch(0.301 0 189.462);
--chart-5: oklch(0.788 0.132 145.306);
}