Avanserv Theme
Publisher: AvanservThemes in package: 1
Custom color theme for the Avanserv organization.
Custom color theme for the Avanserv organization.
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, fenced_code.block.language.markdown | #63697d | italic |
| punctuation, meta.tag.xml, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown, meta.brace.square.js, meta.brace.round.js, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.disjunction.regexp, source.python string.quoted.docstring.multi.python punctuation.definition.string.begin.python, source.python string.quoted.docstring.multi.python punctuation.definition.string.end.python, source.python string.quoted.docstring.multi.python, constant.character.format.placeholder.other.python, constant.character.escape.python, meta.function.parameters.python keyword.operator.python, meta.function-call.arguments.python keyword.operator.assignment.python, meta.class.inheritance.python keyword.operator.assignment.python, source.pip-requirements, meta.header.po, meta.separator.markdown, source.rst markup.heading, source.rst keyword.control, entity.name.tag.reference.scss, meta.block-mapping.yaml, entity.other.document.begin.yaml, entity.other.document.end.yaml, keyword.operator.pattern.css, entity.other.attribute-name.html, text.xml meta.tag.preprocessor.xml | #63697d | — |
| string.quoted, punctuation.definition.string, meta.link.inline.markdown, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, source.ini, meta.header.po string.other.po, string.other.link.description.markdown, markup.underline.link.image.markdown, entity.name.section.markdown, string.other.link.title.markdown | #8fa872 | — |
| constant.language.boolean, constant.language.null, source.json constant.language.json, constant.language.python | #c1ccb4 | italic |
| constant.numeric, string.regexp, constant.character.set.regexp, constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css, support.constant.property-value.css, constant.other.time.datetime.offset.toml, constant.other.time.date.toml, constant.other.time.time.toml, constant.other.timestamp.yaml, constant.character.entity.xml, constant.character.entity.named.copy.html | #c1ccb4 | — |
| keyword, storage.modifier, storage.type, storage, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.namespace.xml, entity.name.tag.localname.xml, keyword.operator.bitwise.python, support.function.magic.python, support.type.property-name.table.toml, entity.name.section.group-title.ini, entity.name.tag.css, constant.language.merge.yaml | #c76f90 | — |
| keyword.codetag.notation.python | #c76f90 | italic |
| entity.name.class, entity.name.function, entity.name.type.class, entity.name.type.enum, entity.other.inherited-class, meta.function-call, support.class, support.function, support.type, support.function.builtin.python, support.function.magic.python, support.type.python, entity.other.attribute-name.class.css, entity.name.type.anchor.yaml, variable.other.alias.yaml | #36b8c2 | — |
| entity.name.function.decorator.python, meta.function.decorator.python support.type.python | #36b8c2 | italic |
| entity.name.namespace, entity.name.property, meta.object-literal.key, variable.defaultLibrary, variable.other, variable.parameter, source.json support.type, meta.class.inheritance.python support.type.metaclass.python, meta.function-call.arguments.python, string.unquoted.plain.out.yaml entity.name.tag.yaml, support.type.property-name.toml, source.pip-requirements entity.name.selector, keyword.other.definition.ini, meta.header.po constant.language.po, support.type.property-name.css, meta.property-list.scss entity.name.tag.css, meta.block-mapping.yaml string.unquoted.plain.in.yaml | #c0c6dc | — |
| variable.language.this, variable.language.self, meta.function-call.arguments.python variable.language.special.cls.python, meta.function.parameters.python variable.parameter.function.language.special.cls.python, meta.function-call.arguments.python variable.language.special.self.python, meta.function.parameters.python variable.parameter.function.language.special.self.python, variable.scss, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, variable.css, variable.argument.css | #c0c6dc | italic |
| entity.name.tag.backreference.regexp, entity.name.tag.named.group.regexp, keyword.operator.lookbehind.negative.regexp, keyword.operator.negation.regexp, keyword.operator.quantifier.regexp, entity.other.attribute-name.placeholder.css, entity.other.attribute-name.id.css, string.template.js | #8fa872 | — |
| invalid, invalid.illegal | #c96b6b | italic |
| invalid.deprecated | #ceba95 | italic |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.bold markup.italic | — | bold italic |
| markup.strikethrough | — | strikethrough |
| entity.name.type.terraform | #c76f90 | — |
| source.hcl.terraform keyword.operator.assignment.hcl, source.hcl.terraform keyword.operator.accessor.hcl | #63697d | — |
| source.hcl.terraform storage.type.hcl | #36b8c2 | — |
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}!`;
}