Traditional Japanese Theme
Publisher: Adrià ForcadaThemes in package: 6
A beautiful dark VS Code theme pack inspired by traditional Japanese palettes and aesthetics.
A beautiful dark VS Code theme pack inspired by traditional Japanese palettes and aesthetics.
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 | #a47c6b | — |
| constant.numeric, constant.language, support.constant | #e08654 | — |
| entity.name.function, support.function | #f27c56 | — |
| entity.name.tag, support.type.property-name | #d84d42 | — |
| entity.name.type, support.type, support.class | #f0a25e | — |
| entity.other.attribute-name, meta.tag.attribute-name, support.class.component | #8ab173 | — |
| entity.other.attribute-name.class | #f0a25e | — |
| entity.other.attribute-name.id | #d27a8c | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #f0c253 | — |
| invalid | #ffffff | — |
| keyword, storage.type, storage.modifier | #d84d42 | bold |
| markup.bold | #f27c56 | bold |
| markup.heading | #f0c253 | bold |
| markup.italic | #d27a8c | italic |
| markup.link | #f0c253 | — |
| meta.brace | #d8b49f | — |
| meta.property-name | #f0c253 | — |
| punctuation | #d8b49f | — |
| string, punctuation.definition.string | #f6d07c | — |
| support.constant.property-value | #e08654 | — |
| variable.language | #d84d42 | — |
| variable.other.constant, constant.other | #f0c253 | — |
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}!`;
}