Zairyō Themes
Publisher: Evgeniy Khramov (thejenja)Themes in package: 36
🎨 36 Zairyō themes — 9 color schemes × 4 variants. by thejenja
🎨 36 Zairyō themes — 9 color schemes × 4 variants. by thejenja
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 | #6F797A | italic |
| keyword, keyword.control, storage.type, storage.modifier | #006972 | bold |
| string, string.quoted, string.unquoted | #515E7D | — |
| constant.numeric | #BA1A1A | — |
| entity.name.function, support.function, meta.function-call | #4A6366 | — |
| entity.name.type, support.type, storage.type | #001F23 | — |
| entity.name.class, support.class | #001F23 | — |
| variable, variable.other | #191C1D | — |
| constant, constant.language, variable.other.constant | #006972 | — |
| keyword.operator | #3F484A | — |
| entity.name.tag, meta.tag | #006972 | — |
| entity.other.attribute-name | #4A6366 | — |
| variable.object, support.variable.property | #191C1D | — |
| punctuation, meta.brace | #3F484A | — |
| markup.heading | #006972 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #4A6366 | — |
| markup.inline.raw | #515E7D | — |
| markup.inserted | #A8DAB5 | — |
| markup.deleted | #BA1A1A | — |
| markup.changed | #006972 | — |
| entity.name.tag.yaml | #006972 | — |
| support.type.property-name.json | #4A6366 | — |
| support.type.property-name.css | #006972 | — |
| support.constant.property-value.css | #515E7D | — |
| entity.name.tag.css, entity.other.attribute-name | #BA1A1A | — |
| entity.name.function.python | #4A6366 | — |
| variable.language.self.python | #191C1D | — |
| variable.language.this.js, variable.language.this.ts | #191C1D | — |
| string.template | #515E7D | — |
| entity.name.type.ts | #001F23 | — |
| entity.other.decorator.ts | #515E7D | — |
| support.macro.rust | #515E7D | — |
| entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #515E7D | — |
| meta.attribute.rust | #3F484A | — |
| entity.name.type.rust | #001F23 | — |
| entity.name.impl.rust | #4A6366 | — |
| entity.name.package.go | #4A6366 | — |
| entity.name.function.go | #4A6366 | — |
| entity.name.type.go | #001F23 | — |
| entity.name.protocol.swift | #001F23 | — |
| keyword.other.argument.swift | #4A6366 | — |
| entity.name.type.dart | #001F23 | — |
| entity.name.class.dart | #001F23 | — |
| string.regexp | #88D8E3 | — |
| constant.character.escape | #88D8E3 | — |
| class | #001F23 | — |
| enum | #001F23 | — |
| interface | #001F23 | — |
| function | #4A6366 | — |
| parameter | #191C1D | — |
| variable | #191C1D | — |
| namespace | #006972 | — |
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}!`;
}