tokyonight.vscode
Publisher: MwaleJonathanThemes in package: 4
Tokyo Night color themes for Visual Studio Code, ported from tokyonight.nvim.
Tokyo Night color themes for Visual Studio Code, ported from tokyonight.nvim.
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #636da6 | italic |
| comment.block.documentation, keyword.other.phpdoc.php | #636da6 | italic |
| constant, variable.other.constant, support.constant | #ff966c | — |
| string, constant.other.symbol, constant.other.key | #c3e88d | — |
| constant.character.escape, constant.character.character-class.regexp | #c099ff | — |
| string.regexp, constant.other.character-class.set.regexp | #b4f9f8 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #ff966c | — |
| keyword, keyword.control, keyword.other.important | #fca7ea | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #86e1fc | — |
| storage, storage.type, storage.modifier | #c099ff | italic |
| keyword.operator, entity.name.operator, punctuation | #89ddff | — |
| entity.name.function, support.function, variable.function, meta.function-call | #82aaff | — |
| entity.name.method, meta.method-call, variable.function.constructor | #82aaff | — |
| variable.parameter, meta.function.parameters variable, meta.function.parameter variable | #ffc777 | — |
| variable, support.variable | #c8d3f5 | — |
| variable.language, keyword.other.this | #ff757f | — |
| variable.other.property, support.variable.property, variable.other.member | #4fd6be | — |
| meta.object-literal.key, string.unquoted.label, string.unquoted.key, string.alias.graphql | #4fd6be | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #65bcff | — |
| entity.name.namespace, support.module, entity.name.module | #86e1fc | — |
| entity.name.tag, meta.tag | #ff757f | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #c099ff | — |
| entity.other.attribute-name, meta.directive.vue entity.other.attribute-name.html | #c099ff | — |
| support.type.property-name.css, support.type.vendored.property-name, support.type.property-name.scss | #82aaff | — |
| support.constant.property-value, keyword.other.unit | #ff966c | — |
| entity.other.attribute-name.class | #c3e88d | — |
| entity.other.attribute-name.id | #ff757f | — |
| source.json meta.mapping.key string.quoted.double | #82aaff | — |
| invalid, invalid.illegal | #ff757f | — |
| invalid.deprecated | #c099ff | strikethrough |
| markup.inserted | #b8db87 | — |
| markup.deleted | #e26a75 | — |
| markup.changed | #7ca1f2 | — |
| markup.heading, entity.name.section.markdown | #82aaff | bold |
| punctuation.definition.heading.markdown | #89ddff | bold |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #4fd6be | — |
| markup.inline.raw, markup.fenced_code.block.markdown | #89ddff | — |
| punctuation.definition.list_item.markdown, markup.list | #ff966c | — |
| markup.quote | #636da6 | italic |
| markup.bold | #c8d3f5 | bold |
| markup.italic | #c8d3f5 | italic |
| markup.underline | — | underline |
| token.info-token, markup.info | #0db9d7 | — |
| token.warn-token, markup.warning | #ffc777 | — |
| token.error-token, markup.error | #c53b53 | — |
| token.debug-token | #c099ff | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}