MR Theme
Publisher: Ramesh MavuluriThemes in package: 8
Professional color themes for VS Code and Cursor — Midnight, Carbon, Aurora, Harbor, and more
Professional color themes for VS Code and Cursor — Midnight, Carbon, Aurora, Harbor, and more
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 | #6e7781 | italic |
| keyword, storage.type, storage.modifier | #cf222e | — |
| keyword.control | #cf222e | — |
| string, constant.other.placeholder | #0a3069 | — |
| constant.numeric | #0550ae | — |
| entity.name.function, meta.function-call, support.function | #8250df | — |
| variable, entity.name.variable | #24292f | — |
| entity.name.type, entity.name.class, support.type, support.class | #953800 | — |
| constant, entity.name.constant, variable.other.constant | #0550ae | — |
| entity.name.tag | #116329 | — |
| entity.other.attribute-name | #0550ae | — |
| string.quoted, meta.attribute-value | #0a3069 | — |
| entity.name.type.class, meta.class | #953800 | — |
| entity.name.function.method, meta.method | #8250df | — |
| variable.other.property, meta.property, support.type.property-name | #0550ae | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #cf222e | — |
| punctuation.decorator, meta.decorator, entity.name.function.decorator | #8250df | — |
| string.template | #0a3069 | — |
| meta.template.expression, punctuation.definition.template-expression | #cf222e | — |
| string.regexp | #0a3069 | — |
| keyword.operator | #24292f | — |
| support.type.property-name.json | #0550ae | — |
| markup.heading, entity.name.section.markdown | #0550ae | bold |
| markup.bold | #24292f | bold |
| markup.italic | #24292f | italic |
| markup.underline.link, string.other.link | #0969da | — |
| markup.inline.raw, markup.fenced_code | #cf222e | — |
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}!`;
}