EHA Code Dark
Publisher: Ethan HawkinsThemes in package: 1
Pure black theme matching JetBrains Rider jake-theme with Visual Studio Dark syntax highlighting
Pure black theme matching JetBrains Rider jake-theme with Visual Studio Dark syntax highlighting
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 | #57A64A | |
| comment.block.documentation, comment.block | #57A64A | — |
| keyword, storage.type, storage.modifier | #569CD6 | — |
| keyword.control, keyword.operator.new | #569CD6 | — |
| keyword.control.import, keyword.other.using | #DCDCDC | — |
| string, string.quoted | #D69D85 | — |
| constant.character.escape, constant.other.placeholder | #E07A00 | — |
| constant.numeric, constant.language | #B5CEA8 | — |
| constant.language.boolean, constant.language.null | #569CD6 | — |
| entity.name.function, support.function | #DCDCAA | — |
| entity.name.type, entity.name.class, support.class | #4EC9B0 | — |
| entity.name.type.interface, support.type.interface | #B8D7A3 | — |
| entity.name.type.enum | #B8D7A3 | — |
| variable, variable.other | #DCDCDC | — |
| variable.parameter | #DCDCDC | — |
| variable.language | #569CD6 | — |
| entity.name.tag, meta.tag | #569CD6 | — |
| entity.other.attribute-name | #9CDCFE | — |
| support.type.property-name | #9CDCFE | — |
| meta.property-name | #9CDCFE | — |
| punctuation | #DCDCDC | — |
| punctuation.definition.tag | #808080 | — |
| invalid | #FF3333 | — |
| markup.bold | #569CD6 | bold |
| markup.italic | — | italic |
| markup.heading | #569CD6 | bold |
| markup.inserted | #57A64A | — |
| markup.deleted | #D62525 | — |
| markup.changed | #569CD6 | — |
| markup.inline.raw, markup.fenced_code | #D69D85 | — |
| meta.embedded | #DCDCDC | — |
| meta.preprocessor | #9B9B9B | — |
| entity.name.section.group-title | #569CD6 | bold |
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}!`;
}