Retro '82
Publisher: penumbreThemes in package: 1
A Retro Teal and Amber Sci-Fi Theme for VS Code / Cursor
A Retro Teal and Amber Sci-Fi Theme for VS Code / Cursor
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 |
|---|---|---|
| meta.paragraph, markup.bold, markup.italic, markup.underline.link | #f6dcac | — |
| comment, punctuation.definition.comment | #134e5a | italic |
| constant, variable.language, variable.other.constant, support.constant | #f6dcac | — |
| constant.numeric, constant.other.color | #f6dcac | — |
| constant.language, constant.language.boolean, constant.language.null | #f6dcac | — |
| constant.character, constant.character.escape | #8cbfb8 | — |
| entity, entity.name | #faa968 | — |
| entity.name.function, meta.function-call, support.function, entity.name.method | #faa968 | — |
| entity.name.type, entity.name.class, support.type, support.class | #3f8f8a | — |
| entity.name.section, entity.name.tag, meta.tag | #f85525 | — |
| entity.other.attribute-name, entity.other.attribute-name.id | #faa968 | — |
| entity.other.attribute-name.class.css | #e97b3c | — |
| invalid, invalid.illegal | #f85525 | — |
| invalid.deprecated | #f6dcac | — |
| keyword, keyword.control, storage, storage.type | #e97b3c | — |
| keyword.operator, punctuation.definition.keyword | #f6dcac | — |
| keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.logical | #a7c9c6 | — |
| keyword.other.import, keyword.control.import, keyword.control.package, keyword.other.package | #e97b3c | — |
| markup.bold | — | bold |
| markup.changed | #e97b3c | — |
| markup.deleted | #f85525 | — |
| markup.inserted | #028391 | — |
| markup.italic | — | italic |
| markup.list, markup.list.numbered, markup.list.unnumbered | #f85525 | — |
| markup.quote | #028391 | italic |
| markup.raw, markup.fenced_code.block | #8cbfb8 | — |
| markup.underline | — | — |
| markup.underline.link, markup.underline.link.image | #faa968 | — |
| meta.link, meta.image | #faa968 | — |
| meta.separator | #134e5a | — |
| meta.diff, meta.diff.header | #3f8f8a | — |
| meta.diff.range | #faa968 | — |
| meta.diff.index, meta.diff.header.from-file, meta.diff.header.to-file | #f6dcac | — |
| punctuation, punctuation.separator, punctuation.terminator | #5f8f96 | — |
| punctuation.definition.interpolation | #faa968 | — |
| punctuation.section.embedded, punctuation.definition.template-expression | #e97b3c | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple | #028391 | — |
| string.regexp, string.regexp.keyword | #8cbfb8 | — |
| string.unquoted, string.other | #f6dcac | — |
| string.interpolated, string.template | #028391 | — |
| string.key, string.other.key | #f6dcac | — |
| support, support.function, support.class, support.type | #8cbfb8 | — |
| support.variable, support.other.variable | #faa968 | — |
| support.constant | #f6dcac | — |
| variable, variable.other | #a7c9c6 | — |
| variable.parameter, variable.parameter.function | #f6dcac | — |
| variable.other.object, variable.other.property | #a7c9c6 | — |
| variable.other.constant | #f6dcac | — |
| variable.language, variable.language.special | #e97b3c | — |
| embedding, punctuation.section.embedded | #faa968 | — |
| meta.embedded, source.embedded | #f6dcac | — |
| meta.preprocessor, meta.preprocessor.numeric | #e97b3c | — |
| meta.annotation | #faa968 | — |
| storage.modifier, storage.type | #e97b3c | — |
| storage.type.function | #faa968 | — |
| storage.type.class, storage.type.interface, storage.type.enum | #3f8f8a | — |
| variable.other.readwrite | #a7c9c6 | — |
| variable.other.object.property | #a7c9c6 | — |
| variable.other.block | #f6dcac | — |
| punctuation.definition.arguments, punctuation.definition.array, punctuation.definition.parameters | #5f8f96 | — |
| punctuation.definition.dictionary, punctuation.definition.list, punctuation.definition.map | #5f8f96 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #028391 | — |
| punctuation.definition.variable | #faa968 | — |
| punctuation.definition.comment | #134e5a | — |
| punctuation.definition.tag | #5f8f96 | — |
| meta.tag, entity.name.tag | #f85525 | — |
| meta.tag.other, meta.tag.structure | #f85525 | — |
| meta.tag.inline, meta.tag.block | #f85525 | — |
| entity.other.attribute-name | #faa968 | — |
| meta.selector, entity.other.attribute-name.tag | #e97b3c | — |
| meta.property-value, meta.property-list | #f6dcac | — |
| support.type.property-name, meta.property-name | #a7c9c6 | — |
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}!`;
}