vscode-xanido-theme
Publisher: xanidoThemes in package: 2
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 | #494d58 | — |
| constant.language, constant.character, constant.other, entity.name.section.group-title, storage, entity.name.class, entity.other.inherited-class, entity.other.attribute-name, support.function, support.constant, support.type, support.class | #9A6FC4 | |
| storage.type, entity.name.tag, 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, meta.use support.class.builtin, meta.other.inherited-class support.class.builtin, punctuation.definition.heading.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown, markup.bold.markdown, markup.italic.markdown | #00B27D | — |
| string, meta.structure.dictionary.json string.quoted.double.json, meta.structure.dictionary.value.json string.quoted.double.json, string.quoted.double.json, meta.property-value, support.constant.property-value, constant.other.color | #CCCCCC | — |
| entity.name.function, variable.parameter, variable.other | #FFFFFF | — |
| constant.numeric | #AAAAAA | — |
| entity.name.class | — | underline |
| invalid | #CF433E | |
| meta.diff, meta.diff.header | #76818E | — |
| markup.deleted | #E61F44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #F7B83D | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #A0A8B1 | — |
| meta.property-value punctuation.separator.key-value | #C0CCDB | — |
| variable.parameter.function.coffee | #AAAAAA | — |
| entity.name.section.markdown | #9A6FC4 | — |
| markup.raw.inline.markdown | #CCCCCC | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664E4D | — |
| markup.deleted.git_gutter | #E61F44 | — |
| markup.inserted.git_gutter | #A7DA1E | — |
| markup.changed.git_gutter | #F7B83D | — |
| meta.template.expression | #C0CCDB | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}