Trina Theme
Publisher: Angelo ResplandesThemes in package: 1
Trina Theme – A minimalistic dark theme with soft purple tones
Trina Theme – A minimalistic dark theme with soft purple tones
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 |
|---|---|---|
| keyword, storage, storage.type, keyword.control, keyword.operator | #FF6F91 | bold |
| string, variable, identifier, constant.numeric, meta.definition.variable.name, entity.name.type | #f6f6f6 | — |
| string.quoted, string.template, constant.other.symbol | #92E3A3 | — |
| comment, punctuation.definition.comment | #665d91 | italic |
| variable.other, meta.function-call, support.function, meta.function, meta.type | #aea2fe | — |
| constant.language.boolean, constant.language, punctuation.definition.string | #92E3A3 | — |
| entity.name.class, support.class, meta.class, meta.class.identifier | #F0AFFF | — |
| punctuation, meta.brace, meta.delimiter, punctuation.section | #9999CC | — |
| support.constant, constant.character, constant.other | #FFCB6B | — |
| markup.heading, entity.name.tag, meta.tag, meta.tag.sgml, meta.tag.html, entity.name.tag.html, entity.name.tag.xml | #9c8efa | bold |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #FF6F91 | — |
| support.property-name, meta.property-name, variable.css, support.type.property-name.css | #f6f6f6 | — |
| support.constant.property-value, meta.property-value, support.constant.color | #B0E0E6 | — |
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}!`;
}