Gruvbox Material imno
Publisher: imnoThemes in package: 1
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 |
|---|---|---|
| keyword, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.extends | #ea6962 | — |
| keyword.other.debugger | #ea6962 | — |
| storage, modifier, keyword.var, entity.name.tag, keyword.control.case, keyword.control.switch | #ea6962 | — |
| keyword.operator | #e78a4e | — |
| string, punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #89b482 | — |
| entity.other.attribute-name | #d8a657 | — |
| constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation | #a9b665 | — |
| entity.name.function.preprocessor, entity.name.function, support.function, meta.function, meta.function-call, meta.definition.method | #a9b665 | — |
| keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map | #ea6962 | — |
| storage.type.annotation | #89b482 | — |
| entity.name.label, constant.other.label | #89b482 | — |
| support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module | #89b482 | — |
| storage.type, support.type, entity.name.type, keyword.type | #d8a657 | — |
| entity.name.type.class, support.class, entity.name.class, entity.other.inherited-class, storage.class | #d8a657 | — |
| constant.numeric | #d3869b | — |
| constant.language.boolean | #d3869b | — |
| entity.name.function.preprocessor | #a9b665 | — |
| variable.language.this, variable.language.self, variable.language.super, keyword.other.this, variable.language.special, constant.language.null, constant.language.undefined, constant.language.nan, variable.parameter.function.language.special.self.python | #d3869b | — |
| constant.language, support.constant | #d3869b | — |
| variable, support.variable, meta.definition.variable, constant.other.caps.rust | #d4be98 | — |
| support.type.property-name.json, variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key | #7daea3 | — |
| comment, string.comment, punctuation.definition.comment | #928374 | italic |
| storage.type.struct, storage.type.union.c | #ea6962 | — |
| support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml | #7DAEA3 | — |
| punctuation.terminator, constant.character.escape.line-continuation | #7c6f64 | — |
| keyword.cmake | #a9b665 | — |
| punctuation, meta.brace, meta.delimiter, meta.bracket | #d4be98 | — |
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}!`;
}