Red Vintage Theme
Publisher: CrnobogThemes in package: 1
A dark theme with red-vintage aesthetics
A dark theme with red-vintage 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, punctuation.definition.comment | #8a7570 | — |
| constant | #c498b3 | — |
| constant.numeric, constant.language | #c498b3 | — |
| entity.name | #e6cc94 | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #d4827c | — |
| entity.other.attribute-name, entity.other.inherited-class | #c9a554 | italic |
| invalid | #d4c7b9 | — |
| invalid.deprecated | #d4c7b9 | — |
| keyword, variable.language.this | #d4827c | — |
| markup.inserted.diff | #8c7c60 | — |
| markup.deleted.diff | #a13c32 | — |
| markup.heading | #e6cc94 | bold |
| markup.bold.markdown | #d4827c | bold |
| markup.italic.markdown | #c9a554 | italic |
| meta.diff.range | #9590b3 | — |
| meta.tag, meta.brace | #a18d84 | — |
| meta.import, meta.export | #d4827c | — |
| meta.directive.vue | #9590b3 | italic |
| meta.property-name.css | #9590b3 | — |
| meta.property-value.css | #e6cc94 | — |
| meta.tag.other.html | #d4c7b9 | — |
| punctuation | #a18d84 | — |
| punctuation.accessor | #d4827c | — |
| punctuation.definition.string | #c9a554 | — |
| punctuation.definition.tag | #807c99 | — |
| storage.type, storage.modifier | #d4827c | — |
| string | #c9a554 | — |
| support | #b0acc9 | — |
| support.constant | #c498b3 | — |
| support.function | #e6cc94 | italic |
| entity.name.function, meta.function-call.generic | #e6cc94 | italic |
| variable | #b0acc9 | italic |
| variable.other, variable.language, variable.function, variable.argument | #b0acc9 | — |
| variable.parameter | #9590b3 | — |
| support.function.builtin.python | #e6cc94 | italic |
| meta.function-call.python, meta.function-call.generic.python | #e6cc94 | italic |
| support.function.builtin.python, support.function.python | #e6cc94 | italic |
| support.type.python | #e6cc94 | italic |
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}!`;
}