HUIX-THEME
Publisher: huix-2099Themes in package: 1
Premium dark VS Code theme with Orange, Green & Gray syntax colors. Built by Victor Edet Coleman for HUIX-2099.
Premium dark VS Code theme with Orange, Green & Gray syntax colors. Built by Victor Edet Coleman for HUIX-2099.
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 | #666666 | italic |
| string, punctuation.definition.string | #00FF66 | — |
| string.template, punctuation.definition.string.template | #00FF66 | — |
| punctuation.definition.template-expression, meta.template.expression | #FF9500 | — |
| constant.numeric | #FF9500 | — |
| constant.language | #FF9500 | — |
| keyword, storage.type, storage.modifier | #FF9500 | — |
| keyword.control | #FF9500 | — |
| keyword.operator | #999999 | — |
| entity.name.function, support.function | #00FF66 | — |
| meta.function-call entity.name.function | #00FF66 | — |
| entity.name.type, entity.name.class, support.type, support.class | #FF9500 | — |
| entity.name.type.interface | #FF9500 | italic |
| variable, variable.other | #E0E0E0 | — |
| variable.other.constant | #FF9500 | — |
| variable.parameter | #AAAAAA | italic |
| variable.other.property, support.variable.property | #AAAAAA | — |
| meta.object-literal.key, support.type.property-name | #00FF66 | — |
| punctuation | #888888 | — |
| punctuation.definition.block, meta.brace | #999999 | — |
| entity.name.tag | #FF9500 | — |
| entity.other.attribute-name | #00FF66 | — |
| support.type.property-name.css | #00FF66 | — |
| support.constant.property-value.css | #FF9500 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #00FF66 | — |
| string.regexp | #FF9500 | — |
| constant.character.escape | #FF9500 | — |
| markup.heading, entity.name.section | #FF9500 | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #BBBBBB | italic |
| markup.underline.link | #FF9500 | — |
| markup.inline.raw, markup.fenced_code.block | #00FF66 | — |
| punctuation.definition.list.begin.markdown | #FF9500 | — |
| markup.inserted | #00FF66 | — |
| markup.deleted | #FF5555 | — |
| invalid | #FF5555 | — |
| meta.decorator, entity.name.function.decorator | #FF9500 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #FF9500 | — |
| variable.language.this, variable.language.self | #FF9500 | italic |
| support.type.property-name.json | #00FF66 | — |
| meta.structure.dictionary.value.json string.quoted | #00FF66 | — |
| entity.name.tag.yaml | #00FF66 | — |
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}!`;
}