murora
Publisher: Muhammad MwinchandeThemes in package: 4
A VS Code theme based on Nord colors with Aurora accents, and Added one dark alternative with more visible colors, and variant light theme with less eye strain.
A VS Code theme based on Nord colors with Aurora accents, and Added one dark alternative with more visible colors, and variant light theme with less eye strain.
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 | #454545 | italic |
| comment.block.documentation, comment.line.documentation | #777777 | italic |
| string, string.quoted | #222222 | — |
| constant.numeric | #222222 | — |
| keyword, storage.type, storage.modifier | #4285f4 | — |
| keyword.operator | #555555 | — |
| entity.name.function, support.function | #34a853 | — |
| meta.function-call, variable.function | #33a652 | — |
| entity.name.class, entity.name.type, support.class | #ea4334 | — |
| variable, variable.other | #ea4334 | — |
| constant, constant.language, support.constant | #34a853 | bold |
| support.type, support.variable, variable.language | #34a853 | italic |
| entity.name.tag | #4285f4 | — |
| entity.other.attribute-name | #34a853 | — |
| support.type.property-name.json | #4285f4 | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #34a853 | — |
| variable.other.php, punctuation.definition.variable.php | #ea4334 | — |
| variable.other.property.php | #34a853 | — |
| storage.type.php, keyword.other.type.php | #ea4334 | — |
| support.function.js, support.function.dom.js | #8e00 | — |
| variable.other.object.property.js | #8e00 | — |
| markup.inline.raw.markdown, markup.fenced_code.block.markdown | #424242 | italic |
| punctuation.definition.markdown | #000000 | — |
| entity.name.tag.yaml | #34a853 | — |
| invalid.deprecated | #ea4334 | strikethrough |
| invalid | #e84135 | — |
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}!`;
}