Vivid is a shadcn/ui theme built around a red primary color (#da494e) with muted red accents (#c2aeae). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#da494e) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080303black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0b0404black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #080303black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #da494eindianred | #da494eindianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d1cccclightgrey | #222020black |
| Secondary foreground | #393233darkslategray | #bdb7b8silver |
| Muted | #e7dfdfgainsboro | #201818black |
| Muted foreground | #5a5858dimgray | #a7a5a5darkgray |
| Accent | #c2aeaesilver | #3a3131darkslategray |
| Accent foreground | #231a1bblack | #d3cacalightgrey |
| Destructive | #a80b0bdarkred | #e60f0fred |
| Destructive foreground | #fde7e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #da494eindianred | #da494eindianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 8.20:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.72:1 | AA |
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 0 0);
--muted: oklch(0.91 0.009 14.967);
--muted-foreground: oklch(0.463 0.002 14.883);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.608 0.181 22.462);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.849 0.006 14.933);
--secondary-foreground: oklch(0.325 0.009 15.327);
--accent: oklch(0.767 0.023 15.364);
--accent-foreground: oklch(0.23 0.014 15.94);
--destructive: oklch(0.463 0.184 28.581);
--destructive-foreground: oklch(0.946 0.025 17.595);
--ring: oklch(0.608 0.181 22.462);
--chart-1: oklch(0.608 0.181 22.462);
--chart-2: oklch(0.849 0.006 14.933);
--chart-3: oklch(0.767 0.023 15.364);
--chart-4: oklch(0.873 0.005 14.906);
--chart-5: oklch(0.61 0.188 22.895);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 16.919);
--foreground: oklch(0.991 0.002 14.828);
--muted: oklch(0.219 0.013 15.905);
--muted-foreground: oklch(0.723 0.002 14.843);
--popover: oklch(0.106 0.015 16.919);
--popover-foreground: oklch(0.991 0.002 14.828);
--card: oklch(0.121 0.017 16.947);
--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.608 0.181 22.462);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.246 0.004 15.1);
--secondary-foreground: oklch(0.785 0.006 14.939);
--accent: oklch(0.323 0.014 15.619);
--accent-foreground: oklch(0.847 0.01 15.006);
--destructive: oklch(0.585 0.235 28.767);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.608 0.181 22.462);
--chart-1: oklch(0.608 0.181 22.462);
--chart-2: oklch(0.246 0.004 15.1);
--chart-3: oklch(0.323 0.014 15.619);
--chart-4: oklch(0.277 0.005 15.119);
--chart-5: oklch(0.61 0.188 22.895);
}