Hellfire Theme
Publisher: Alex CharbonneauThemes in package: 1
A blazing red and black VS Code theme with animated fire background (requires Custom CSS and JS Loader).
A blazing red and black VS Code theme with animated fire background (requires Custom CSS and JS Loader).
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 | #cc7744 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.other.important | #ff3311 | bold |
| storage, storage.type, storage.modifier | #ff5522 | bold |
| keyword.operator | #ff6633 | — |
| string, string.quoted, string.template, string.interpolated | #ffaa55 | — |
| constant.character.escape, string.regexp, keyword.operator.quantifier.regexp | #ff7722 | — |
| constant.numeric | #ff6644 | — |
| constant.language | #ff4422 | bold |
| entity.name.function, support.function, meta.function-call entity.name.function | #ff7744 | — |
| variable.parameter | #ffcc88 | italic |
| entity.name.class, entity.name.type, support.class, support.type | #ff8855 | — |
| entity.name.type.alias, entity.name.type.class, entity.name.type.interface | #ff9966 | — |
| entity.other.inherited-class | #ff7744 | italic |
| variable, variable.other.readwrite | #f0c090 | — |
| variable.other.property, variable.other.object.property, support.variable.property | #ffbb77 | — |
| variable.other.constant, constant.other | #ff9944 | bold |
| punctuation, meta.brace, punctuation.bracket, punctuation.separator, punctuation.terminator | #cc5533 | — |
| entity.name.tag, support.class.component | #ff4422 | bold |
| entity.other.attribute-name | #ff8844 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #ff5533 | — |
| support.type.property-name.css | #ff9966 | — |
| constant.numeric.css, keyword.other.unit.css, support.constant.property-value.css | #ffbb55 | — |
| entity.name.section.markdown, markup.heading | #ff5522 | bold |
| markup.bold | #ff7744 | bold |
| markup.italic | #ff9966 | italic |
| markup.inline.raw, markup.fenced_code | #ff8844 | — |
| markup.underline.link | #ff6633 | — |
| entity.name.module, support.module, keyword.control.import, keyword.control.export, keyword.control.from | #ff4411 | bold |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #ff3300 | italic |
| support.type.property-name.json, string.json meta.structure.dictionary.json | #ff7744 | — |
| invalid | #ff0000 | bold underline |
| invalid.deprecated | #cc3300 | 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}!`;
}