Afterglow ’84
Publisher: Retro CoderThemes in package: 6
A warm retro VS Code theme inspired by afternoon sunlight, vintage computers, and plum-colored sunsets.
A warm retro VS Code theme inspired by afternoon sunlight, vintage computers, and plum-colored sunsets.
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 |
|---|---|---|
| source, text.html, text.html.markdown | #E6D3B5 | |
| comment, punctuation.definition.comment | #AD9785 | italic |
| string, string.quoted, string.template, punctuation.definition.string | #B5BE8A | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #A9B59B | — |
| constant.numeric, constant.language, constant.character, constant.other | #D6A086 | — |
| keyword, keyword.control, storage.type, storage.modifier | #D99A79 | — |
| entity.name.function, support.function | #DFB374 | — |
| entity.name.type, entity.name.class, support.type, support.class, storage.type.class | #D6C28E | — |
| variable, variable.other, variable.parameter, entity.name.variable | #DFCCB0 | — |
| variable.other.property, variable.other.object.property, support.type.property-name, meta.object-literal.key | #DFCCB0 | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #C4AD91 | — |
| entity.name.namespace, entity.name.module, support.other.namespace | #D6C28E | — |
| punctuation.decorator, storage.type.annotation, entity.name.function.decorator | #D99A79 | — |
| entity.name.tag, support.class.component | #D99A79 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #DFB374 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #D6C28E | — |
| support.type.property-name.css, meta.property-name.css, meta.property-name.scss | #DFCCB0 | — |
| markup.heading, entity.name.section.markdown | #DFB374 | bold |
| markup.underline.link, string.other.link, meta.link.inline.markdown | #D6C28E | underline |
| markup.bold | #DFB374 | bold |
| markup.italic | #D6A086 | italic |
| markup.inline.raw, markup.fenced_code.block | #B5BE8A | — |
| markup.inserted | #B5BE8A | — |
| markup.deleted | #DF9285 | — |
| invalid, invalid.illegal, invalid.deprecated | #DF9285 | underline |
| support.type.property-name.json, string.json support.type.property-name, entity.name.tag.yaml | #DFCCB0 | — |
| string.regexp, constant.character.escape.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #A9B59B | — |
| variable.function | #DFB374 | — |
| markup.bold markup.italic, markup.italic markup.bold | #DFB374 | bold 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}!`;
}