Dark Green Hacker
Publisher: Ing Joel CaraballoThemes in package: 3
A near-black VS Code theme with hacker green chrome and native-style syntax colors.
A near-black VS Code theme with hacker green chrome and native-style syntax colors.
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 | #72d572 | italic |
| text.plain, source.plaintext | #b7f7b0 | — |
| keyword, storage.type, storage.modifier, keyword.control | #569cd6 | — |
| entity.name.type.class, entity.name.type, support.type, support.class, entity.name.class, meta.class entity.name.type | #39ff14 | bold |
| entity.name.function, support.function, meta.function-call entity.name.function | #dcdcaa | — |
| string, constant.other.symbol | #a8d08d | — |
| text.html, text.html.basic | #b7f7b0 | — |
| constant.numeric, constant.language, constant.character | #b5cea8 | — |
| variable, variable.parameter, meta.definition.variable | #9cdcfe | — |
| keyword.operator, punctuation.accessor | #d4d4d4 | — |
| entity.name.tag, entity.other.attribute-name | #569cd6 | — |
| invalid, invalid.illegal | #ffffff | — |
| source.python keyword.control.python, source.python storage.type.function.python, source.python storage.type.class.python, source.python storage.modifier.async.python, source.python keyword.operator.logical.python, source.python keyword.operator.comparison.python | #7dff68 | bold |
| source.python entity.name.function.decorator.python, source.python entity.name.function.python, source.python entity.name.type.class.python | #39ff14 | bold |
| source.python meta.function.decorator.python, source.python support.function.builtin.python, source.python support.type.python | #4ec9b0 | — |
| source.python string.quoted.single.python, source.python string.quoted.double.python, source.python string.quoted.triple.single.python, source.python string.quoted.triple.double.python, source.python string.quoted.docstring.python, source.python string.unquoted.docstring.python, source.python string.interpolated.python | #b7f7b0 | — |
| source.python variable.language.special.self.python, source.python constant.language.python, source.python constant.numeric.python | #9cdcfe | — |
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}!`;
}