Mate Theme
Publisher: Mate CreationsThemes in package: 4
Yerba Mate based color theme 🧉
Yerba Mate based color 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 |
|---|---|---|
| entity.name.type.namespace, entity.name.namespace, entity.name.type.module, entity.name.module, entity.name.type.package, entity.name.package, storage.modifier.import, storage.modifier.package, variable.language.wildcard.java, entity.name.scope-resolution | #FFFFFF8A | |
| entity.name.type.class, entity.other.inherited-class, meta.definition.class.inherited.classes, entity.other.attribute-name.class | #BFAF40 | |
| entity.name.type.enum | #46A598 | |
| entity.name.type.interface, meta.definition.class.implemented.interfaces | #46A598 | |
| entity.name.type.struct, storage.type.struct | #46A598 | |
| storage.type.generic | #83AEA8 | |
| entity.name.type, entity.name.tag, keyword.operator.less, support.type | #46A598 | |
| storage.type | #4B9ECD | |
| variable.parameter | #C59E7F | |
| variable, meta.method variable, meta.function variable, meta.block variable, entity.name.variable, variable.other.readwrite | #C59E7F | underline |
| variable.other.constant, meta.method variable.other.constant, meta.function variable.other.constant, meta.block variable.other.constant, entity.name.variable.constant | #C59E7F | |
| variable.other.property, meta.class variable, meta.interface variable, entity.name.variable.property, entity.name.variable.field, meta.attribute.python | #ADA77F | underline |
| variable.other.constant.property, meta.class variable.other.constant, meta.interface variable.other.constant, entity.name.variable.field.constant, entity.name.variable.property.constant, meta.attribute.constant.python | #ADA77F | |
| variable.other.enummember, constant.other.enum, entity.name.variable.enum-member | #83AEA8 | |
| meta.decorator, meta.function.decorator, entity.name.function.decorator | #EF6363 | |
| entity.name.type.annotation, meta.declaration.annotation, storage.type.annotation, entity.other.attribute, meta.attribute, support.attribute | #EF6363 | |
| keyword.other.event, variable.other.event | #D19797 | |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal, entity.other.attribute-name.parent-selector | #D28342 | |
| entity.name.method, entity.name.function.member | #D28342 | |
| meta.preprocessor.macro, keyword.preprocessor, keyword.control.directive, entity.name.function.macro, entity.name.function.preprocessor, meta.preprocessor punctuation | #CD95B8 | |
| entity.name.label | #CD95B8 | |
| comment | #45AA41 | italic |
| string, string.tag, string.value, meta.preprocessor.string, meta.embedded.assembly | #CB8569 | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, meta.template.expression | #87ABC0 | |
| constant.character, constant.other.unicode-range | #87ABC0 | |
| constant.character.escape | #EF6363 | |
| keyword, storage.type.package, storage.type.import, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #ED63BA | |
| storage, storage.modifier, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.noexcept, keyword.other.var, constant.language, keyword.class, keyword.struct, keyword.interface, keyword.function, keyword.method, keyword.const, keyword.var, keyword.other.rust, keyword.other.fn, support.constant.property-value, keyword.operator.shape, support.constant.font-name, support.constant.media-type, support.constant.media | #4B9ECD | |
| constant.numeric, keyword.operator.plus.exponent, keyword.operator.minus.exponent, keyword.other.unit, meta.preprocessor.numeric, source.css.less meta.property-value constant.numeric, source.css.less meta.property-value keyword.other.unit, constant.other.reference.link | #80B27F | |
| string.regexp, constant.regexp | #9B87EA | |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #A9A0CB | |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #CD95B8 | |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #87ABC0 | |
| keyword.operator.quantifier.regexp | #80B27F | |
| keyword.operator, punctuation.separator.key-value | #FFFFFF8A | |
| variable.language, variable.parameter.function.language.special, keyword.other.this, variable.language.this, variable.language.super, variable.language.special.self | #BFAF40 | |
| storage.type.primitive, storage.type.built-in, storage.type.builtin, support.type.primitive, support.type.built-in, support.type.builtin, keyword.type | #4B9ECD | |
| keyword.operator.new, keyword.control.new | #4B9ECD | |
| variable.other.constant, constant.other.caps, constant.other.php | #83AEA8 | |
| variable.other.color, constant.other.color, support.constant.color, constant.other.rgb-value, constant.other.color.rgb-value | #CB8569 | |
| invalid | #EF6363 | |
| entity.other.attribute-name.id | #9B87EA | |
| support.type.property-name, entity.other.attribute-name, meta.property-value | #87ABC0 | |
| support.type.vendored.property-name | #87ABC0 | underline |
| entity.other.attribute-name.pseudo-class | #ADA77F | |
| entity.other.attribute-name.pseudo-element | #A9A0CB | |
| entity.other.keyframe-offset, entity.name.tag.reference, meta.at-rule.keyframes, entity.other.attribute-name.scss, source.css.less constant.numeric, source.css.less keyword.other.unit | #CD95B8 | |
| heading.1, markup.heading.setext.1 | #EF6363 | |
| heading.2, markup.heading.setext.2 | #D28342 | |
| heading.3, markup.heading.setext.3 | #BFAF40 | |
| heading.4, markup.heading.setext.4 | #45AA41 | |
| heading.5, markup.heading.setext.5 | #46A598 | |
| heading.6, markup.heading.setext.6 | #4B9ECD | |
| emphasis, markup.italic | — | italic |
| strong, markup.bold | — | bold |
| deleted, markup.strikethrough | — | strikethrough |
| markup.underline | — | underline |
| markup.underline.link | #87ABC0 | underline |
| string.other.link, punctuation.definition.list.begin.markdown | #879D61 | |
| markup.fenced_code.block, markup.inline.raw, markup.raw.block | #ED63BA | |
| punctuation.definition.quote.begin | #9B87EA | |
| punctuation.definition.tag | #FFFFFF8A | |
| meta.separator | #CB8569 | |
| markup.inserted | #45AA41 | — |
| markup.deleted | #EF6363 | — |
| markup.changed | #4B9ECD | — |
| support.function.magic.python | #9B87EA | — |
| ref.matchtext | #FFFFFF | — |
| 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}!`;
}