Moonero Theme
Publisher: Carr ThickeThemes in package: 1
A simple color theme for VSCode inspired by the Monero(cryptocurrency) colors
A simple color theme for VSCode inspired by the Monero(cryptocurrency) 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 |
|---|---|---|
| Global settings | #F4F4F4 | — |
| string | #0099ff | — |
| constant.language.boolean | #ff7519 | — |
| constant.numeric | #ffe00a | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #ffaf25 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #ff7519 | — |
| entity.name.function, support.function | #ffe00a | — |
| storage.type, storage.modifier | #ff7519 | — |
| support.module, support.node | #ffaf25 | italic |
| support.type | #5b9a6f | — |
| entity.name.type, entity.other.inherited-class | #5b9a6f | — |
| comment | #666666 | italic |
| entity.name.type.class | #5b9a6f | underline |
| variable.object.property | #5b9a6f | — |
| meta.definition.method entity.name.function | #5b9a6f | — |
| meta.function entity.name.function | #5b9a6f | — |
| template.expression.begin, template.expression.end | #ff7519 | — |
| entity.name.tag.yaml | #ffaf25 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #ffaf25 | — |
| constant.language.json | #ff7519 | — |
| entity.other.attribute-name.class | #ff7519 | — |
| entity.other.attribute-name.id | #0099ff | — |
| source.css entity.name.tag | #5b9a6f | — |
| meta.tag, punctuation.definition.tag | #ff7519 | — |
| entity.name.tag | #ffaf25 | — |
| entity.other.attribute-name | #ffe00a | — |
| markup.heading | #ff7519 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #ffaf25 | — |
| text.html.markdown beginning.punctuation.definition.list | #ff7519 | — |
| markup.italic | #ffaf25 | italic |
| markup.bold | #ffaf25 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #ffaf25 | italic bold |
| keyword.other.definition.ini | #ffaf25 | — |
| entity.name.section.group-title.ini | #ff7519 | — |
| source.cs meta.class.identifier storage.type | #5b9a6f | underline |
| source.cs meta.method.identifier entity.name.function | #5b9a6f | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #ffe00a | — |
| source.cs storage.type | #5b9a6f | — |
| source.cs meta.method.return-type | #5b9a6f | — |
| source.cs meta.preprocessor | #666666 | — |
| source.cs entity.name.type.namespace | #F4F4F4 | — |
| Global settings | #F4F4F4 | — |
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}!`;
}