Vivid is a shadcn/ui theme built around a neutral gray primary color (#9b968c) with neutral gray accents (#8c929b). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#9b968c) on a neutral background (#080603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080603black |
| Foreground | #040301black | #fdfdfcwhite |
| Card | #ffffffwhite | #080603black |
| Card foreground | #040301black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080603black |
| Popover foreground | #040301black | #fdfdfcwhite |
| Primary | #9b968crosybrown | #9b968crosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #8c929blightslategray | #8c929blightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eaeaeclavender | #131415black |
| Muted foreground | #464b53darkslategray | #acb1b9darkgray |
| Accent | #8c929blightslategray | #8c929blightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #a83e00saddlebrown | #ff7b2ecoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9b968crosybrown | #9b968crosybrown |
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.12:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.54:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 8.10:1 | AAA |
Paste this into your globals.css to use Vivid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.014 88.221);
--muted: oklch(0.938 0.002 259.936);
--muted-foreground: oklch(0.411 0.016 259.934);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.014 88.221);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.014 88.221);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.674 0.015 79.879);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.015 259.945);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.015 259.945);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.506 0.152 42.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.015 79.879);
--chart-1: oklch(0.674 0.015 79.879);
--chart-2: oklch(0.659 0.015 259.945);
--chart-3: oklch(0.659 0.015 259.945);
--chart-4: oklch(0.684 0.014 259.946);
--chart-5: oklch(0.678 0.021 79.841);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 85.7);
--foreground: oklch(0.993 0.001 79.932);
--muted: oklch(0.192 0.003 259.945);
--muted-foreground: oklch(0.758 0.014 259.946);
--popover: oklch(0.121 0.012 85.7);
--popover-foreground: oklch(0.993 0.001 79.932);
--card: oklch(0.121 0.012 85.7);
--card-foreground: oklch(0.993 0.001 79.932);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.015 79.879);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.015 259.945);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.015 259.945);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.725 0.182 46.465);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.674 0.015 79.879);
--chart-1: oklch(0.674 0.015 79.879);
--chart-2: oklch(0.659 0.015 259.945);
--chart-3: oklch(0.659 0.015 259.945);
--chart-4: oklch(0.684 0.014 259.946);
--chart-5: oklch(0.678 0.021 79.841);
}