Tokyo Night NE
Publisher: NoahELEThemes in package: 3
A clean Visual Studio Code theme that celebrates the lights of Downtown Tokyo at night.
A clean Visual Studio Code theme that celebrates the lights of Downtown Tokyo at night.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| Global settings | #1a1b26 | — |
| string | #9ece6a | — |
| punctuation, constant.other.symbol | #f7768e | — |
| constant.character.escape, text.html constant.character.entity.named | #edff9f | — |
| constant.language.boolean | #f7768e | — |
| constant.numeric | #7aa2f7 | — |
| variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments | #f7768e | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #f7768e | — |
| entity.name.function, support.function | #7aa2f7 | — |
| storage.type, storage.modifier, storage.control | #f7768e | — |
| support.module, support.node | #ffb1d5 | italic |
| support.type, constant.other.key | #e0af68 | — |
| entity.name.type, entity.other.inherited-class, entity.other | #e0af68 | — |
| comment | #ffffff | italic |
| comment punctuation.definition.comment, string.quoted.docstring | #ffffff | italic |
| punctuation | #f7768e | — |
| entity.name, entity.name.type.class, support.type, support.class, meta.use | #e0af68 | — |
| variable.object.property, meta.field.declaration entity.name.function | #e0af68 | — |
| meta.definition.method entity.name.function | #e0af68 | — |
| meta.function entity.name.function | #e0af68 | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #f7768e | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #1a1b26 | — |
| entity.name.tag.yaml | #ffb1d5 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #ffb1d5 | — |
| constant.language.json | #f7768e | — |
| entity.other.attribute-name.class | #f7768e | — |
| entity.other.attribute-name.id | #9ece6a | — |
| source.css entity.name.tag | #e0af68 | — |
| support.type.property-name.css | #7aa2f7 | — |
| meta.tag, punctuation.definition.tag | #f7768e | — |
| entity.name.tag | #ffb1d5 | — |
| entity.other.attribute-name | #f7768e | — |
| punctuation.definition.entity.html | #edff9f | — |
| markup.heading | #f7768e | — |
| text.html.markdown meta.link.inline, meta.link.reference | #ffb1d5 | — |
| text.html.markdown beginning.punctuation.definition.list | #f7768e | — |
| markup.italic | #ffb1d5 | italic |
| markup.bold | #ffb1d5 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #ffb1d5 | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #9ece6a | — |
| markup.inline.raw.string.markdown | #9ece6a | — |
| keyword.other.definition.ini | #ffb1d5 | — |
| entity.name.section.group-title.ini | #f7768e | — |
| source.cs meta.class.identifier storage.type | #e0af68 | — |
| source.cs meta.method.identifier entity.name.function | #e0af68 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #7aa2f7 | — |
| source.cs storage.type | #e0af68 | — |
| source.cs meta.method.return-type | #e0af68 | — |
| source.cs meta.preprocessor | #ffffff | — |
| source.cs entity.name.type.namespace | #1a1b26 | — |
| meta.jsx.children, SXNested | #1a1b26 | — |
| support.class.component | #e0af68 | — |
| source.cpp meta.block variable.other | #1a1b26 | — |
| source.python meta.member.access.python | #ffb1d5 | — |
| source.python meta.function-call.python, meta.function-call.arguments | #7aa2f7 | — |
| meta.block | #ffb1d5 | — |
| entity.name.function.call | #e0af68 | — |
| source.php support.other.namespace, source.php meta.use support.class | #1a1b26 | — |
| constant.keyword | #f7768e | italic |
| entity.name.function | #e0af68 | — |
| Global settings | #1a1b26 | — |
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}!`;
}