Underground Vivid Cerulean is a shadcn/ui theme built around a vivid cyan primary color (#0ea5e9) with vivid light blue accents (#e0f2fe). The light mode uses a blue-tinted background (#f1f5f9). Dark mode switches to a vivid blue primary (#2b7fff) on a blue-tinted background (#0f172a).
| Token | Light | Dark |
|---|---|---|
| Background | #f1f5f9whitesmoke | #0f172ablack |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #314158darkslategray |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #1e293bdarkslategray |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0ea5e9dodgerblue | #2b7fffdodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #90a1b9darkgray | #62748eslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #bae6fdpaleturquoise | #60a5facornflowerblue |
| Muted foreground | #000000black | #cad5e2lightgrey |
| Accent | #e0f2felightcyan | #93c5fdlightskyblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #fb2c36crimson | #e7000bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #cbd5e1lightgrey | #475569darkslategray |
| Input | #cbd5e1lightgrey | #475569darkslategray |
| Ring | #0ea5e9dodgerblue | #3b82f6royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 2.77:1 | Fail |
| Secondary button | 2.63:1 | Fail |
| Muted text | 15.82:1 | AAA |
| Accent | 18.30:1 | AAA |
| Destructive | 3.80:1 | AA Large |
| Text on background | 17.85:1 | AAA |
| Text on card | 10.35:1 | AAA |
| Primary button | 3.76:1 | AA Large |
| Secondary button | 4.76:1 | AA |
| Muted text | 1.71:1 | Fail |
| Accent | 11.64:1 | AAA |
| Destructive | 4.77:1 | AA |
Paste this into your globals.css to use Underground Vivid Cerulean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.968 0.007 247.896);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.055 230.908);
--muted-foreground: oklch(0 0 0);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.869 0.02 252.899);
--input: oklch(0.869 0.02 252.899);
--primary: oklch(0.685 0.148 237.321);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.704 0.04 256.99);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.951 0.025 236.824);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.638 0.237 25.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.148 237.321);
--chart-1: oklch(0.685 0.148 237.321);
--chart-2: oklch(0.828 0.101 230.318);
--chart-3: oklch(0.901 0.055 230.908);
--chart-4: oklch(0.869 0.02 252.899);
--chart-5: oklch(0.685 0.148 237.321);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.208 0.04 265.752);
--foreground: oklch(1 0 180);
--muted: oklch(0.714 0.143 254.628);
--muted-foreground: oklch(0.869 0.022 252.514);
--popover: oklch(0.279 0.037 260.029);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.372 0.045 257.417);
--card-foreground: oklch(1 0 180);
--border: oklch(0.446 0.037 257.275);
--input: oklch(0.446 0.037 257.275);
--primary: oklch(0.619 0.207 259.235);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.554 0.046 257.519);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.809 0.096 251.816);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.583 0.239 28.476);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.623 0.188 259.815);
--chart-1: oklch(0.623 0.188 259.815);
--chart-2: oklch(0.714 0.143 254.628);
--chart-3: oklch(0.809 0.096 251.816);
--chart-4: oklch(0.711 0.035 256.788);
--chart-5: oklch(0.714 0.143 254.628);
}