Aesthetic Latte Dark
Publisher: guilhermemorelidevThemes in package: 1
A warm, dark theme with coffee-inspired colors - ported from KDE Plasma
A warm, dark theme with coffee-inspired colors - ported from KDE Plasma
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 | #787066 | italic |
| string, string.quoted, string.template | #5FA564 | — |
| constant.character.escape | #7BC080 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #B48246 | — |
| constant.numeric | #916EA0 | — |
| constant.language, constant.character, support.constant | #916EA0 | — |
| constant.language.boolean | #916EA0 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof | #B48246 | — |
| storage, storage.type, storage.modifier | #B48246 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #B48246 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational | #C89641 | — |
| entity.name.function, support.function, meta.function-call | #AA7341 | — |
| variable.parameter, meta.parameter | #E1DAD0 | italic |
| storage.type.function.arrow | #B48246 | — |
| entity.name.class, entity.name.type.class, support.class | #C89641 | — |
| entity.name.type, support.type, support.type.primitive | #C89641 | — |
| entity.name.type.interface | #C89641 | italic |
| entity.name.type.parameter | #916EA0 | — |
| variable, variable.other | #F0E9DF | — |
| variable.other.property, variable.other.object.property | #E1DAD0 | — |
| variable.other.constant | #916EA0 | — |
| variable.language.this, variable.language.self | #B48246 | italic |
| meta.object-literal.key, support.type.property-name.json | #AA7341 | — |
| entity.name.tag | #B48246 | — |
| entity.other.attribute-name | #C89641 | italic |
| punctuation.definition.tag | #787066 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #C89641 | — |
| support.type.property-name.css | #AA7341 | — |
| support.constant.property-value.css | #E1DAD0 | — |
| keyword.other.unit.css | #916EA0 | — |
| variable.scss, variable.css | #B48246 | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading | #B48246 | bold |
| markup.bold | #C89641 | bold |
| markup.italic | #E1DAD0 | italic |
| markup.underline.link | #AA7341 | — |
| markup.inline.raw, markup.fenced_code | #5FA564 | — |
| markup.quote | #787066 | italic |
| string.regexp | #C85555 | — |
| constant.other.character-class.regexp | #C89641 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor | #A0988E | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, meta.brace | #A0988E | — |
| meta.decorator, meta.annotation | #916EA0 | — |
| invalid, invalid.illegal | #C85555 | — |
| invalid.deprecated | #C89641 | strikethrough |
| variable.parameter.function.language.special.self.python | #B48246 | italic |
| support.function.magic.python | #916EA0 | — |
| entity.name.function.macro.rust | #916EA0 | — |
| entity.name.type.lifetime.rust | #C89641 | italic |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.special.shell | #B48246 | — |
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}!`;
}