Skill
Publisher: metamorphosisThemes in package: 2
Skill dark theme
Skill dark theme
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 | #ffffff66 | italic |
| string | #9ffca7 | — |
| string.unquoted | #fff | — |
| punctuation.definition.template-expression | #FFB68E | — |
| constant.numeric | #ffffff | — |
| constant.language | #00eeff | — |
| constant.character, constant.other | #d5a1f8 | — |
| variable | #f8f8f2 | — |
| variable.language | #fe8183 | — |
| variable.parameter | #ffffff | — |
| keyword, storage.type, keyword.control | #00eeff | italic |
| keyword.operator | #ffffff | |
| storage | #00eeff | — |
| storage.modifier | — | — |
| entity.name.type, entity.name.class | #ffab7a | — |
| meta.function.method, entity.name.function | #ffab7a | — |
| variable.other.readwrite.js, punctuation.definition.parameters | #fff | — |
| entity.other.inherited-class | #ffb68e | — |
| entity.name.tag | #fe8183 | — |
| entity.other.attribute-name | #ffffff | — |
| entity.other.attribute-name.id.css | #fad185 | — |
| constant.language.pseudo.css | #fad185 | — |
| support.function | #fe8183 | |
| support.constant | #fad185 | |
| support.type, support.class | #fe8183 | — |
| support.type.property-name.json | #fad185 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #ffffff | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #00eeff | — |
| markup.inserted | #9ffca7 | — |
| markup.changed | #9ffca7 | — |
| constant.numeric.line-number.find-in-files - match | #d5a1f8A0 | — |
| entity.name.filename.find-in-files | #9ffca7 | — |
| markup.quote | #00eeff | — |
| markup.list | #9ffca7 | — |
| markup.bold, markup.italic | #fe8183 | — |
| markup.inline.raw | #9ffca7 | |
| markup.heading | #9ffca7 | — |
| markup.heading.setext | #9ffca7 | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #fe8183 | — |
| token.debug-token | #b267e6 | — |
| support.type.primitive.ts, entity.name.type.ts, support.type.builtin.ts | #cca6ff | — |
| support.type.object.dom.js | #63d492 | — |
| string.quoted.module.js | #9ffca7 | — |
| JSXAttrs string.quoted.double.js | #9ffca7 | — |
| JSXAttrs support.class | #fe8183 | — |
| JSXAttrs keyword.operator.assignment.jsx | #ffffff | — |
| keyword.operator.relationship.css | #ffffff | — |
| variable.other.object.property.ts | #ffffff | — |
| constant.character.enum.graphql | #ffffff | — |
| keyword.operator.nulltype.graphql | #ffffff | |
| support.type.graphql | #fe8183 | — |
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}!`;
}