Tokyo Ghosts
Publisher: Code TimeThemes in package: 2
Ethereal slate and grey themes with neon blue/purple UI and rich jewel-tone syntax
Ethereal slate and grey themes with neon blue/purple UI and rich jewel-tone syntax
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 |
|---|---|---|
| comment, punctuation.definition.comment | #6D7085 | italic |
| string, string.quoted, string.template | #1E7F4D | — |
| constant.character.escape | #2DA366 | — |
| string.regexp | #9D6B28 | — |
| punctuation.definition.template-expression, string.template punctuation | #9B4DCA | — |
| keyword, storage.type, storage.modifier | #B5314A | — |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export | #B5314A | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical | #9B4DCA | — |
| keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof | #B5314A | — |
| variable, variable.other, variable.other.readwrite | #2B2D3A | — |
| variable.parameter, variable.parameter.function | #8B5A2B | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #B5314A | italic |
| variable.other.property, variable.other.object.property | #7B5AA6 | — |
| constant, constant.language, constant.language.boolean | #9D6B28 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #8B5A2B | — |
| entity.name.function, support.function, meta.function-call | #2E5AAC | — |
| entity.name.function.definition, meta.definition.function entity.name.function | #2E5AAC | bold |
| entity.name.function.member, meta.method.declaration entity.name.function | #2E5AAC | — |
| entity.name.class, support.class, entity.name.type.class | #9D6B28 | bold |
| entity.name.type, support.type, support.type.primitive | #1E7F4D | — |
| entity.name.type.parameter | #1E7F4D | italic |
| entity.name.type.interface | #1E7F4D | bold |
| entity.name.type.enum | #9B4DCA | — |
| entity.name.namespace, entity.name.type.module | #7B5AA6 | — |
| meta.object-literal.key, support.type.property-name.json, punctuation.support.type.property-name | #2E5AAC | — |
| punctuation, punctuation.separator, punctuation.terminator | #5D6075 | — |
| meta.brace, punctuation.definition.block, punctuation.section | #5D6075 | — |
| entity.name.tag, punctuation.definition.tag | #B5314A | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #5D6075 | — |
| entity.other.attribute-name | #9D6B28 | italic |
| support.type.property-name.css, support.type.vendored.property-name.css | #2E5AAC | — |
| support.constant.property-value.css, support.constant.font-name.css | #8B5A2B | — |
| entity.other.attribute-name.class.css | #9D6B28 | — |
| entity.other.attribute-name.id.css | #9B4DCA | — |
| entity.name.tag.css | #B5314A | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #1E7F4D | italic |
| keyword.other.unit.css | #8B5A2B | — |
| markup.heading, entity.name.section.markdown | #B5314A | bold |
| markup.bold | #9D6B28 | bold |
| markup.italic | #7B5AA6 | italic |
| markup.strikethrough | #6D7085 | strikethrough |
| markup.underline.link, string.other.link | #0077A6 | underline |
| markup.inline.raw, markup.fenced_code, markup.raw.inline | #1E7F4D | — |
| markup.quote | #6D7085 | italic |
| punctuation.definition.list.begin.markdown, markup.list | #9B4DCA | — |
| storage, storage.type.function, storage.type.class | #B5314A | — |
| storage.type.function.arrow | #9B4DCA | — |
| support, support.constant | #2E5AAC | — |
| support.variable.dom, support.constant.dom | #8B5A2B | — |
| meta.decorator, punctuation.decorator | #9B4DCA | italic |
| meta.import, meta.export | #2B2D3A | — |
| invalid, invalid.illegal | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | strikethrough |
| support.type.property-name.json | #2E5AAC | — |
| meta.structure.dictionary.value.json string.quoted | #1E7F4D | — |
| entity.name.tag.yaml | #2E5AAC | — |
| support.function.magic.python | #9B4DCA | italic |
| entity.name.function.decorator.python, meta.function.decorator.python | #9D6B28 | italic |
| variable.parameter.function.language.special.self.python | #B5314A | italic |
| meta.fstring.python, string.quoted.f-string | #1E7F4D | — |
| meta.type.annotation | #1E7F4D | — |
| support.class.component, entity.name.tag support.class.component | #9D6B28 | — |
| punctuation.section.embedded | #9B4DCA | — |
| markup.inserted, meta.diff.header.to-file | #1E7F4D | — |
| markup.deleted, meta.diff.header.from-file | #B5314A | — |
| markup.changed | #9B4DCA | — |
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}!`;
}