MohitKhare Dev
Publisher: PackDataAnalystThemes in package: 1
A clean, modern dark theme with deep purple tones and cyan highlights. Built for developers who value clarity and focus. By MohitKhare.
A clean, modern dark theme with deep purple tones and cyan highlights. Built for developers who value clarity and focus. By MohitKhare.
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 | #4a3870 | italic |
| string, string.quoted | #4ade80 | — |
| constant.numeric | #ffd740 | — |
| constant.language | #ff5252 | — |
| constant.character, constant.other | #ffd740 | — |
| keyword, storage.type, storage.modifier | #e040fb | — |
| keyword.operator | #00bcd4 | — |
| entity.name.function, meta.function-call, support.function | #7c4dff | — |
| entity.name.type, entity.name.class, support.class | #00bcd4 | — |
| variable, variable.other | #d0c8e0 | — |
| variable.parameter | #ffd740 | italic |
| variable.other.property, support.type.property-name | #80deea | — |
| entity.name.tag | #e040fb | — |
| entity.other.attribute-name | #00bcd4 | italic |
| punctuation.definition.tag | #6a5890 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #00bcd4 | — |
| support.type.property-name.css | #80deea | — |
| support.constant.property-value.css | #4ade80 | — |
| string.regexp | #ff8a80 | — |
| constant.character.escape | #ffd740 | — |
| meta.embedded | #d0c8e0 | — |
| markup.heading, entity.name.section | #00bcd4 | bold |
| markup.bold | #ffd740 | bold |
| markup.italic | #e040fb | italic |
| markup.underline.link | #7c4dff | — |
| markup.inline.raw, markup.fenced_code.block | #4ade80 | — |
| support.type.property-name.json | #00bcd4 | — |
| meta.decorator | #e040fb | — |
| meta.type.annotation, support.type | #80deea | — |
| invalid | #ff5252 | underline |
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}!`;
}