Pire Theme
Publisher: notxkcdThemes in package: 1
A VS Code theme based on the vim-pire colorscheme.
A VS Code theme based on the vim-pire colorscheme.
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 |
|---|---|---|
| constant.language.undefined, keyword, storage.modifier, variable.language.this, variable.language.super, storage.type.function.js, storage.type.function.ts, storage.type.class.js, storage.type.class.ts, storage.type.js, storage.type.ts, storage.type.type.ts, source.css support.function | #00afff | — |
| constant.character.escape | #875fff | — |
| keyword.operator, constant.character.escape, punctuation.definition.logical, punctuation.definition.quote, punctuation.definition.list, punctuation.definition.para, punctuation.definition.template-expression, punctuation.definition.attribute | #00afff | — |
| entity.name.type, punctuation.definition.group, support.type.primitive, storage.type | #ffaf00 | — |
| storage.type.annotation, variable.parameter | #ff87ff | — |
| string, markup.quote, constant.other.reference, markup.underline.link | #00d75f | — |
| comment, meta.separator | #767676 | — |
| entity.name.function | #ff87ff | — |
| constant.numeric, constant.language.null, constant.language.boolean | #ff5f87 | — |
| variable, meta.import variable.other.readwrite.alias | #d0d0d0 | — |
| entity.name.tag, variable.other.property, variable.other.normal.shell, punctuation.definition.variable.shell, punctuation.definition.character-class, constant.other.character-class, entity.other.attribute-name, support.type.property-name, meta.import variable | #ff87ff | — |
| variable.other.enummember, variable.other.constant, punctuation.definition.character-class | #d0d0d0 | — |
| Normal | #d0d0d0 | — |
| heading, markup.bold | #ffaf00 | — |
| markup.inline.raw, markup.italic, markup.bold, markup.strikethrough | #00afff | — |
| string.other.link.title.markdown | #ffaf00 | — |
| heading | — | bold |
| entity.name.tag.html, entity.name.tag.css, entity.name.tag.script.html.vue, entity.name.tag.style.html.vue, entity.name.tag.template.html.vue | #ffaf00 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.html, meta.attribute.id.html string | #ff5f87 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.html, meta.attribute.class.html string | #00afff | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.html | #00d7d7 | — |
| entity.other.attribute-name.css, entity.other.attribute-name.html | #00d75f | — |
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}!`;
}