Vivid is a shadcn/ui theme built around a muted green primary color (#82ba99) with muted pink accents (#ba82a3). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted green primary (#82ba99) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #000000black |
| Foreground | #020805black | #fbfdfcwhite |
| Card | #f4fbf7mintcream | #030303black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #f8fcfamintcream | #000000black |
| Popover foreground | #020805black | #fbfdfcwhite |
| Primary | #82ba99darkseagreen | #82ba99darkseagreen |
| Primary foreground | #040705black | #040705black |
| Secondary | #ba82a3rosybrown | #ba82a3rosybrown |
| Secondary foreground | #070405black | #070405black |
| Muted | #e6d1ddgainsboro | #2e1925black |
| Muted foreground | #654e5bdimgray | #b19aa8darkgray |
| Accent | #ba82a3rosybrown | #ba82a3rosybrown |
| Accent foreground | #070405black | #070405black |
| Destructive | #c41d03firebrick | #fb2909orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #82ba99darkseagreen | #82ba99darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 5.19:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 5.96:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Vivid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 160.873);
--foreground: oklch(0.124 0.018 160.943);
--muted: oklch(0.881 0.028 341.738);
--muted-foreground: oklch(0.451 0.037 342.839);
--popover: oklch(0.987 0.006 160.873);
--popover-foreground: oklch(0.124 0.018 160.943);
--card: oklch(0.981 0.009 160.802);
--card-foreground: oklch(0.098 0.014 160.943);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.741 0.076 158.32);
--primary-foreground: oklch(0.12 0.009 160.976);
--secondary: oklch(0.673 0.082 343.657);
--secondary-foreground: oklch(0.111 0.01 341.053);
--accent: oklch(0.673 0.082 343.657);
--accent-foreground: oklch(0.111 0.01 341.053);
--destructive: oklch(0.525 0.202 31.161);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.741 0.076 158.32);
--chart-1: oklch(0.741 0.076 158.32);
--chart-2: oklch(0.673 0.082 343.657);
--chart-3: oklch(0.673 0.082 343.657);
--chart-4: oklch(0.699 0.074 343.348);
--chart-5: oklch(0.746 0.083 158.041);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.003 160.952);
--muted: oklch(0.248 0.038 344.375);
--muted-foreground: oklch(0.711 0.033 342.066);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.003 160.952);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.741 0.076 158.32);
--primary-foreground: oklch(0.12 0.009 160.976);
--secondary: oklch(0.673 0.082 343.657);
--secondary-foreground: oklch(0.111 0.01 341.053);
--accent: oklch(0.673 0.082 343.657);
--accent-foreground: oklch(0.111 0.01 341.053);
--destructive: oklch(0.634 0.243 31.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.741 0.076 158.32);
--chart-1: oklch(0.741 0.076 158.32);
--chart-2: oklch(0.673 0.082 343.657);
--chart-3: oklch(0.673 0.082 343.657);
--chart-4: oklch(0.699 0.074 343.348);
--chart-5: oklch(0.746 0.083 158.041);
}