Igov's Theme Collection
Publisher: Tsvetan IgovThemes in package: 2
A collection of VSCode skins that follow the same theme
A collection of VSCode skins that follow the same theme
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 |
|---|---|---|
| entity.other.attribute-name.html, support.type.property-name, punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #bd93f9 | — |
| keyword, keyword.operator.new, storage, punctuation.definition.keyword | #ff79c6 | — |
| keyword.operator, punctuation, meta.selector.pseudo-class, entity.other.attribute-name.pseudo-class | #ff79c6 | — |
| constant | #50fa7b | — |
| string, punctuation.definition.string, string.other.link.title.markdown, meta.at-rule.apply.tailwind | #50fa7b | — |
| comment, punctuation.definition.comment, markup.fenced_code.block.markdown | #6272a4 | — |
| meta.selector, punctuation.definition.entity | #f1fa8c | — |
| entity.name.tag | #ffb86c | — |
| meta.function | #8be9fd | — |
| markup.italic.markdown | #50fa7b | italic |
| markup.strikethrough.markdown | #bd93f9 | strikethrough |
| markup.underline.link | #8be9fd | underline |
| markup.bold.markdown | #ffb86c | bold |
| markup.heading.markdown, meta.separator.markdown | #ffb86c | bold |
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}!`;
}