Anime Trinity Theme
Publisher: Dhruva JhanjhariThemes in package: 3
Three anime-inspired VS Code themes: One Piece Dark, Robin Cozy, and Purple Blue.
Three anime-inspired VS Code themes: One Piece Dark, Robin Cozy, and Purple Blue.
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 | #9ca3af | italic |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #7c3aed | bold |
| string, string.quoted, string.template | #16a34a | — |
| constant.character.escape | #d97706 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #2563eb | — |
| variable.parameter | #c2410c | italic |
| variable, variable.other | #2d2320 | — |
| constant, variable.other.constant, constant.language | #d97706 | bold |
| constant.numeric | #ea580c | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #b91c1c | bold |
| entity.name.class, entity.name.type, support.class, entity.other.inherited-class | #5b21b6 | bold |
| entity.name.tag | #7c3aed | — |
| entity.other.attribute-name | #c2410c | — |
| support.type.property-name.css | #2563eb | — |
| support.constant.property-value.css | #16a34a | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #5b21b6 | — |
| keyword.operator | #6b7280 | — |
| punctuation | #9ca3af | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #be185d | — |
| meta.decorator, entity.name.function.decorator | #d97706 | — |
| support.type.property-name.json, meta.object-literal.key | #2563eb | — |
| variable.language.special.self.python | #7c3aed | italic |
| invalid | #b91c1c | 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}!`;
}