PKsThemes
Publisher: PKKidThemes in package: 5
PKsThemes for VSCode
PKsThemes for VSCode
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 |
|---|---|---|
| beginning.punctuation.definition.list.markdown, constant.other.caps.python, meta.function-call.js, meta.function.expression.js, entity.name.function.js, entity.name.function, entity.name.tag, entity.name.variable, meta.object-literal.key.js, meta.tag.any.html, meta.tag.block.any.html, meta.tag.inline.any.html, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.section.embedded, source.css meta.brace, source.python, source, string.unquoted.tag-string, support.function, support.other.django.module, support.type.property-name, support.type.property-name, support.type.vendored.property-name, support.type.vendored.property-name, support.variable, variable.css, variable.language, variable.other.less, variable.scss, variable, text.html, text.xml | #cc241d | — |
| entity.tag.tagbraces, keyword.operator.assignment, keyword, punctuation.separator.key-value.html, source.css entity.other.attribute-name.pseudo-class, source.css keyword.operator | #d77 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.localname.xml, punctuation.attribute-shorthand.event.html, python punctuation.definition.list, source.python punctuation.definition.arguments, source.python punctuation.definition.dictionary | #e55 | — |
| entity.name.function, entity, source.css entity.name.tag, source.css entity.other.attribute-name.class | #fc8 | — |
| constant.language, constant.language.python, entity.other.inherited-class, source.css support.constant.property-value.css, constant.language.json.comments | #fe8019 | — |
| comment, keyword.codetag.notation, string.quoted.docstring.multi.python, storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc | #58973a | — |
| keyword.control.tag-name, keyword.control, keyword.operator.new, keyword.operator, source.css entity.other.attribute-name.id, source.css keyword.control.html, storage.type.function, storage, support | #458588 | — |
| constant.character.entity, constant.numeric, constant, source.css constant.numeric, source.css constant, source.css keyword, string.regexp, text.html.django storage.type.attr, text.html.django storage.type.templatetag | #ebdbb2 | — |
| string.quoted.double, string | #bdae93 | — |
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}!`;
}