Afterimage — Phosphor & Infrared
Publisher: qianlei228Themes in package: 2
Two radical color themes: Phosphor (monochromatic green CRT) and Infrared (thermal imaging gradient). Not another dark theme.
Two radical color themes: Phosphor (monochromatic green CRT) and Infrared (thermal imaging gradient). Not another dark theme.
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 | #1a401a | italic |
| comment.block.documentation | #225522 | italic |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.flow, keyword.control.trycatch | #77ff55 | bold |
| storage, storage.type, storage.modifier, keyword.function, keyword.var, keyword.const, keyword.let | #66ee44 | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.spread, keyword.operator.type, storage.type.function.arrow | #40cc88 | — |
| string, string.quoted, string.template | #55cc33 | — |
| constant.character.escape | #88ff66 | bold |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #77ff55 | — |
| meta.template.expression | #3ab840 | — |
| string.regexp | #44ccaa | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp | #66ddbb | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #88ee55 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #77ff55 | bold italic |
| constant.other, variable.other.constant | #88ee60 | bold |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call | #44ee77 | — |
| meta.method-call entity.name.function, entity.name.function.member | #44ee77 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.module, support.type, support.class, entity.other.inherited-class | #55dd66 | italic |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.enum | #55dd66 | italic underline |
| entity.name.type.parameter | #66dd88 | italic |
| variable, variable.other, variable.other.readwrite | #3ab840 | — |
| variable.parameter | #30a838 | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #44aa44 | — |
| variable.language | #66ee44 | bold italic |
| punctuation, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.separator, punctuation.terminator, meta.brace.round, meta.brace.square, meta.brace.curly | #266a26 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #66dd88 | bold italic |
| entity.name.tag, punctuation.definition.tag | #44cc55 | — |
| support.class.component | #55dd66 | italic |
| entity.other.attribute-name | #44aa55 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #55ee55 | — |
| support.type.property-name.css | #44aa44 | — |
| support.constant.property-value.css | #55cc33 | — |
| keyword.other.unit.css | #88ee55 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #55dd66 | italic |
| support.type.property-name.json | #44cc55 | — |
| entity.name.tag.yaml | #44cc55 | — |
| markup.heading, entity.name.section.markdown | #77ff55 | bold |
| markup.bold | #66ee44 | bold |
| markup.italic | #55dd66 | italic |
| markup.underline.link | #44ccaa | — |
| markup.inline.raw, markup.fenced_code | #55cc33 | — |
| support.function.magic.python | #44ccaa | italic |
| support.function.builtin.go | #44ccaa | — |
| entity.name.function.target.makefile | #55ee55 | bold |
| markup.inserted | #00ff41 | — |
| markup.deleted | #ff3030 | — |
| markup.changed | #88ee55 | — |
| invalid, invalid.illegal | #ff3030 | bold underline |
| invalid.deprecated | #cccc20 | strikethrough |
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}!`;
}