anicode-theme
Publisher: malveeThemes in package: 1
Anicode A White Theme
Anicode A White 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 |
|---|---|---|
| variable, meta.definition.variable.name, support.variable | #51575e | |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #51575e | |
| comment, punctuation.comment, punctuation.definition.comment | #939ba4 | |
| keyword.operator | #212529 | bold |
| punctuation, delimiter, bracket, brace, paren, delimiter.tag, punctuation.tag, tag.html, tag.xml, meta.property-value punctuation.separator.key-value, punctuation.definition.metadata.md, string.link.md, meta.brace | #727981 | |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #212529 | |
| string, meta.property-value.string, support.constant.property-value.string, meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json, meta.preprocessor string | #727981 | italic |
| constant.numeric, meta.property-value.numeric, support.constant.property-value.numeric, meta.property-value.color, support.constant.property-value.color, constant.language | #212529 | |
| constant.character, constant.other, entity.name.function, entity.name.class, entity.other.inherited-class, entity.other.attribute-name, entity.name, entity.other.attribute-name, entity.other.attribute-name.html, support.type.property-name, entity.name.tag.table, meta.structure.dictionary.json string.quoted.double.json | #212529 | |
| keyword, meta.property-value.keyword, support.constant.property-value.keyword, meta.preprocessor.keyword, keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #212529 | bold |
| storage, storage.type, storage.type.ts, storage.type.var.ts, storage.type.js, storage.type.var.js, storage.type.const.ts, storage.type.let.ts, storage.type.let.js, storage.type.const.js, entity.name.tag | #212529 | bold |
| meta.ptr, meta.pointer, meta.address, meta.array.cxx | — | — |
| meta.preprocessor | #212529 | |
| support.type, support.class, support.function, support.constant | #212529 | |
| invalid | #e24747 | — |
| invalid.deprecated | #e24747 | — |
| punctuation.definition.heading.md, entity.name.type.md, beginning.punctuation | #212529 | |
| markup.heading, entity.name.section | #212529 | bold |
| markup.raw, markup.inline.raw, markup.fenced, markup.fenced_code | #727981 | italic |
| markup.link, string.other.link.title, string.other.link.description, meta.link.inline, meta.image.inline | #212529 | |
| variable.language.makefile, variable.other.makefile | #212529 | |
| markup.italic | — | italic |
| markup.bold | — | bold |
| entity.other.attribute-name.class.css | #212529 | |
| entity.name.tag.css | #212529 | bold |
| meta.property-name.css | #212529 |
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}!`;
}