73nko Theme
Publisher: 73nkoThemes in package: 2
A custom VS Code theme by 73nko
A custom VS Code theme by 73nko
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 | #7a6b95 | italic |
| comment.block.documentation, comment.line.documentation | #5d4575 | italic |
| variable, variable.other, variable.language.this, variable.parameter, meta.object-literal.key, support.variable | #2a1040 | — |
| variable.other.property, variable.other.object.property, variable.object.property | #5d4575 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #c2487a | bold |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #b83d5f | bold |
| entity.name.function, meta.function-call entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #4278bf | bold |
| entity.name.function.constructor | #7a4785 | bold |
| entity.name.class, entity.name.type.class, entity.name.type, support.type, support.class, support.other.namespace, entity.other.inherited-class | #7a4785 | bold |
| string, string.quoted, string.template | #6a5d85 | — |
| string.regexp, string.other.link | #5a3f8a | — |
| string.template punctuation.definition.string.begin, string.template punctuation.definition.string.end, punctuation.definition.string | #a5567b | — |
| constant.numeric, constant.language, constant.character, constant.other.color | #cc5f62 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #b83d5f | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison | #c2487a | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor | #5d4575 | — |
| punctuation.definition.block, punctuation.definition.group, punctuation.definition.parameters, punctuation.definition.array | #a5567b | — |
| entity.name.tag, meta.tag.sgml | #b83d5f | bold |
| entity.other.attribute-name, entity.other.attribute-name.html | #c2487a | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #a5567b | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #7a4785 | — |
| support.type.property-name.css, meta.property-name.css | #4278bf | — |
| support.constant.property-value.css, meta.property-value.css | #cc5f62 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double.json | #c2487a | — |
| variable.other.constant.js, variable.other.constant.ts | #cc5f62 | bold |
| meta.import variable.other.readwrite, meta.export variable.other.readwrite | #7a4785 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #b83d5f | bold |
| punctuation.definition.template-expression, keyword.other.template | #c2487a | — |
| markup.heading, entity.name.section.markdown | #c2487a | bold |
| markup.bold | #b83d5f | bold |
| markup.italic | #7a4785 | italic |
| markup.inline.raw, markup.fenced_code | #4278bf | — |
| markup.underline.link | #c2487a | underline |
| markup.inserted.git_gutter | #4278bf | — |
| markup.deleted.git_gutter | #c73d52 | — |
| markup.changed.git_gutter | #cc5f62 | — |
| invalid, invalid.illegal, invalid.deprecated | #c73d52 | bold |
| constant.character.escape, constant.other.character-class.escape | #5a3f8a | bold |
| *url*, *link*, *uri* | #c2487a | underline |
| meta.decorator, punctuation.decorator | #cc5f62 | bold |
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}!`;
}