Menelik
Publisher: Mansa MuntariThemes in package: 2
A subtle, dark Visual Studio Code theme with minimal flair
A subtle, dark Visual Studio Code theme with minimal flair
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 |
|---|---|---|
| invalid | #FF6250 | — |
| invalid.deprecated | #D9D9D9BF | underline |
| log.warning | #F8FA9E | — |
| log.error | #FF6250 | — |
| punctuation.separator.scope-resolution, punctuation.separator.pointer-access, punctuation.separator.key-value, punctuation.section.embedded, punctuation.definition.block.sequence.item, punctuation.definition.entity, punctuation.definition.template-expression, punctuation.definition.interpolation, source.r punctuation.accessor | #85F4AC | bold |
| punctuation.definition.math, punctuation.definition.list.begin.markdown | — | bold |
| punctuation.definition.group.regexp | #E2CA89 | — |
| constant | #C6DB7B | — |
| constant.character.escape | #85F4AC | — |
| constant.regexp | #C6DB7B | — |
| constant.other.color | #D9D9D9 | underline |
| entity.name.function | #258870 | — |
| entity.name.type | #E2CA89 | italic |
| entity.name.type.class, entity.name.class | #E2CA89 | |
| entity.name.tag | #F8FA9E | — |
| entity.name.variable.parameter | #848A75 | italic |
| entity.name.section.markdown | #85F4AC | — |
| entity.other.inherited-class | #E2CA89 | italic |
| entity.other.attribute-name | #258870 | italic |
| keyword | #85F4AC | — |
| keyword.type, keyword.other.type | #F8FA9E | — |
| keyword.operator.other.powershell | #D9D9D9 | — |
| storage | #F8FA9E | — |
| source.go storage.type, source.java storage.type | #E2CA89 | italic |
| storage.modifier | #F8FA9E | — |
| storage.modifier.import | #D9D9D9 | — |
| support.function | #E2CA89 | — |
| support.function.r | #F8FA9E | — |
| support.type, support.class, support.other.escape.special.regexp, support.other.parenthesis.regexp | #E2CA89 | italic |
| support.type.property-name | — | |
| support.function.magic, support.variable, support.constant | #C6DB7B | — |
| variable | #D9D9D9 | — |
| variable.parameter | #848A75 | italic |
| variable.language, variable.parameter.function.language.special, variable.other.readwrite.instance.ruby | #C6DB7B | italic |
| variable.other.constant, variable.other.predefined | #C6DB7B | — |
| string | #DAEEC6 | — |
| string.other.link.title, string.other.link.description | #E2CA89 | — |
| markup.inserted | #008042 | — |
| markup.changed | #EEB948 | — |
| markup.deleted | #FF6250 | — |
| markup.bold | #848A75 | bold |
| markup.italic | #848A75 | italic |
| markup.strikethrough | #848A75 | — |
| markup.heading | #85F4AC | — |
| markup.quote | #DAEEC6 | — |
| markup.inline.raw | #F8FA9E | — |
| markup.underline.link | #258870 | — |
| meta.separator.markdown | #595959 | — |
| fenced_code.block.language | #F8FA9E | — |
| comment | #595959 | italic |
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}!`;
}