Kiroween
Publisher: fishperson113Themes in package: 1
Halloween VSCode theme made for Kiroween Hackathon
Halloween VSCode theme made for Kiroween Hackathon
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 | #C6C6C6 | italic |
| string, string.quoted, string.template | #D91656 | — |
| meta.template.expression, punctuation.definition.template-expression | #EB5B00 | — |
| keyword, storage.type, storage.modifier | #EB5B00 | — |
| keyword.control, keyword.operator.new, keyword.operator.expression | #EB5B00 | bold |
| variable, variable.other, variable.parameter | #C6C6C6 | — |
| entity.name.function, support.function, meta.function-call | #FFB200 | — |
| entity.name.type, entity.name.class, support.type, support.class | #FFB200 | bold |
| constant.numeric, constant.language, constant.character | #EB5B00 | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #C6C6C6 | — |
| string.regexp, constant.character.escape | #EB5B00 | — |
| invalid, invalid.illegal, invalid.deprecated | #D91656 | bold underline |
| support.type.property-name | #FFB200 | — |
| markup.heading, entity.name.section | #EB5B00 | bold |
| markup.bold | #EB5B00 | bold |
| markup.italic | #D91656 | italic |
| markup.underline.link, string.other.link | #FFB200 | underline |
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}!`;
}