manjulika-theme
Publisher: manjulika-by-monuThemes in package: 2
Deep sindoor red and warm temple yellow blend like fire and ritual, creating a powerful, haunting presence.
Deep sindoor red and warm temple yellow blend like fire and ritual, creating a powerful, haunting presence.
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 | #6a737d | italic |
| string | #ffd25f | — |
| constant.numeric, constant.character.numeric | #d7702f | |
| constant.language, punctuation.definition.constant, variable.other.constant | #d73a49 | — |
| constant.character.escape | #ff5a3b | — |
| variable | #24292e | — |
| punctuation.accessor, keyword | #d73a49 | |
| storage, meta.var.expr, storage.type.property.js, storage.type.property.ts | #d73a49 | |
| storage.type | #d73a49 | — |
| entity.name.class, meta.class entity.name.type.class | #d7702f | — |
| entity.other.inherited-class | #ffd25f | — |
| entity.name.function | #d7702f | |
| entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #d73a49 | |
| entity.other.attribute-name | #ffd25f | |
| support.function, support.constant | #d7702f | — |
| support.type, support.class | #ffd25f | — |
| invalid | #ffffff | — |
| keyword.operator | #ff5a3b | |
| keyword.operator.relational | #d73a49 | |
| keyword.operator.logical | #d73a49 | |
| constant.language.boolean | #d73a49 | — |
| constant.language.null | #d73a49 | — |
| meta.brace | #d7702f | — |
| variable.language | #ff5a3b | — |
| variable.interpolation | #d73a49 | — |
| meta.function-call | #d7702f | — |
| meta.property-name | #ffd25f | — |
| entity.name.tag.custom | #ff5a3b | — |
| entity.other.attribute-name.id | #d7702f | — |
| markup.bold | #ffd25f | bold |
| markup.italic | #ff5a3b | italic |
| markup.heading | #d73a49 | bold |
| markup.quote | #6a737d | italic |
| markup.raw | #ffd25f | — |
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}!`;
}