Indian Theme
Publisher: Jigyarth JoshiThemes in package: 1
A soothing theme with colours of the Indian Flag ๐งก๐ค๐
A soothing theme with colours of the Indian Flag ๐งก๐ค๐
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 | #888888 | italic |
| comment.documentation, comment.block.documentation | #138808 | โ |
| invalid.illegal | #cc3300 | โ |
| keyword.operator | #666666 | โ |
| keyword, storage | #ff6600 | bold |
| storage.type, support.type | #0f6606 | โ |
| constant.language, support.constant, variable.language | #ff9933 | โ |
| variable, support.variable | #2d4a2b | โ |
| entity.name.function, support.function | #ff6600 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #138808 | bold |
| entity.name.exception | #cc3300 | โ |
| entity.name.section | #ff6600 | bold |
| constant.numeric, constant.character, constant | #ff9933 | โ |
| string | #138808 | โ |
| constant.character.escape | #666666 | โ |
| string.regexp | #ff6600 | โ |
| constant.other.symbol | #ff9933 | โ |
| punctuation | #666666 | โ |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #ff9933 | โ |
| entity.name.tag | #ff6600 | โ |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #138808 | italic |
| constant.character.entity, punctuation.definition.entity | #ff9933 | โ |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #138808 | โ |
| meta.property-name, support.type.property-name | #ff6600 | โ |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #138808 | โ |
| keyword.other.important | #ff6600 | bold |
| markup.heading | #ff6600 | bold |
| markup.bold | #ff9933 | bold |
| markup.italic | #138808 | italic |
| meta.link | #ff6600 | โ |
| markup.inline.raw | #ff9933 | |
| markup.list | #ff6600 | โ |
| markup.quote | #138808 | โ |
| support.type.property-name.json | #ff6600 | โ |
| string.quoted.double.json | #138808 | โ |
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}!`;
}