Vivacious is a shadcn/ui theme built around a neutral gray primary color (#8c8287) with neutral gray accents (#8c8283). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the neutral gray primary (#8c8287) on a neutral background (#080305).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #080305black |
| Foreground | #0c0308black | #fdfcfcsnow |
| Card | #fcf8fasnow | #080305black |
| Card foreground | #0c0308black | #fdfcfcsnow |
| Popover | #fcf8fasnow | #080305black |
| Popover foreground | #0c0308black | #fdfcfcsnow |
| Primary | #8c8287gray | #8c8287gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8c828cgray | #8c828cgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f7eef7whitesmoke | #110811black |
| Muted foreground | #4f3b4fdarkslategray | #c4b0c4silver |
| Accent | #8c8283gray | #8c8283gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #61170amaroon | #ed5e45tomato |
| Destructive foreground | #f6b3a7lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c8287gray | #8c8287gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 5.70:1 | AA |
| Muted text | 8.92:1 | AAA |
| Accent | 5.65:1 | AA |
| Destructive | 7.27:1 | AAA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 5.70:1 | AA |
| Muted text | 9.69:1 | AAA |
| Accent | 5.65:1 | AA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Vivacious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 344.433);
--foreground: oklch(0.122 0.024 344.447);
--muted: oklch(0.958 0.015 325.212);
--muted-foreground: oklch(0.381 0.044 325.854);
--popover: oklch(0.982 0.006 344.433);
--popover-foreground: oklch(0.122 0.024 344.447);
--card: oklch(0.982 0.006 344.433);
--card-foreground: oklch(0.122 0.024 344.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.618 0.014 344.842);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.619 0.018 325.301);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.012 16.31);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.33 0.109 32.366);
--destructive-foreground: oklch(0.826 0.081 30.14);
--ring: oklch(0.618 0.014 344.842);
--chart-1: oklch(0.618 0.014 344.842);
--chart-2: oklch(0.619 0.018 325.301);
--chart-3: oklch(0.616 0.012 16.31);
--chart-4: oklch(0.645 0.017 325.279);
--chart-5: oklch(0.614 0.024 345.258);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.018 344.163);
--foreground: oklch(0.992 0.001 344.308);
--muted: oklch(0.153 0.024 326.132);
--muted-foreground: oklch(0.78 0.037 325.42);
--popover: oklch(0.107 0.018 344.163);
--popover-foreground: oklch(0.992 0.001 344.308);
--card: oklch(0.107 0.018 344.163);
--card-foreground: oklch(0.992 0.001 344.308);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.618 0.014 344.842);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.619 0.018 325.301);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.012 16.31);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.662 0.181 32.127);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.618 0.014 344.842);
--chart-1: oklch(0.618 0.014 344.842);
--chart-2: oklch(0.619 0.018 325.301);
--chart-3: oklch(0.616 0.012 16.31);
--chart-4: oklch(0.645 0.017 325.279);
--chart-5: oklch(0.614 0.024 345.258);
}