Vibrant is a shadcn/ui theme built around a vivid teal primary color (#00f5b8) with vivid red accents (#f5003d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#00f5b8) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #050a09black |
| Foreground | #04110dblack | #ffffffwhite |
| Card | #f7fdfcmintcream | #070e0cblack |
| Card foreground | #030d0ablack | #ffffffwhite |
| Popover | #fbfefdwhite | #050a09black |
| Popover foreground | #04110dblack | #ffffffwhite |
| Primary | #00f5b8mediumspringgreen | #00f5b8mediumspringgreen |
| Primary foreground | #00291fblack | #00291fblack |
| Secondary | #f5003dcrimson | #f5003dcrimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ede8e9linen | #171213black |
| Muted foreground | #504e4fdarkslategray | #b1afb0darkgray |
| Accent | #f5003dcrimson | #f5003dcrimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cd3004firebrick | #e13405orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #00f5b8mediumspringgreen | #00f5b8mediumspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 4.24:1 | AA Large |
| Muted text | 6.80:1 | AA |
| Accent | 4.24:1 | AA Large |
| Destructive | 5.23:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 4.24:1 | AA Large |
| Muted text | 8.52:1 | AAA |
| Accent | 4.24:1 | AA Large |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Vibrant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 179.763);
--foreground: oklch(0.162 0.022 177.094);
--muted: oklch(0.935 0.006 0.061);
--muted-foreground: oklch(0.427 0.002 0.01);
--popover: oklch(0.995 0.004 179.763);
--popover-foreground: oklch(0.162 0.022 177.094);
--card: oklch(0.989 0.007 179.658);
--card-foreground: oklch(0.144 0.019 179.062);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.86 0.177 166.679);
--primary-foreground: oklch(0.249 0.049 171.637);
--secondary: oklch(0.613 0.246 20.811);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.246 20.811);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.555 0.198 33.789);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.86 0.177 166.679);
--chart-1: oklch(0.86 0.177 166.679);
--chart-2: oklch(0.613 0.246 20.811);
--chart-3: oklch(0.613 0.246 20.811);
--chart-4: oklch(0.633 0.253 20.154);
--chart-5: oklch(0.87 0.18 166.374);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 179.883);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.01 1.304);
--muted-foreground: oklch(0.756 0.002 359.936);
--popover: oklch(0.139 0.011 179.883);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.154 0.013 178.198);
--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.86 0.177 166.679);
--primary-foreground: oklch(0.249 0.049 171.637);
--secondary: oklch(0.613 0.246 20.811);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.613 0.246 20.811);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.594 0.213 33.654);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.86 0.177 166.679);
--chart-1: oklch(0.86 0.177 166.679);
--chart-2: oklch(0.613 0.246 20.811);
--chart-3: oklch(0.613 0.246 20.811);
--chart-4: oklch(0.633 0.253 20.154);
--chart-5: oklch(0.87 0.18 166.374);
}