Copia 3 is a shadcn/ui theme built around a vivid deep blue primary color (#011f46) with light blue accents (#f1f5f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a near-white primary (#f8fafc) on a blue-tinted background (#020817).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020817black |
| Foreground | #020617black | #f8fafcghostwhite |
| Card | #ffffffwhite | #020817black |
| Card foreground | #020617black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #020817black |
| Popover foreground | #1e293bdarkslategray | #f8fafcghostwhite |
| Primary | #011f46midnightblue | #f8fafcghostwhite |
| Primary foreground | #f8fafcghostwhite | #0f172ablack |
| Secondary | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Secondary foreground | #1e293bdarkslategray | #f8fafcghostwhite |
| Muted | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Muted foreground | #64748bslategray | #94a3b8darkgray |
| Accent | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Accent foreground | #1e293bdarkslategray | #f8fafcghostwhite |
| Destructive | #b91c1cfirebrick | #f87171salmon |
| Destructive foreground | #ffffffwhite | #450a0amaroon |
| Border | #e2e8f0lavender | #1e293bdarkslategray |
| Input | #748293slategray | #334155darkslategray |
| Ring | #020817black | #cbd5e1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 15.61:1 | AAA |
| Secondary button | 13.35:1 | AAA |
| Muted text | 4.34:1 | AA Large |
| Accent | 13.35:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 17.04:1 | AAA |
| Secondary button | 13.95:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 13.95:1 | AAA |
| Destructive | 5.83:1 | AA |
Paste this into your globals.css to use Copia 3 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.041 264.692);
--muted: oklch(0.968 0.007 247.896);
--muted-foreground: oklch(0.554 0.041 257.409);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.279 0.037 260.029);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.041 264.692);
--border: oklch(0.929 0.013 255.515);
--input: oklch(0.602 0.031 253.06);
--primary: oklch(0.245 0.082 256.176);
--primary-foreground: oklch(0.984 0.003 247.859);
--secondary: oklch(0.968 0.007 247.896);
--secondary-foreground: oklch(0.279 0.037 260.029);
--accent: oklch(0.968 0.007 247.896);
--accent-foreground: oklch(0.279 0.037 260.029);
--destructive: oklch(0.505 0.19 27.518);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.137 0.036 258.526);
--chart-1: oklch(0.245 0.082 256.176);
--chart-2: oklch(0.968 0.007 247.896);
--chart-3: oklch(0.968 0.007 247.896);
--chart-4: oklch(0.993 0.002 247.838);
--chart-5: oklch(0.245 0.084 256.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.036 258.526);
--foreground: oklch(0.984 0.003 247.859);
--muted: oklch(0.28 0.037 259.974);
--muted-foreground: oklch(0.711 0.035 256.788);
--popover: oklch(0.137 0.036 258.526);
--popover-foreground: oklch(0.984 0.003 247.859);
--card: oklch(0.137 0.036 258.526);
--card-foreground: oklch(0.984 0.003 247.859);
--border: oklch(0.28 0.037 259.974);
--input: oklch(0.372 0.039 257.281);
--primary: oklch(0.984 0.003 247.859);
--primary-foreground: oklch(0.208 0.04 265.727);
--secondary: oklch(0.28 0.037 259.974);
--secondary-foreground: oklch(0.984 0.003 247.859);
--accent: oklch(0.28 0.037 259.974);
--accent-foreground: oklch(0.984 0.003 247.859);
--destructive: oklch(0.711 0.166 22.217);
--destructive-foreground: oklch(0.258 0.089 26.041);
--ring: oklch(0.869 0.02 252.847);
--chart-1: oklch(0.984 0.003 247.859);
--chart-2: oklch(0.28 0.037 259.974);
--chart-3: oklch(0.28 0.037 259.974);
--chart-4: oklch(0.308 0.042 259.957);
--chart-5: oklch(0.984 0.004 247.861);
}