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 | #6a9955 | italic |
| keyword, storage.type, storage.modifier | #569cd6 | — |
| keyword.control | #c586c0 | — |
| string, constant.other.placeholder | #ce9178 | — |
| constant.numeric | #b5cea8 | — |
| entity.name.function, meta.function-call, support.function | #dcdcaa | — |
| variable, entity.name.variable | #9cdcfe | — |
| entity.name.type, entity.name.class, support.type, support.class | #4ec9b0 | — |
| constant, entity.name.constant, variable.other.constant | #4fc1ff | — |
| entity.name.tag | #569cd6 | — |
| entity.other.attribute-name | #9cdcfe | — |
| string.quoted, meta.attribute-value | #ce9178 | — |
| entity.name.type.class, meta.class | #4ec9b0 | — |
| entity.name.function.method, meta.method | #dcdcaa | — |
| variable.other.property, meta.property, support.type.property-name | #9cdcfe | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #c586c0 | — |
| punctuation.decorator, meta.decorator, entity.name.function.decorator | #dcdcaa | — |
| string.template | #ce9178 | — |
| meta.template.expression, punctuation.definition.template-expression | #569cd6 | — |
| string.regexp | #d16969 | — |
| keyword.operator | #d4d4d4 | — |
| punctuation | #d4d4d4 | — |
| support.type.property-name.json | #9cdcfe | — |
| markup.heading, entity.name.section.markdown | #569cd6 | bold |
| markup.bold | #569cd6 | bold |
| markup.italic | #c586c0 | italic |
| markup.underline.link, string.other.link | #ce9178 | — |
| markup.inline.raw, markup.fenced_code | #ce9178 | — |
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}!`;
}