Bravato Theme
Publisher: Florin BratanThemes in package: 1
Bravato Theme for Visual Studio Code
Bravato Theme for Visual Studio Code
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 |
|---|---|---|
| none | #7026B5 | — |
| none | #A626A4 | — |
| none | #1E9477 | — |
| none | #874B2A | — |
| none | #B2B3BA | — |
| none | #44474E | — |
| none | #3A65C2 | — |
| variable.language.this | #44474E | |
| comment | #B2B3BA | |
| comment markup.link | #B2B3BA | — |
| entity.name.type | #7026B5 | — |
| entity.other.inherited-class | #7026B5 | — |
| keyword | #A626A4 | — |
| keyword.control | #A626A4 | — |
| keyword.operator | #44474E | — |
| keyword.other.special-method | #4078F2 | — |
| keyword.other.unit | #7026B5 | — |
| storage | #A626A4 | — |
| storage.type.annotation, storage.type.primitive | #A626A4 | — |
| storage.modifier.package, storage.modifier.import | #44474E | — |
| constant | #7026B5 | — |
| constant.variable | #7026B5 | — |
| constant.character.escape | #7026B5 | — |
| constant.numeric | #7026B5 | — |
| constant.other.color | #7026B5 | — |
| constant.other.symbol | #7026B5 | — |
| variable | #874B2A | — |
| variable.interpolation | #A626A4 | — |
| variable.parameter | #44474E | — |
| string | #1E9477 | — |
| string > source, string embedded | #44474E | — |
| string.regexp | #7026B5 | — |
| string.other.link | #874B2A | — |
| punctuation.definition.comment | #B2B3BA | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #44474E | — |
| punctuation.definition.heading, punctuation.definition.identity | #4078F2 | — |
| punctuation.definition.bold | #7026B5 | bold |
| punctuation.definition.italic | #A626A4 | italic |
| punctuation.section.embedded | #A626A4 | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #44474E | — |
| support.class | #7026B5 | — |
| support.type | #7026B5 | — |
| support.function | #7026B5 | — |
| support.function.any-method | #204FB7 | — |
| entity.name.function | #204FB7 | — |
| entity.name.class, entity.name.type.class | #7026B5 | — |
| entity.name.section | #4078F2 | — |
| entity.name.tag | #7026B5 | — |
| entity.other.attribute-name | #A626A4 | — |
| entity.other.attribute-name.id | #4078F2 | — |
| meta.class | #7026B5 | — |
| meta.class.body | #44474E | — |
| meta.method-call, meta.method | #44474E | — |
| meta.definition.variable | #874B2A | — |
| meta.link | #7026B5 | — |
| meta.require | #4078F2 | — |
| meta.selector | #A626A4 | — |
| meta.separator | #44474E | — |
| meta.tag | #44474E | — |
| none | #44474E | — |
| invalid.deprecated | #ff6500 | — |
| invalid.illegal | #ff6500 | — |
| markup.bold | #7026B5 | bold |
| markup.changed | #A626A4 | — |
| markup.deleted | #874B2A | — |
| markup.italic | #A626A4 | italic |
| markup.heading | #874B2A | — |
| markup.heading punctuation.definition.heading | #4078F2 | — |
| markup.link | #7026B5 | — |
| markup.inserted | #1E9477 | — |
| markup.quote | #7026B5 | — |
| markup.raw | #1E9477 | — |
| source.c keyword.operator | #A626A4 | — |
| source.cpp keyword.operator | #A626A4 | — |
| source.cs keyword.operator | #A626A4 | — |
| source.css property-name, source.css property-value | #696C77 | — |
| source.css property-name.support, source.css property-value.support | #44474E | — |
| source.ini keyword.other.definition.ini | #874B2A | — |
| source.js keyword.operator | #7026B5 | — |
| 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 | #A626A4 | — |
| source.ts keyword.operator | #7026B5 | — |
| source.flow keyword.operator | #7026B5 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #874B2A | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #874B2A | — |
| 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 | #1E9477 | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #7026B5 | — |
| source.php class.bracket | #44474E | — |
| customrule | #44474E | — |
| support.type.property-name | #44474E | — |
| string.quoted.double punctuation | #1E9477 | — |
| support.constant | #7026B5 | — |
| support.type.property-name.json | #7026B5 | — |
| support.type.property-name.json punctuation | #7026B5 | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js, punctuation.separator.key-value.tsx | #7026B5 | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #7026B5 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx | #44474E | — |
| support.variable.dom.js, support.variable.dom.ts | #874B2A | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #874B2A | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #A626A4 | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters, source.tsx punctuation.definition.typeparameters | #44474E | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block, source.tsx punctuation.definition.block | #44474E | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma, source.tsx punctuation.separator.comma | #44474E | — |
| support.variable.property.js, support.variable.property.ts, support.variable.property.tsx | #874B2A | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #7026B5 | — |
| keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #A626A4 | — |
| keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx | #A626A4 | — |
| 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 | #44474E | — |
| source.js punctuation.accessor, source.ts punctuation.accessor, source.tsx punctuation.accessor | #44474E | — |
| punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.tsx | #44474E | — |
| 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 | #7026B5 | — |
| source.js support.variable, source.ts support.variable, source.tsx support.variable | #874B2A | — |
| variable.other.constant.property.js, variable.other.constant.property.ts, variable.other.constant.property.tsx | #7026B5 | — |
| keyword.operator.new.ts, keyword.operator.new.j, keyword.operator.new.tsx | #A626A4 | — |
| source.ts keyword.operator, source.tsx keyword.operator | #7026B5 | — |
| punctuation.separator.parameter.js, punctuation.separator.parameter.ts, punctuation.separator.parameter.tsx | #44474E | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #874B2A | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #7026B5 | — |
| keyword.control.as.js, keyword.control.as.ts, keyword.control.as.jsx, keyword.control.as.tsx | #44474E | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx | #44474E | — |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.jsx, variable.other.constant.tsx | #7026B5 | — |
| meta.export.default.js variable.other.readwrite.js, meta.export.default.ts variable.other.readwrite.ts | #44474E | — |
| source.js meta.template.expression.js punctuation.accessor, source.ts meta.template.expression.ts punctuation.accessor, source.tsx meta.template.expression.tsx punctuation.accessor | #1E9477 | — |
| 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 | #44474E | — |
| entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx | #1E9477 | — |
| storage.type.class.ts, meta.class.js, meta.class.jsx, meta.class.tsx, storage.type.enum.ts | #A626A4 | — |
| storage.type.ts | #7026B5 | — |
| meta.definition.property.js variable, meta.definition.property.ts variable, meta.definition.property.jsx variable, meta.definition.property.tsx variable | #874B2A | — |
| meta.type.parameters.js support.type, meta.type.parameters.jsx support.type, meta.type.parameters.ts support.type, meta.type.parameters.tsx support.type | #44474E | — |
| 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 | #44474E | — |
| meta.tag.js punctuation.section.embedded, meta.tag.jsx punctuation.section.embedded, meta.tag.ts punctuation.section.embedded, meta.tag.tsx punctuation.section.embedded | #44474E | — |
| meta.array.literal.js variable, meta.array.literal.jsx variable, meta.array.literal.ts variable, meta.array.literal.tsx variable | #7026B5 | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #874B2A | — |
| constant.language.json | #7026B5 | — |
| variable.other.constant.object.js, variable.other.constant.object.jsx, variable.other.constant.object.ts, variable.other.constant.object.tsx | #7026B5 | — |
| storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #7026B5 | — |
| 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 | #1E9477 | — |
| 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 | #1E9477 | — |
| keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx | #A626A4 | — |
| variable.other.object.js, variable.other.object.ts | #44474E | — |
| meta.object-literal.key.js, meta.object-literal.key.ts | #874B2A | — |
| entity.name.variable.field.cs | #874B2A | — |
| source.cs keyword.operator | #44474E | — |
| variable.other.readwrite.cs | #44474E | — |
| variable.other.object.cs | #44474E | — |
| variable.other.object.property.cs | #44474E | — |
| entity.name.variable.property.cs | #4078F2 | — |
| storage.type.cs | #7026B5 | — |
| markup.raw.block.markdown | #44474E | — |
| punctuation.definition.variable.shell | #874B2A | — |
| support.constant.property-value.css | #44474E | — |
| punctuation.definition.constant.css | #7026B5 | — |
| punctuation.separator.key-value.scss | #874B2A | — |
| punctuation.definition.constant.scss | #7026B5 | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #44474E | — |
| storage.type.primitive.array.java | #7026B5 | — |
| entity.name.section.markdown | #874B2A | — |
| punctuation.definition.heading.markdown | #874B2A | — |
| markup.heading.setext | #44474E | — |
| punctuation.definition.bold.markdown | #7026B5 | — |
| markup.inline.raw.markdown | #1E9477 | — |
| beginning.punctuation.definition.list.markdown | #874B2A | — |
| markup.quote.markdown | #B2B3BA | italic |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #44474E | — |
| punctuation.definition.metadata.markdown | #A626A4 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #A626A4 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #4078F2 | — |
| variable.language.dart | #A626A4 | — |
| constant.language.dart | #A626A4 | — |
| meta.property-list.scss, support.constant.property-value.css, keyword.other.unit.px.css, meta.interface.tsx | #874B2A | — |
| variable.scss | #3A65C2 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, storage.type, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #7026B5 | — |
| constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css | #44474E | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, punctuation.section.property-list.begin.bracket.curly.scss, entity.name.tag.css, support.type.vendored.property-name.css | #A626A4 | — |
| storage.type.interface.tsx, variable.object.property.tsx, meta.field.declaration.tsx, meta.interface.tsx, storage.type.tsx, storage.modifier.async.ts, keyword.operator.expression.keyof.ts, storage.modifier.ts | #A626A4 | — |
| constant.language | #874B2A | — |
| entity.name.section.markdown, heading.1.markdown, markup.heading.markdown | #874B2A | |
| string.unquoted.plain.out.yaml | #1E9477 | — |
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}!`;
}