Showa Retro Themes
Publisher: SUZUKI TetsuyaThemes in package: 13
Color themes inspired by the Japanese Showa era aesthetic.
Color themes inspired by the Japanese Showa era aesthetic.
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 | #B5764A | italic |
| string, punctuation.definition.string | #FBC661 | — |
| constant.numeric | #FBC661 | — |
| constant.language, constant.character, constant.other | #912813 | bold |
| variable | #6B3B2D | — |
| variable.language | #912813 | italic |
| keyword, storage | #912813 | bold |
| storage.type | #B5764A | italic |
| entity.name.type, entity.name.class, support.class, entity.name.function, support.function | #6B3B2D | bold |
| entity.other.inherited-class | #6B3B2D | italic |
| variable.parameter | #6B3B2D | italic |
| entity.name.tag | #912813 | bold |
| entity.other.attribute-name | #FBC661 | italic |
| support.function, support.constant, support.type, support.class, support.variable | #B5764A | |
| invalid | #F7F7DC | — |
| invalid.deprecated | #6B3B2D | — |
| support.type.property-name.json | #912813 | — |
| string.quoted.double.json | #FBC661 | — |
| constant.language.json | #B5764A | — |
| markup.heading | #912813 | bold |
| markup.underline.link | #FBC661 | underline |
| markup.bold | #6B3B2D | bold |
| markup.italic | #6B3B2D | italic |
| markup.inline.raw | #FBC661 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}