Kaolin Themes (Emacs Port)
Publisher: hasitThemes in package: 15
Kaolin themes for VS Code generated from emacs-kaolin-themes
Kaolin themes for VS Code generated from emacs-kaolin-themes
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 | #697375 | — |
| keyword, keyword.control, storage, storage.type | #4EB8CA | — |
| support.function, support.class, support.type, support.constant | #91B9C7 | — |
| entity.name.function, meta.function-call, support.function.any-method | #91B9C7 | — |
| variable, meta.definition.variable.name, entity.name.variable | #47BA99 | — |
| variable.parameter, meta.parameter | #D4D4D6 | — |
| variable.other.property, meta.object-literal.key, support.variable.property | #47BA99 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type | #B9C791 | — |
| constant, constant.language, constant.character | #4FA8A3 | — |
| constant.numeric | #EF6787 | — |
| constant.language.boolean | #EF6787 | — |
| string, string.quoted, string.template | #FBAED2 | — |
| constant.character.escape, string.regexp, string.regexp punctuation.definition.string.begin | #BA667D | — |
| comment.block.documentation, string.quoted.docstring | #BA667D | — |
| meta.preprocessor, entity.name.tag, entity.other.attribute-name | #EF6787 | — |
| keyword.operator, punctuation, meta.brace | #D4D4D6 | — |
| invalid, invalid.deprecated | #E84C58 | — |
| markup.warning | #F3C91F | — |
| markup.heading, markup.heading punctuation.definition.heading | #4EB8CA | — |
| markup.italic, markup.bold, markup.bold markup.italic | #91B9C7 | — |
| markup.underline.link, string.other.link.title | #EF6787 | — |
| markup.inserted, meta.diff.header.to-file | #4FA8A3 | — |
| markup.changed, meta.diff.header | #D7936D | — |
| markup.deleted, meta.diff.header.from-file | #C74A4D | — |
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}!`;
}