Vine is a shadcn/ui theme built around a muted green primary color (#93a781) with muted light green accents (#dbe1d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#93a781) on a green-tinted background (#080a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080a05black |
| Foreground | #020501black | #f7faf4whitesmoke |
| Card | #ffffffwhite | #080a05black |
| Card foreground | #020501black | #f7faf4whitesmoke |
| Popover | #ffffffwhite | #080a05black |
| Popover foreground | #020501black | #f7faf4whitesmoke |
| Primary | #93a781darkseagreen | #93a781darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #dbe1d6gainsboro | #2b3224darkslategray |
| Secondary foreground | #424d38darkslategray | #c4cebbsilver |
| Muted | #e8e9e7linen | #171816black |
| Muted foreground | #657557dimgray | #98a88adarkseagreen |
| Accent | #dbe1d6gainsboro | #2b3224darkslategray |
| Accent foreground | #424d38darkslategray | #c4cebbsilver |
| Destructive | #c01711firebrick | #d81913crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93a781darkseagreen | #93a781darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 4.07:1 | AA Large |
| Accent | 6.70:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 5.16:1 | AA |
Paste this into your globals.css to use Vine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.022 127.495);
--muted: oklch(0.933 0.003 129.163);
--muted-foreground: oklch(0.542 0.05 130.156);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.022 127.495);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.022 127.495);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.703 0.059 130.057);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.902 0.017 129.322);
--secondary-foreground: oklch(0.404 0.037 130.157);
--accent: oklch(0.902 0.017 129.322);
--accent-foreground: oklch(0.404 0.037 130.157);
--destructive: oklch(0.516 0.201 28.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.059 130.057);
--chart-1: oklch(0.703 0.059 130.057);
--chart-2: oklch(0.902 0.017 129.322);
--chart-3: oklch(0.902 0.017 129.322);
--chart-4: oklch(0.923 0.013 129.275);
--chart-5: oklch(0.71 0.068 130.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 128.367);
--foreground: oklch(0.982 0.009 129.22);
--muted: oklch(0.207 0.005 129.373);
--muted-foreground: oklch(0.712 0.047 129.846);
--popover: oklch(0.14 0.014 128.367);
--popover-foreground: oklch(0.982 0.009 129.22);
--card: oklch(0.14 0.014 128.367);
--card-foreground: oklch(0.982 0.009 129.22);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.703 0.059 130.057);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.307 0.026 130.071);
--secondary-foreground: oklch(0.838 0.028 129.48);
--accent: oklch(0.307 0.026 130.071);
--accent-foreground: oklch(0.838 0.028 129.48);
--destructive: oklch(0.562 0.219 29.029);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.059 130.057);
--chart-1: oklch(0.703 0.059 130.057);
--chart-2: oklch(0.307 0.026 130.071);
--chart-3: oklch(0.307 0.026 130.071);
--chart-4: oklch(0.34 0.03 130.107);
--chart-5: oklch(0.71 0.068 130.21);
}