Vivacious is a shadcn/ui theme built around a deep blue primary color (#0b243c) with near-white accents (#e7e8e9). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#0b243c) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #010304black |
| Foreground | #03080cblack | #fcfcfdwhite |
| Card | #f7fafdghostwhite | #020508black |
| Card foreground | #020508black | #ffffffwhite |
| Popover | #f7fafdghostwhite | #020508black |
| Popover foreground | #020508black | #ffffffwhite |
| Primary | #0b243cmidnightblue | #0b243cmidnightblue |
| Primary foreground | #8fbdeaskyblue | #8fbdeaskyblue |
| Secondary | #e7e8e9lavender | #12171cblack |
| Secondary foreground | #4a4f54darkslategray | #a0b0c0darkgray |
| Muted | #e9edf1lavender | #0e1216black |
| Muted foreground | #3e454cdarkslategray | #b3bac1silver |
| Accent | #e7e8e9lavender | #12171cblack |
| Accent foreground | #4a4f54darkslategray | #a0b0c0darkgray |
| Destructive | #730b07maroon | #f2413atomato |
| Destructive foreground | #fab5b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b243cmidnightblue | #0b243cmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 8.27:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 9.60:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Vivacious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 247.847);
--foreground: oklch(0.128 0.016 239.847);
--muted: oklch(0.945 0.007 247.9);
--muted-foreground: oklch(0.386 0.015 248.211);
--popover: oklch(0.983 0.005 247.874);
--popover-foreground: oklch(0.112 0.014 239.035);
--card: oklch(0.983 0.005 247.874);
--card-foreground: oklch(0.112 0.014 239.035);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.254 0.056 250.967);
--primary-foreground: oklch(0.782 0.082 248.913);
--secondary: oklch(0.93 0.002 247.848);
--secondary-foreground: oklch(0.425 0.01 248.063);
--accent: oklch(0.93 0.002 247.848);
--accent-foreground: oklch(0.425 0.01 248.063);
--destructive: oklch(0.356 0.137 28.898);
--destructive-foreground: oklch(0.836 0.081 21.172);
--ring: oklch(0.254 0.056 250.967);
--chart-1: oklch(0.254 0.056 250.967);
--chart-2: oklch(0.93 0.002 247.848);
--chart-3: oklch(0.93 0.002 247.848);
--chart-4: oklch(0.954 0.002 247.839);
--chart-5: oklch(0.254 0.058 251.191);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.01 239.608);
--foreground: oklch(0.992 0.002 247.838);
--muted: oklch(0.179 0.011 248.424);
--muted-foreground: oklch(0.786 0.012 247.986);
--popover: oklch(0.112 0.013 239.608);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.112 0.013 239.608);
--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.254 0.056 250.967);
--primary-foreground: oklch(0.782 0.082 248.913);
--secondary: oklch(0.202 0.012 248.402);
--secondary-foreground: oklch(0.75 0.029 248.212);
--accent: oklch(0.202 0.012 248.402);
--accent-foreground: oklch(0.75 0.029 248.212);
--destructive: oklch(0.638 0.215 27.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.254 0.056 250.967);
--chart-1: oklch(0.254 0.056 250.967);
--chart-2: oklch(0.202 0.012 248.402);
--chart-3: oklch(0.202 0.012 248.402);
--chart-4: oklch(0.234 0.015 248.463);
--chart-5: oklch(0.254 0.058 251.191);
}