Vivid is a shadcn/ui theme built around a muted yellow primary color (#9d9b80) with muted light yellow accents (#dbd9bd). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted yellow primary (#9d9b80) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #080802black | #fbfbf8snow |
| Card | #fefefbwhite | #070703black |
| Card foreground | #080802black | #fbfbf8snow |
| Popover | #fefefbwhite | #070703black |
| Popover foreground | #080802black | #fbfbf8snow |
| Primary | #9d9b80rosybrown | #9d9b80rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #e0dfd1gainsboro | #1d1d16black |
| Secondary foreground | #4d4b33darkolivegreen | #bebca7silver |
| Muted | #f1f1efwhitesmoke | #10100eblack |
| Muted foreground | #57574cdarkolivegreen | #b3b2a8darkgray |
| Accent | #dbd9bdlightgrey | #363421darkslategray |
| Accent foreground | #424024darkolivegreen | #d2d1b6silver |
| Destructive | #5e2008maroon | #e24d12chocolate |
| Destructive foreground | #f7b9a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9d9b80rosybrown | #9d9b80rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 7.33:1 | AAA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Vivid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 103.177);
--foreground: oklch(0.13 0.017 105.934);
--muted: oklch(0.957 0.003 103.153);
--muted-foreground: oklch(0.453 0.017 103.71);
--popover: oklch(0.996 0.004 103.177);
--popover-foreground: oklch(0.13 0.017 105.934);
--card: oklch(0.996 0.004 103.177);
--card-foreground: oklch(0.13 0.017 105.934);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.039 103.993);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.902 0.019 103.457);
--secondary-foreground: oklch(0.407 0.037 104.483);
--accent: oklch(0.879 0.037 103.782);
--accent-foreground: oklch(0.365 0.043 104.804);
--destructive: oklch(0.336 0.097 39.638);
--destructive-foreground: oklch(0.837 0.08 42.535);
--ring: oklch(0.685 0.039 103.993);
--chart-1: oklch(0.685 0.039 103.993);
--chart-2: oklch(0.902 0.019 103.457);
--chart-3: oklch(0.879 0.037 103.782);
--chart-4: oklch(0.922 0.015 103.381);
--chart-5: oklch(0.694 0.047 104.158);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.012 105.218);
--foreground: oklch(0.988 0.004 103.173);
--muted: oklch(0.173 0.004 103.49);
--muted-foreground: oklch(0.762 0.015 103.43);
--popover: oklch(0.126 0.012 105.218);
--popover-foreground: oklch(0.988 0.004 103.173);
--card: oklch(0.126 0.012 105.218);
--card-foreground: oklch(0.988 0.004 103.173);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.039 103.993);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.228 0.013 104.023);
--secondary-foreground: oklch(0.792 0.029 103.709);
--accent: oklch(0.322 0.032 104.582);
--accent-foreground: oklch(0.854 0.035 103.774);
--destructive: oklch(0.622 0.195 38.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.039 103.993);
--chart-1: oklch(0.685 0.039 103.993);
--chart-2: oklch(0.228 0.013 104.023);
--chart-3: oklch(0.322 0.032 104.582);
--chart-4: oklch(0.264 0.017 104.09);
--chart-5: oklch(0.694 0.047 104.158);
}