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, comment.block.documentation | #4d8f6a | italic |
| string, string.quoted, string.template, string.interpolated, string.regexp | #ffee58 | — |
| string.template, punctuation.definition.string.template | #fff176 | — |
| constant.character.escape | #ffb74d | bold |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #ff5370 | bold |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #ff6b8a | bold |
| entity.name.function, meta.function-call entity.name.function, support.function, keyword.other.special-method | #40c4ff | bold |
| meta.function-call, variable.function | #64b5f6 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.other.inherited-class | #82b1ff | bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #ffb74d | — |
| constant.language.boolean | #ff9800 | bold |
| constant.language.null, constant.language.undefined | #ff5370 | bold |
| variable, variable.other, variable.parameter | #ff80ff | — |
| variable.language.this, variable.language.self | #ff5370 | italic bold |
| variable.other.property, support.variable.property, meta.object-literal.key, entity.name.tag.yaml | #1aff8c | — |
| meta.object-literal.key, string.unquoted.yaml | #00ff88 | — |
| constant, variable.other.constant, support.constant | #39ff14 | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #00ff66 | — |
| keyword.operator.assignment | #39ff14 | bold |
| punctuation, punctuation.separator, punctuation.terminator | #66ff99 | — |
| punctuation.section.brackets, punctuation.section.parens, punctuation.section.braces | #00d463 | — |
| entity.name.tag, meta.tag, markup.deleted.git_gutter | #ff5370 | bold |
| entity.other.attribute-name, meta.attribute | #82b1ff | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #40c4ff | bold |
| entity.name.type.module | #64b5f6 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #1aff8c | — |
| support.type.property-name.css, meta.property-name | #00ff88 | — |
| support.constant.property-value.css, meta.property-value | #ffb74d | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #ff5370 | — |
| markup.heading, entity.name.section.markdown | #39ff14 | bold |
| markup.bold | #00ff88 | bold |
| markup.italic | #66ff99 | italic |
| markup.inline.raw, markup.fenced_code | #ffee58 | — |
| markup.underline.link | #40c4ff | — |
| markup.quote | #4d8f6a | italic |
| entity.name.function.decorator.python | #ffb74d | bold |
| variable.parameter.function.language.special.self.python | #ff5370 | italic bold |
| support.class.component.tsx, support.class.component.jsx | #82b1ff | bold |
| entity.name.type.ts, entity.name.type.tsx | #82b1ff | bold |
| string.regexp | #1aff8c | bold |
| string.quoted.docstring.multi.python | #66ff99 | italic |
| invalid, invalid.deprecated | #ffffff | bold |
| markup.inserted.git_gutter | #00ff66 | — |
| markup.changed.git_gutter | #ffb74d | — |
| markup.deleted.git_gutter | #ff5370 | — |
| log.info | #40c4ff | — |
| log.warning | #ffb74d | — |
| log.error | #ff5370 | — |
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}!`;
}