Tbilisi Night
Publisher: Ioseb KoplatadzeThemes in package: 3
A beautiful dark, light, and storm theme inspired by the warm nights of Tbilisi
A beautiful dark, light, and storm theme inspired by the warm nights of Tbilisi
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 | #6b7a8f | italic |
| string, string.quoted, string.template | #7fb069 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #ffb366 | — |
| keyword, storage.type, storage.modifier, keyword.control | #b88bc7 | bold |
| entity.name.function, meta.function-call.generic, support.function | #6b9bd1 | — |
| entity.name.class, entity.name.type.class, support.class | #ffb366 | bold |
| variable, variable.other, variable.parameter | #e8e3f0 | — |
| entity.name.type, support.type, storage.type | #5fb3b3 | — |
| variable.other.property, support.type.property-name | #d4a8e0 | — |
| entity.name.tag, punctuation.definition.tag | #e85a5a | — |
| entity.other.attribute-name | #ffb366 | — |
| constant, constant.other, constant.language | #ff8c42 | — |
| keyword.operator, punctuation | #b8a8d0 | — |
| string.regexp | #5fb3b3 | — |
| markup.bold | #ffb366 | bold |
| markup.italic | — | italic |
| markup.heading | #ffb366 | bold |
| markup.underline.link | #6b9bd1 | underline |
| markup.inline.raw, markup.fenced_code.block | #b88bc7 | — |
| meta.diff.header | #6b9bd1 | — |
| markup.deleted | #e85a5a | — |
| markup.inserted | #7fb069 | — |
| invalid, invalid.illegal | #e85a5a | — |
| invalid.deprecated | #ffb366 | strikethrough |
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}!`;
}