Material Lava Fire Dark
Publisher: Martin1887Themes in package: 1
A warm atom theme darker than Atom Lava and with less contrast than Fire Lava Dark
A warm atom theme darker than Atom Lava and with less contrast than Fire Lava Dark
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 | #877770 | — |
| string | #c8574b | — |
| constant.numeric | #ff8700 | — |
| constant.language | #bb9970 | — |
| constant.character, constant.other | #bb9970 | — |
| variable | — | |
| keyword | #dd7050 | — |
| storage | #bb8770 | |
| storage.type | #bb5026 | — |
| entity.name.class | #bb8726 | — |
| entity.other.inherited-class | #bb8740 | — |
| entity.name.function | #dda415 | |
| variable.parameter | #bb8760 | — |
| entity.name.tag | #bb4040 | |
| entity.other.attribute-name | #aa8726 | |
| support.function | #bb8715 | |
| support.constant | #dd8740 | |
| support.type, support.class | #bb8726 | — |
| support.other.variable | — | |
| invalid | #878787 | |
| invalid.deprecated | #dd8787 | — |
| meta.structure.dictionary.json string.quoted.double.json | #bb4026 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #871515 | — |
| markup.inserted | #268726 | — |
| markup.changed | #876026 | — |
| constant.numeric.line-number.find-in-files - match | #FF8715A0 | — |
| entity.name.filename.find-in-files | #aa7026 | — |
| token.info-token | #264087 | — |
| token.warn-token | #876026 | — |
| token.error-token | #871515 | — |
| token.debug-token | #aa8787 | — |
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}!`;
}