Katana Theme
Publisher: kakshidev56Themes in package: 1
Japanese-inspired developer theme. Katana Zsh companion. Long-session optimized.
Japanese-inspired developer theme. Katana Zsh companion. Long-session optimized.
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 |
|---|---|---|
| — | #E8E8E8 | — |
| comment, punctuation.definition.comment | #6F767E | italic |
| comment.block.documentation, comment.line.documentation | #858C94 | italic |
| variable, variable.other, variable.parameter, string constant.other.placeholder | #E8E8E8 | — |
| keyword, keyword.control, keyword.control.flow, keyword.other | #C792EA | — |
| keyword.operator | #B8B8B8 | — |
| storage.type, storage.modifier | #D8A657 | — |
| support.class, support.type | #D8A657 | — |
| entity.name.class, entity.name.type, entity.other.inherited-class | #E0B66B | — |
| string, constant.other.symbol, constant.other.key | #8CCF4D | — |
| string.regexp | #D8A657 | — |
| constant.numeric | #D8A657 | — |
| constant.language.boolean | #67DDE5 | — |
| constant.language | #C792EA | — |
| entity.name.function | #82AAFF | — |
| meta.function-call entity.name.function, support.function | #AFC7E8 | — |
| entity.name.tag, meta.tag.sgml | #5B9BF7 | — |
| entity.other.attribute-name, meta.decorator | #D8A657 | — |
| punctuation, meta.brace | #9A9A9A | — |
| support.type.property-name.json, entity.name.tag.yaml | #82AAFF | — |
| support.function.builtin.shell, entity.name.function.shell | #82AAFF | — |
| constant.other.option | #D8A657 | — |
| markup.heading | #D8A657 | bold |
| markup.heading.1, markup.heading.2 | #E0B66B | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link, string.other.link | #5B9BF7 | — |
| markup.inline.raw | #67DDE5 | — |
| markup.quote, punctuation.definition.quote | #6F767E | — |
| invalid, invalid.illegal | #E5484D | underline |
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}!`;
}