BTG Pactual Dark
Publisher: Jean OuteiralThemes in package: 1
BTG Pactual dark color theme
BTG Pactual dark 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 |
|---|---|---|
| comment | #5D626A | italic |
| comment markup.link | #5D626A | — |
| punctuation.definition.comment | #5D626A | — |
| entity.name.type | #F8E08E | — |
| entity.other.inherited-class | #F8E08E | — |
| entity.name.function | #B8CCEA | — |
| entity.name.class, entity.name.type.class | #F8E08E | — |
| entity.name.section | #B8CCEA | — |
| entity.name.tag | #5C88DA | — |
| entity.other.attribute-name | #FF8C46 | — |
| entity.other.attribute-name.id | #B8CCEA | — |
| source.gfm link entity | #B8CCEA | — |
| punctuation.definition.heading, punctuation.definition.identity | #B8CCEA | — |
| entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx | #D6E1F5 | — |
| entity.name.type.rust | #4A8BE2 | — |
| entity.name.lifetime.rust | #FF8C46 | — |
| entity.name.section.markdown | #5C88DA | — |
| keyword | #F8E08F | — |
| keyword.control | #F8E08F | — |
| keyword.operator | #F8E08F | — |
| keyword.other.special-method | #B8CCEA | — |
| keyword.other.unit | #F8E08E | — |
| source.c keyword.operator | #F8E08F | — |
| source.cpp keyword.operator | #F8E08F | — |
| source.cs keyword.operator | #F8E08F | — |
| source.elixir keyword.special-method, source.elixir embedded.section, source.elixir embedded.source.empty | #5C88DA | — |
| source.elixir separator, source.elixir keyword.operator | #FF8C46 | — |
| source.ini keyword.other.definition.ini | #5C88DA | — |
| source.java keyword.operator.instanceof | #F8E08F | — |
| source.js keyword.operator | #4A8BE2 | — |
| source.js keyword.operator.delete, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.new, source.js keyword.operator.typeof, source.js keyword.operator.void | #F8E08F | — |
| source.ts keyword.operator | #4A8BE2 | — |
| source.flow keyword.operator | #4A8BE2 | — |
| source.python keyword.operator.logical.python | #F8E08F | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #4A8BE2 | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #5C88DA | — |
| keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #F8E08F | — |
| keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx | #F8E08F | — |
| keyword.operator.new.ts, keyword.operator.new.j, keyword.operator.new.tsx | #F8E08F | — |
| source.ts keyword.operator, source.tsx keyword.operator | #4A8BE2 | — |
| keyword.control.as.js, keyword.control.as.ts, keyword.control.as.jsx, keyword.control.as.tsx | #BFBFBF | — |
| source.js meta.import-equals.external.js keyword.operator, source.jsx meta.import-equals.external.jsx keyword.operator, source.ts meta.import-equals.external.ts keyword.operator, source.tsx meta.import-equals.external.tsx keyword.operator | #BFBFBF | — |
| source.js meta.tag.js keyword.operator, source.jsx meta.tag.jsx keyword.operator, source.ts meta.tag.ts keyword.operator, source.tsx meta.tag.tsx keyword.operator | #BFBFBF | — |
| keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx | #F8E08F | — |
| source.cs keyword.operator | #BFBFBF | — |
| keyword.other.unsafe.rust | #F8E08F | — |
| keyword.operator.other.ruby | #D6E1F5 | — |
| storage | #F8E08F | — |
| storage.type.annotation, storage.type.primitive | #F8E08F | — |
| storage.modifier.package, storage.modifier.import | #BFBFBF | — |
| source.go storage.type.string | #F8E08F | — |
| source.java storage.modifier.import | #F8E08E | — |
| source.java storage.type | #F8E08E | — |
| storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #4A8BE2 | — |
| storage.type.cs | #F8E08E | — |
| storage.modifier.lifetime.rust | #BFBFBF | — |
| storage.type.core.rust | #4A8BE2 | — |
| storage.class.std.rust | #4A8BE2 | — |
| storage.type.primitive.array.java | #F8E08E | — |
| constant | #FF8C46 | — |
| constant.variable | #FF8C46 | — |
| constant.character.escape | #4A8BE2 | — |
| constant.numeric | #F8E08E | — |
| constant.other.color | #4A8BE2 | — |
| constant.other.symbol | #4A8BE2 | — |
| source.elixir constant.language, source.elixir constant.numeric, source.elixir constant.definition | #B8CCEA | — |
| source.elixir variable.constant | #F8E08E | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #4A8BE2 | — |
| variable.other.constant.property.js, variable.other.constant.property.ts, variable.other.constant.property.tsx | #FF8C46 | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #5C88DA | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #4A8BE2 | — |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.jsx, variable.other.constant.tsx | #FF8C46 | — |
| constant.language.json | #4A8BE2 | — |
| variable.other.constant.object.js, variable.other.constant.object.jsx, variable.other.constant.object.ts, variable.other.constant.object.tsx | #FF8C46 | — |
| source.python constant | #FF8C46 | — |
| constant.character.format.placeholder.other.python storage | #FF8C46 | — |
| source.python constant.other | #BFBFBF | — |
| variable | #5C88DA | — |
| variable.interpolation | #D22D4B | — |
| variable.parameter | #BFBFBF | — |
| meta.definition.variable | #5C88DA | — |
| source.elixir variable.definition, source.elixir variable.anonymous | #F8E08F | — |
| source.elixir parameter.variable.function | #FF8C46 | italic |
| source.python variable.parameter | #FF8C46 | — |
| variable.other.constant.ruby | #FF8C46 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx | #BFBFBF | — |
| meta.array-binding-pattern-variable.js variable.other.readwrite.js, meta.array-binding-pattern-variable.ts variable.other.readwrite.ts, meta.array-binding-pattern-variable.tsx variable.other.readwrite.tsx | #FF8C46 | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx | #5C88DA | — |
| meta.export.default.js variable.other.readwrite.js, meta.export.default.ts variable.other.readwrite.ts | #5C88DA | — |
| meta.definition.property.js variable, meta.definition.property.ts variable, meta.definition.property.jsx variable, meta.definition.property.tsx variable | #BFBFBF | — |
| meta.array.literal.js variable, meta.array.literal.jsx variable, meta.array.literal.ts variable, meta.array.literal.tsx variable | #F8E08E | — |
| variable.other.object.js, variable.other.object.ts | #BFBFBF | — |
| variable.other.readwrite.cs | #BFBFBF | — |
| variable.other.object.cs | #BFBFBF | — |
| variable.other.object.property.cs | #BFBFBF | — |
| punctuation.definition.variable.shell | #5C88DA | — |
| punctuation.separator.variable.ruby | #5C88DA | — |
| punctuation.definition.variable.php | #5C88DA | — |
| entity.name.variable.field.cs | #5C88DA | — |
| entity.name.variable.property.cs | #B8CCEA | — |
| string | #D6E1F5 | — |
| string > source, string embedded | #BFBFBF | — |
| string.regexp | #4A8BE2 | — |
| string.regexp source.ruby.embedded | #F8E08E | — |
| string.other.link | #5C88DA | — |
| source.elixir regexp.section, source.elixir regexp.string | #D22D4B | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #5C88DA | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #5C88DA | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #D6E1F5 | — |
| ng.attribute-with-value string | #F8E08F | — |
| ng.attribute-with-value string.begin, ng.attribute-with-value string.end | #BFBFBF | — |
| string.quoted.double punctuation | #D6E1F5 | — |
| meta.template.expression.js string.quoted punctuation.definition, meta.template.expression.jsx string.quoted punctuation.definition, meta.template.expression.ts string.quoted punctuation.definition, meta.template.expression.tsx string.quoted punctuation.definition | #D6E1F5 | — |
| meta.template.expression.js string.template punctuation.definition.string.template, meta.template.expression.jsx string.template punctuation.definition.string.template, meta.template.expression.ts string.template punctuation.definition.string.template, meta.template.expression.tsx string.template punctuation.definition.string.template | #D6E1F5 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #B8CCEA | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #BFBFBF | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #BFBFBF | — |
| punctuation.definition.bold | #F8E08E | bold |
| punctuation.definition.italic | #FFFFFF | italic |
| punctuation.section.embedded | #D22D4B | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #BFBFBF | — |
| markup.heading punctuation.definition.heading | #B8CCEA | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js, punctuation.separator.key-value.tsx | #4A8BE2 | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #D22D4B | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters, source.tsx punctuation.definition.typeparameters | #BFBFBF | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block, source.tsx punctuation.definition.block | #BFBFBF | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma, source.tsx punctuation.separator.comma | #BFBFBF | — |
| source.js punctuation.accessor, source.ts punctuation.accessor, source.tsx punctuation.accessor | #BFBFBF | — |
| punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.tsx | #BFBFBF | — |
| punctuation.separator.parameter.js, punctuation.separator.parameter.ts, punctuation.separator.parameter.tsx | #BFBFBF | — |
| source.js meta.template.expression.js punctuation.accessor, source.ts meta.template.expression.ts punctuation.accessor, source.tsx meta.template.expression.tsx punctuation.accessor | #D6E1F5 | — |
| meta.tag.js punctuation.section.embedded, meta.tag.jsx punctuation.section.embedded, meta.tag.ts punctuation.section.embedded, meta.tag.tsx punctuation.section.embedded | #BFBFBF | — |
| punctuation.separator.annotation.python | #BFBFBF | — |
| punctuation.separator.parameters.python | #BFBFBF | — |
| punctuation.separator.key-value.scss | #5C88DA | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #BFBFBF | — |
| punctuation.definition.heading.markdown | #5C88DA | — |
| punctuation.definition.bold.markdown | #FF8C46 | — |
| beginning.punctuation.definition.list.markdown | #5C88DA | — |
| punctuation.definition.metadata.markdown | #F8E08F | — |
| markup.bold | #FF8C46 | bold |
| markup.changed | #F8E08F | — |
| markup.deleted | #5C88DA | — |
| markup.italic | #FFFFFF | italic |
| markup.heading | #5C88DA | — |
| markup.link | #4A8BE2 | — |
| markup.inserted | #D6E1F5 | — |
| markup.quote | #FF8C46 | — |
| markup.raw | #D6E1F5 | — |
| markup.raw.block.markdown | #BFBFBF | — |
| markup.heading.setext | #BFBFBF | — |
| markup.inline.raw.markdown | #D6E1F5 | — |
| markup.quote.markdown | #5D626A | italic |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #F8E08F | — |
| support.class | #F8E08E | — |
| support.type | #4A8BE2 | — |
| support.function | #4A8BE2 | — |
| support.function.any-method | #B8CCEA | — |
| support.type.property-name | #BFBFBF | — |
| support.type.property-name.json | #5C88DA | — |
| support.type.property-name.json punctuation | #5C88DA | — |
| meta.type.parameters.js support.type, meta.type.parameters.jsx support.type, meta.type.parameters.ts support.type, meta.type.parameters.tsx support.type | #BFBFBF | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #5C88DA | — |
| support.constant | #FF8C46 | — |
| support.constant.property-value.css | #BFBFBF | — |
| support.variable.dom.js, support.variable.dom.ts | #5C88DA | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #5C88DA | — |
| support.variable.property.js, support.variable.property.ts, support.variable.property.tsx | #5C88DA | — |
| source.js support.variable, source.ts support.variable, source.tsx support.variable | #5C88DA | — |
| support.variable.magic.python | #5C88DA | — |
| meta.class | #F8E08E | — |
| meta.class.body | #BFBFBF | — |
| meta.method-call, meta.method | #BFBFBF | — |
| meta.link | #FF8C46 | — |
| meta.require | #B8CCEA | — |
| meta.selector | #F8E08F | — |
| meta.separator | #BFBFBF | — |
| meta.tag | #BFBFBF | — |
| source.java-properties meta.key-pair | #5C88DA | — |
| source.java-properties meta.key-pair > punctuation | #BFBFBF | — |
| meta.brace.round.js, meta.array-binding-pattern-variable.js, meta.brace.square.js, meta.brace.round.ts, meta.array-binding-pattern-variable.ts, meta.brace.square.ts, meta.brace.round.tsx, meta.array-binding-pattern-variable.tsx, meta.brace.square.tsx | #BFBFBF | — |
| meta.class.js,meta.class.ts,meta.class.jsx,meta.class.tsx | #BFBFBF | — |
| meta.object-literal.key.js, meta.object-literal.key.ts | #5C88DA | — |
| meta.function.parameters.python | #FF8C46 | — |
| meta.attribute.rust | #FF8C46 | — |
| meta.class.php | #BFBFBF | — |
| invalid.deprecated | #FFC845 | — |
| invalid.illegal | #5C88DA | — |
| source.css | #FFC845 | — |
| source.css property-name, source.css property-value | #7F7F7F | — |
| source.css property-name.support, source.css property-value.support | #BFBFBF | — |
| punctuation.definition.constant.css | #FF8C46 | — |
| punctuation.definition.constant.scss | #FF8C46 | — |
| source.elixir source.embedded.source | #BFBFBF | — |
| source.elixir quoted | #D6E1F5 | — |
| source.elixir readwrite.module punctuation | #5C88DA | — |
| source.elixir array, source.elixir scope, source.elixir section | #9F9F9F | — |
| ng.interpolation | #5C88DA | — |
| ng.interpolation.begin, ng.interpolation.end | #B8CCEA | — |
| ng.interpolation function | #5C88DA | — |
| ng.interpolation function.begin, ng.interpolation function.end | #B8CCEA | — |
| ng.interpolation bool | #FF8C46 | — |
| ng.interpolation bracket | #BFBFBF | — |
| ng.pipe, ng.operator | #BFBFBF | — |
| ng.tag | #4A8BE2 | — |
| ng.attribute-with-value attribute-name | #F8E08E | — |
| source.php class.bracket | #BFBFBF | — |
| customrule | #BFBFBF | — |
| none | #BFBFBF | — |
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}!`;
}