Buenos Aires
Publisher: gamestoyThemes in package: 1
An eclectic dark theme inspired by Buenos Aires
An eclectic dark theme inspired by Buenos Aires
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| constant.regexp | #9DAFB1 | — |
| invalid | — | — |
| markup.underline | — | underline |
| string.quoted, string.template | #F1C34F | — |
| storage, storage.modifier, keyword.control, keyword.operator.new, 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.operator.type.asserts, keyword.other, constant.language, variable.language.this, keyword.class, keyword.struct, keyword.interface, keyword.function, keyword.method, keyword.const, keyword.var, keyword.other.fn, keyword.operator.shape, support.constant.font-name, support.constant.media-type, support.constant.media, support.type.primitive, support.type.builtin | #E33D56 | — |
| keyword.operator, storage.type.function.arrow, keyword.other.unit | #D4D4D4 | — |
| meta.method.identifier entity.name.function | #FAA41D | — |
| meta.function-call entity.name.function, meta.method-call entity.name.function, meta.function-call, meta.method-call | #E3D0B0 | — |
| constant.numeric | #E19A8B | — |
| storage.type.annotation | #EA7E82 | — |
| entity.name.type, storage.identifier, entity.other.inherited-class | #7BA7B4 | — |
| 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, entity.name.scope-resolution | #ACAFAF | — |
| entity.name.tag | #7BA7B4 | — |
| entity.other.attribute-name, variable.other.property | #80B27F | — |
| variable.other.readwrite.alias | #4B9ECD | — |
| keyword.other.documentation.javadoc.java | #ACAFAF | — |
| variable.language.wildcard.java | #ACAFAF | — |
| keyword.control.ternary.java | #D4D4D4 | — |
| storage.type.local.java | #E33D56 | — |
| variable.parameter.function-call.python | #8EA71E | — |
| constant.character.format.placeholder.other.python | #4B9ECD | — |
| meta.attribute.python | #80B27F | — |
| comment, string.quoted.docstring.single.python, string.quoted.docstring.multi.python | #ACAFAF | — |
| meta.function.parameters.python | #7BA7B4 | — |
| entity.name.function.decorator.python | #EA7E82 | — |
| support.function.builtin.python, constant.character.format.placeholder.other.python storage.type.format.python | #E33D56 | — |
| variable.other.constant.js, variable.other.object.js, variable.other.constant.jsx, variable.other.object.jsx, variable.other.constant.ts, variable.other.object.ts, variable.other.constant.tsx, variable.other.object.tsx | #4B9ECD | — |
| support.type.object.module.js, support.type.object.module.ts | #7BA7B4 | — |
| variable.other.object.property.js, meta.object-literal.key.js, meta.object-literal.key.js string.quoted.double.js | #80B27F | — |
| variable.other.readwrite.alias.js | #D4D4D4 | — |
| variable.other.readwrite.js | #4B9ECD | — |
| support.variable.property.js | #80B27F | — |
| variable.language.arguments.js | #A9A0CB | — |
| text.html.basic entity.other | #7BA7B4 | italic |
| source.json support | #80B27F | — |
| string.quoted.double.json, string.quoted.double.json.comments | #D4D4D4 | — |
| entity.name.tag.yaml | #80B27F | — |
| keyword.other.important | #DAC391 | — |
| source.css support, source.stylus support, meta.property-name.css | #8EA71E | — |
| source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant, support.constant.font-name.css, constant.other.caps.python | #BB7212 | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #DAC391 | — |
| support.function.misc.css, meta.property-value.css, entity.name.function.scss | #E3D0B0 | — |
| entity.other.attribute-name.pseudo-element.css, meta.at-rule.media.header.css | #9DAFB1 | — |
| variable.parameter.url.css | #F1C34F | — |
| variable.other.less, source.css variable, source.stylus variable | #4B9ECD | — |
| punctuation.definition.heading.markdown | #4B9ECD | — |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #7BA7B4 | bold |
| meta.paragraph.markdown | #D4D4D4 | — |
| beginning.punctuation.definition.quote.markdown | #FAA41D | — |
| markup.quote.markdown meta.paragraph.markdown, markup.inline.raw.string.markdown, fenced_code.block.language, markup.inline.raw.markdown | #E3D0B0 | italic |
| markup.table.markdown | #E3D0B0 | — |
| meta.separator.markdown | #FAA41D | — |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #E33D56 | — |
| markup.bold.markdown | #E3D0B0 | bold |
| markup.italic.markdown | — | italic |
| string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #8EA71E | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #F1C34F | — |
| constant.other.reference.link.markdown | #BB7212 | — |
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}!`;
}