Shokunin
Publisher: Maksim BurtsevThemes in package: 2
Light and dark VS Code themes for Python-focused craft: sumi classes, ume type hints, asagi functions.
Light and dark VS Code themes for Python-focused craft: sumi classes, ume type hints, asagi functions.
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 | #777269 | italic |
| string, string.quoted, string.template, punctuation.definition.string | #157A5B | — |
| constant.numeric, variable.other.constant, support.constant, constant.other, constant.language.boolean, constant.language.json, constant.language.yaml | #9A6000 | bold |
| constant.language.python | #3A3E44 | bold |
| keyword, keyword.control, keyword.operator.word, keyword.other, storage.type.function.python, storage.type.class.python, storage.modifier.async.python, storage.type, storage.modifier | #3A3E44 | bold |
| keyword.operator, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor | #5C6268 | — |
| support.type, support.type.python, support.class.builtin.python, entity.name.type, entity.other.inherited-class, meta.function.typehint.python, meta.type.annotation.python, meta.annotation.python, storage.type.annotation.python | #8F4155 | bold |
| entity.name.class, entity.name.type.class, support.class, meta.class.python entity.name.type.class, meta.class.python entity.name.class | #3A3E44 | bold |
| entity.name.function, entity.name.function.member, support.function, support.function.builtin, variable.function | #006FAE | bold |
| entity.name.function.decorator, meta.function.decorator.python, punctuation.definition.decorator.python, keyword.operator.decorator.python | #8A4A1C | bold |
| variable.other.property, variable.other.object.property, meta.member.access, support.variable.property | #4E5962 | — |
| variable.parameter, meta.function.parameters variable.parameter | #303841 | — |
| markup.heading, entity.name.section | #3A3E44 | bold |
| string.other.link, markup.underline.link | #006FAE | — |
| markup.inline.raw, markup.fenced_code | #9A6000 | — |
| invalid, invalid.illegal | #C84053 | 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}!`;
}