Midnight Tokyo - Blue Primary v2 is a shadcn/ui theme built around a vivid blue primary color (#023cb6) with light blue accents (#f1f5f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a blue primary (#88a0eb) on an indigo-tinted background (#16161d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #16161dblack |
| Foreground | #020817black | #aab1d3lightsteelblue |
| Card | #ffffffwhite | #1a1b25black |
| Card foreground | #020817black | #aab1d3lightsteelblue |
| Popover | #ffffffwhite | #1a1b25black |
| Popover foreground | #020817black | #777a95slategray |
| Primary | #023cb6mediumblue | #88a0ebcornflowerblue |
| Primary foreground | #f8fafcghostwhite | #1a1b25black |
| Secondary | #f1f5f9whitesmoke | #d3d3d3lightgray |
| Secondary foreground | #0f172ablack | #333333darkslategray |
| Muted | #f1f5f9whitesmoke | #282936darkslategray |
| Muted foreground | #64748bslategray | #71748eslategray |
| Accent | #f1f5f9whitesmoke | #4059b7steelblue |
| Accent foreground | #0f172ablack | #f8fafcghostwhite |
| Destructive | #f72727crimson | #c0514eindianred |
| Destructive foreground | #f8fafcghostwhite | #f8fafcghostwhite |
| Border | #e2e8f0lavender | #42455adarkslategray |
| Input | #e2e8f0lavender | #1e202ddarkslategray |
| Ring | #023cb6mediumblue | #88a0ebcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.58:1 | AAA |
| Secondary button | 16.30:1 | AAA |
| Muted text | 4.34:1 | AA Large |
| Accent | 16.30:1 | AAA |
| Destructive | 3.80:1 | AA Large |
| Text on background | 8.51:1 | AAA |
| Text on card | 8.09:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 3.13:1 | AA Large |
| Accent | 6.03:1 | AA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Midnight Tokyo - Blue Primary v2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.036 258.526);
--muted: oklch(0.968 0.007 247.895);
--muted-foreground: oklch(0.555 0.041 257.44);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.036 258.526);
--card: oklch(1 0 180);
--card-foreground: oklch(0.137 0.036 258.526);
--border: oklch(0.929 0.013 255.532);
--input: oklch(0.929 0.013 255.532);
--primary: oklch(0.419 0.199 262.534);
--primary-foreground: oklch(0.984 0.003 247.859);
--secondary: oklch(0.968 0.007 247.895);
--secondary-foreground: oklch(0.208 0.04 265.727);
--accent: oklch(0.968 0.007 247.895);
--accent-foreground: oklch(0.208 0.04 265.727);
--destructive: oklch(0.627 0.238 27.654);
--destructive-foreground: oklch(0.984 0.003 247.859);
--ring: oklch(0.418 0.199 262.612);
--chart-1: oklch(0.419 0.199 262.534);
--chart-2: oklch(0.968 0.007 247.895);
--chart-3: oklch(0.968 0.007 247.895);
--chart-4: oklch(0.993 0.002 247.838);
--chart-5: oklch(0.419 0.204 262.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.203 0.014 285.102);
--foreground: oklch(0.766 0.049 276.035);
--muted: oklch(0.286 0.023 278.46);
--muted-foreground: oklch(0.566 0.04 279.856);
--popover: oklch(0.226 0.019 280.253);
--popover-foreground: oklch(0.587 0.041 280.058);
--card: oklch(0.226 0.019 280.253);
--card-foreground: oklch(0.766 0.049 276.035);
--border: oklch(0.396 0.036 278.297);
--input: oklch(0.248 0.025 277.622);
--primary: oklch(0.718 0.113 269.854);
--primary-foreground: oklch(0.226 0.019 280.253);
--secondary: oklch(0.867 0 169.695);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(0.496 0.152 269.335);
--accent-foreground: oklch(0.984 0.003 247.859);
--destructive: oklch(0.578 0.144 24.182);
--destructive-foreground: oklch(0.984 0.003 247.858);
--ring: oklch(0.718 0.113 269.854);
--chart-1: oklch(0.718 0.113 269.854);
--chart-2: oklch(0.867 0 169.695);
--chart-3: oklch(0.496 0.152 269.335);
--chart-4: oklch(0.89 0 171.254);
--chart-5: oklch(0.715 0.118 269.735);
}