Natnael's Shade
Publisher: Natnael EshetuThemes in package: 1
A dark theme by natnael.
A dark theme by natnael.
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 | #667a8a | italic |
| comment.block.preprocessor | #667a8a | |
| comment.documentation, comment.block.documentation | #667a8a | — |
| invalid.illegal | #ac2f2f | — |
| keyword.operator | #7b8793 | — |
| keyword, storage | #81643b | |
| storage.type, support.type | #787878 | |
| constant.language, variable.language | #92b271 | — |
| variable, support.variable | #9a9a9a | — |
| entity.name.function, support.function | #739abf | |
| entity.name.type | #6c8484 | — |
| entity.other.inherited-class, support.class | #5889b7 | — |
| entity.name.exception | #ac2f2f | — |
| entity.name.section | — | bold |
| constant.numeric, constant | #92b271 | — |
| constant.character | #af8e5f | — |
| string | #aa9678 | — |
| constant.character.escape | #937d5d | — |
| string.regexp | #a68659 | — |
| constant.other.symbol, keyword.operator.expression.arrow | #7b8793 | — |
| punctuation | #7b8793 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #c1b5a4 | — |
| meta.tag, punctuation.definition.tag.html, text.html.basic, meta.tag.inline.any.html, source.html | #a38c6b | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.self-close.html | #636d79 | — |
| entity.name.tag | #4e8abf | |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #859aad | — |
| meta.tag entity.other.attribute-value, entity.other.attribute-value.html | #4884d1 | — |
| constant.character.entity, punctuation.definition.entity | #a38c6b | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css, entity.other.attribute-name.id.css | #6293c0 | — |
| meta.property-name, support.type.property-name.css, support.type.property-name | #929292 | — |
| meta.property-value.css, meta.property-value | #a7957c | — |
| constant.css, support.constant, support.constant.property-value.css | #b5986d | — |
| variable.css | #929292 | — |
| keyword.control.at-rule, keyword.control.at-rule.css | #9a6db5 | — |
| support.function.misc.css | #6993ba | — |
| string.quoted.double.css, string.quoted.single.css | #a7957c | — |
| keyword.other.unit | #929292 | — |
| punctuation.terminator.rule, punctuation.separator.key-value, punctuation.section.block.css | #727272 | — |
| constant.numeric.css, constant.other.color.rgb-value.hex.css | #798c63 | — |
| keyword.other.important | #8abf4e | — |
| markup.changed | #ababab | — |
| markup.deleted | #ababab | — |
| markup.italic | — | italic |
| markup.error | #ac2f2f | — |
| markup.inserted | #ababab | — |
| meta.link | #667a8a | — |
| markup.output, markup.raw | #a39b8f | — |
| markup.prompt | #a39b8f | — |
| markup.heading | #4c82b3 | — |
| markup.bold | — | bold |
| markup.traceback | #ac2f2f | — |
| markup.underline | — | underline |
| markup.quote | #798c63 | — |
| markup.list | #a39b8f | — |
| markup.bold, markup.italic | #ababab | — |
| markup.inline.raw | #a47f4b | |
| meta.diff.range, meta.diff.index, meta.separator | #a39b8f | — |
| meta.diff.header.from-file | #a39b8f | — |
| meta.diff.header.to-file | #a39b8f | — |
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}!`;
}