Theme Icon Pack
Publisher: SecureDevThemes in package: 5
Theme Icon Pack is a comprehensive VS Code extension featuring beautiful dark and light themes with matching icon sets, providing a complete visual experience for developers. 🚀
Theme Icon Pack is a comprehensive VS Code extension featuring beautiful dark and light themes with matching icon sets, providing a complete visual experience for developers. 🚀
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 | #4d8866 | italic |
| string, string.quoted | #ffcc00 | — |
| string.regexp | #ff00ff | — |
| constant.numeric, constant.language, constant.character | #ff66ff | — |
| constant.character.escape, constant.other.placeholder | #00ffff | — |
| keyword, storage.type, storage.modifier | #00ff41 | bold |
| keyword.control, keyword.operator | #4dff7f | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment | #00ff41 | — |
| entity.name.function, meta.function-call, support.function | #4da6ff | |
| entity.name.type, entity.name.class, support.type, support.class | #00ffff | bold |
| entity.name.tag | #00ff41 | bold |
| entity.other.attribute-name | #66ff99 | italic |
| variable, variable.other | #e0f2e9 | — |
| variable.parameter | #ffcc00 | italic |
| variable.language | #ff66ff | italic bold |
| support.constant | #ff66ff | — |
| meta.import, meta.export | #00ff41 | — |
| punctuation.definition.tag | #00ff41 | — |
| punctuation.separator, punctuation.terminator | #a8d4bb | — |
| meta.brace, punctuation.section | #00ff41 | — |
| markup.heading | #00ff41 | bold |
| markup.italic | #ffcc00 | italic |
| markup.bold | #00ff41 | bold |
| markup.underline.link | #4da6ff | underline |
| markup.inline.raw, markup.fenced_code | #66ff99 | — |
| markup.quote | #4d8866 | italic |
| markup.list | #00ff41 | — |
| invalid, invalid.illegal | #ffffff | — |
| entity.name.section | #00ffff | bold |
| meta.property-name, support.type.property-name | #66ff99 | — |
| meta.object-literal.key | #66ff99 | — |
| support.variable | #ff66ff | — |
| entity.name.module | #00ffff | — |
| variable.other.constant | #ff66ff | bold |
| meta.decorator | #ff00ff | — |
| entity.other.inherited-class | #00ffff | — |
| support.other.namespace | #00ffff | — |
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}!`;
}