Tokyo Night
Tokyo Night is Enkia's blue-magenta-cyan palette, after the neon-on-night look of the city it's named for. It is the lineup's role-split champion: type, function, parameter, keyword, number, tag and attribute each get a distinct hue — pick it to show off the extended syntax roles. The preset ships Storm (dark) and Day (light); the Moon variant is not included.
Opt in
{
"site": {
"theme": {
"package": "@refrakt-md/lumina",
"presets": ["@refrakt-md/lumina/presets/tokyo-night"]
}
}
}
Palette
Tokyo Night — Day (light)
Background (canvas)#e1e2e7W: 1.3 · B: 16.2AA ✗AAA ✗
Foreground (text, variable)#3760bfW: 5.9 · B: 3.6AA ✓AAA ✗
Comment (muted)#848cb5W: 3.3 · B: 6.4AA ✗AAA ✗
Magenta (keyword)#9854f1W: 4.3 · B: 4.9AA ✗AAA ✗
Blue (function, primary)#2e7de9W: 4.0 · B: 5.2AA ✗AAA ✗
Cyan (type)#007197W: 5.5 · B: 3.8AA ✓AAA ✗
Green (string)#587539W: 5.2 · B: 4.0AA ✓AAA ✗
Orange (constant, number, attribute, parameter)#b15c00W: 4.8 · B: 4.4AA ✓AAA ✗
Red (tag)#f52a65W: 3.9 · B: 5.4AA ✗AAA ✗
Teal-cyan (operator)#006c86W: 6.0 · B: 3.5AA ✓AAA ✗
Teal (regex)#387068W: 5.7 · B: 3.7AA ✓AAA ✗
Tokyo Night — Storm (dark)
Background (canvas)#24283bW: 14.6 · B: 1.4AA ✓AAA ✓
Foreground (text, variable, punctuation)#c0caf5W: 1.6 · B: 13.0AA ✗AAA ✗
Comment (muted)#565f89W: 6.2 · B: 3.4AA ✓AAA ✗
Magenta (keyword)#bb9af7W: 2.3 · B: 9.1AA ✗AAA ✗
Blue (function, primary)#7aa2f7W: 2.5 · B: 8.3AA ✗AAA ✗
Cyan (type)#7dcfffW: 1.7 · B: 12.2AA ✗AAA ✗
Cyan-blue (operator)#89ddffW: 1.5 · B: 13.9AA ✗AAA ✗
Green (string)#9ece6aW: 1.8 · B: 11.5AA ✗AAA ✗
Yellow (attribute, parameter)#e0af68W: 2.0 · B: 10.5AA ✗AAA ✗
Orange (constant, number)#ff9e64W: 2.0 · B: 10.3AA ✗AAA ✗
Red (tag)#f7768eW: 2.6 · B: 7.9AA ✗AAA ✗
Light cyan (regex)#b4f9f8W: 1.2 · B: 17.8AA ✗AAA ✗
Preview
// A small user-service shape
interface User {
id: number;
name: string;
preferences: Record<string, unknown>;
}
async function findUser(id: number): Promise<User | null> {
const re = /^\d+$/;
if (!re.test(String(id))) return null;
const user = await db.users.findOne({ where: { id } });
return user ?? null;
}
const widget = <Button onClick={() => findUser(42)} variant="primary">Find</Button>;
Attribution
Tokyo Night is the work of Enkia and contributors, MIT licensed. The preset is derived from the Storm and Day variants of the Tokyo Night VS Code theme.