ThemePaint
Publisher: Toqir AhmadThemes in package: 100
A pack of 100 modern color themes in 20 categories, with a one-click theme picker in the sidebar.
A pack of 100 modern color themes in 20 categories, with a one-click theme picker in the sidebar.
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 | #6f6f6f | italic |
| string, string.quoted, string.template | #42be65 | — |
| constant.numeric, constant.language, constant.character | #3ddbd9 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #ff7eb6 | — |
| entity.name.function, support.function, meta.function-call.generic | #82cfff | — |
| variable, meta.definition.variable.name, variable.other.readwrite | #dde1e6 | — |
| variable.parameter, parameter | #b9bcc1 | — |
| entity.name.type, support.type, support.class, entity.name.namespace | #ee5396 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #08bdba | — |
| keyword.operator | #33b1ff | — |
| entity.name.tag, punctuation.definition.tag | #ff7eb6 | — |
| entity.other.attribute-name | #82cfff | — |
| constant.other.color, support.constant | #3ddbd9 | — |
| entity.name.type.class | #ee5396 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.heading | #78a9ff | bold |
| invalid | #161616 | — |
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}!`;
}