skillzz
Publisher: SkillzzThemes in package: 1
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 | #6d6d6d | italic |
| keyword, storage.type, storage.modifier | #FF3F7F | — |
| keyword.control, keyword.control.flow | #B771E5 | — |
| variable, meta.definition.variable, entity.name.variable | #00f5d4 | — |
| variable.other.constant, variable.other.enummember, constant.language | #FFAF00 | — |
| variable.parameter, meta.function.parameter | #ffd670 | italic |
| entity.name.function, meta.function-call, support.function | #B6F500 | — |
| entity.name.type, entity.name.class, support.class, support.type | #3bf4fb | — |
| string, string.quoted, string.template | #ffd670 | — |
| constant.numeric | #FFAF00 | — |
| constant.language.boolean | #FF3F7F | — |
| punctuation, meta.brace, meta.bracket | #a0a0a0 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical | #B771E5 | — |
| entity.name.tag | #FF3F7F | — |
| entity.other.attribute-name | #B6F500 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class | #3bf4fb | — |
| support.constant.property-value, support.constant.color, constant.other.color, constant.other.rgb-value | #FFAF00 | — |
| meta.property-name, support.type.property-name, meta.object-literal.key | #00f5d4 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #B771E5 | — |
| invalid, invalid.illegal | #F5004F | underline |
| invalid.deprecated | #FFAF00 | underline |
| markup.heading, entity.name.section | #FF3F7F | bold |
| markup.bold | #B6F500 | bold |
| markup.italic | #3bf4fb | italic |
| markup.underline, markup.underline.link | #00f5d4 | underline |
| markup.quote | #ffd670 | italic |
| markup.raw, markup.inline.raw | #FFAF00 | — |
| markup.list | #00f5d4 | — |
| markup.inserted | #B6F500 | — |
| markup.deleted | #F5004F | — |
| markup.changed | #3bf4fb | — |
| string.regexp | #00f5d4 | — |
| constant.character.escape | #B771E5 | — |
| punctuation.definition.template-expression | #FF3F7F | — |
| variable.language.this, variable.language.self, variable.language.super | #FF3F7F | italic |
| storage.type.function.arrow, storage.type.function | #B771E5 | — |
| meta.decorator, meta.decorator variable | #B6F500 | italic |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #3bf4fb | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #00f5d4 | — |
| source.css entity.other.attribute-name.class, source.scss entity.other.attribute-name.class | #3bf4fb | — |
| source.css entity.other.attribute-name.id, source.scss entity.other.attribute-name.id | #B6F500 | — |
| source.css support.type.property-name, source.scss support.type.property-name | #00f5d4 | — |
| entity.name.namespace, entity.name.module | #3bf4fb | — |
| punctuation.separator, punctuation.accessor | #B771E5 | — |
| token.info-token | #3bf4fb | — |
| token.warn-token | #FFAF00 | — |
| token.error-token | #F5004F | — |
| token.debug-token | #B771E5 | — |
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}!`;
}