Amber CRT Spectrum
Publisher: ckoryomThemes in package: 1
A warm phosphor-inspired VS Code theme with vivid syntax highlighting.
A warm phosphor-inspired VS Code theme with vivid syntax highlighting.
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 | #9A7745 | italic |
| keyword, storage, storage.type, storage.modifier | #FFB000 | bold |
| keyword.control, keyword.operator.new, keyword.operator.expression | #FF6B9D | — |
| constant, constant.language, constant.numeric, constant.character | #B78CFF | — |
| string, string.quoted, string.template | #9BE564 | — |
| string.regexp | #FF9F43 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #54D6E8 | — |
| entity.name.type, support.type, entity.name.class, entity.name.interface, support.class | #FFD166 | bold |
| variable, meta.definition.variable | #F4D58A | — |
| variable.language, variable.parameter | #FF9F43 | — |
| entity.name.tag | #FF6B9D | — |
| entity.other.attribute-name | #54D6E8 | — |
| punctuation.definition.tag, punctuation, meta.brace | #D1B477 | — |
| support.constant, support.variable | #B78CFF | — |
| markup.heading, markup.bold | #FFD75A | bold |
| markup.italic | #FF9F43 | italic |
| markup.inline.raw, markup.fenced_code.block, markup.raw | #54D6E8 | — |
| markup.list, markup.quote | #D1B477 | — |
| invalid | #FF6B6B | underline |
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}!`;
}