BESUR
Publisher: BESUR ThemesThemes in package: 6
Vibrant color themes — BESUR, Soft, Light, Barca, Ocean & Rainbow — with extended language support: JS/TS, Python, Rust, Go, PHP, SQL, XML, YAML, TOML, Markdown, Bash, and more.
Vibrant color themes — BESUR, Soft, Light, Barca, Ocean & Rainbow — with extended language support: JS/TS, Python, Rust, Go, PHP, SQL, XML, YAML, TOML, Markdown, Bash, and more.
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, punctuation.definition.comment, fenced_code.block.language.markdown | #8a9ab5aa | italic |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.tag, punctuation.separator.inheritance.php, keyword.other.template, keyword.other.substitution, meta.arrow, storage.type.function.arrow, keyword.operator.assignment, punctuation.terminator.rule.css, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.end | #4a5568 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, string constant.other.placeholder, meta.block variable.other, entity.name.method, variable.function.constructor, markup.changed, constant.character.escape, markup.inline.raw.string.markdown, entity.other.attribute-name.class.css, entity.other.inherited-class.ruby, keyword.control.pseudo-method.ruby, entity.name.variable.parameter.python, variable.parameter.function.python, variable.other.property, support.variable | #0088cc | — |
| keyword, keyword.control, keyword.operator, storage.type, storage.modifier, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other, markup.heading, markup.inserted.git_gutter, entity.other.attribute-name | #1a1f2e | — |
| entity.name.function, meta.function-call, variable.function, support.function, entity.name.tag, entity.name, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.return, keyword.control.async, keyword.control.await, keyword.control.try, keyword.control.except, keyword.control.raise, invalid, invalid.illegal, markup.deleted.git_gutter, markup.changed.git_gutter, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #ff006a | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.regexp, string.interpolated, entity.other.attribute-name.pseudo-class.css, entity.other.inherited-class, keyword.other.special-method, markup.inserted.git_gutter, variable.language | #5a9e00 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, tag.decorator entity.name.tag, tag.decorator punctuation.definition.tag, entity.name.decorator, keyword.operator.logical, constant.language.symbol.ruby, constant.other.color, constant.other.symbol, constant.other.key, punctuation.definition.annotation, storage.type.annotation | #c08000 | — |
| markup.bold, markup.bold string, entity.name, entity.other.inherited-class, entity.other.attribute-name.class.css, keyword.other.important.css, keyword.other.important.scss, support.class, support.class.ruby | — | bold |
| markup.italic, comment | — | italic |
| markup.underline, *url*, *link*, *uri* | — | underline |
| text.html.markdown, punctuation.definition.list_item.markdown, markup.italic | #2d3748 | — |
| meta.import, punctuation.terminator.statement, keyword.control.import, keyword.control.from | #8a9ab5aa | — |
| string.other.link.title.markdown, constant.other.reference.link.markdown | #0088cc | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown, meta.separator, markup.table | #4a5568 | italic |
| support.type, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #4a5568 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id, entity.name.tag.css | #ff006a | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.media-type.media.css, support.constant.media.css, constant.other.color.rgb-value.css, constant.other.color.rgb-value.hex.css | #5a9e00 | — |
| keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.pt.css, keyword.other.unit.percent.css, keyword.other.unit.css | #c08000 | — |
| keyword.other.sql, keyword.other.create.sql, keyword.other.drop.sql, keyword.other.select.sql, keyword.other.insert.sql, keyword.other.update.sql, keyword.other.delete.sql, keyword.other.where.sql, keyword.other.from.sql, keyword.other.join.sql, keyword.other.on.sql, keyword.other.as.sql, keyword.other.order.sql, keyword.other.group.sql, keyword.other.by.sql, keyword.other.having.sql, keyword.other.limit.sql, keyword.other.offset.sql, keyword.other.union.sql, keyword.other.intersect.sql, keyword.other.except.sql, keyword.other.into.sql, keyword.other.values.sql, keyword.other.set.sql, keyword.other.table.sql, keyword.other.database.sql, keyword.other.index.sql, keyword.other.primary.sql, keyword.other.foreign.sql, keyword.other.key.sql, keyword.other.references.sql, keyword.other.constraint.sql, keyword.other.not.sql, keyword.other.null.sql, keyword.other.unique.sql, keyword.other.default.sql, keyword.other.check.sql, keyword.other.transaction.sql, keyword.other.begin.sql, keyword.other.commit.sql, keyword.other.rollback.sql, keyword.other.grant.sql, keyword.other.revoke.sql, keyword.other.procedure.sql, keyword.other.function.sql, keyword.other.trigger.sql, keyword.other.view.sql, keyword.other.alter.sql, support.function.aggregate.sql, support.function.window.sql | #ff006a | bold |
| storage.type.sql, storage.type.numeric.sql, storage.type.string.sql, storage.type.date.sql, keyword.other.type.sql | #0088cc | — |
| entity.name.function.sql, meta.toc-list.id.sql, variable.other.table.sql, variable.other.column.sql, constant.other.database-name.sql, constant.other.table-name.sql | #1a1f2e | — |
| support.function.scalar.sql, support.function.string.sql, support.function.numeric.sql, support.function.date.sql | #c08000 | — |
| entity.name.tag.xml, entity.name.tag.localname.xml, meta.tag.xml | #ff006a | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #0088cc | — |
| entity.name.tag.namespace.xml, entity.other.attribute-name.namespace.xml, variable.other.documentroot.xml | #c08000 | — |
| meta.tag.preprocessor.xml, punctuation.definition.tag.xml | #4a5568 | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, punctuation.definition.block.sequence.item.yaml | #0088cc | — |
| string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.in.yaml | #5a9e00 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #c08000 | — |
| constant.language.boolean.yaml, constant.language.null.yaml, constant.language.yaml | #ff006a | — |
| keyword.key.toml, support.type.property-name.toml, variable.other.key.toml | #0088cc | — |
| string.quoted.single.toml, string.quoted.double.toml, string.quoted.triple.toml | #5a9e00 | — |
| entity.name.section.group-title.toml, support.type.property-name.table.toml | #ff006a | bold |
| constant.numeric.toml, constant.language.boolean.toml, constant.language.null.toml | #c08000 | — |
| meta.structure.dictionary.json support.type.property-name.json | #ff006a | — |
| meta.structure.dictionary.json meta.structure.dictionary.json support.type.property-name.json | #0088cc | — |
| meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json support.type.property-name.json | #5a9e00 | — |
| meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json support.type.property-name.json | #c08000 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #4a5568 | — |
| meta.structure.dictionary.value.json constant.numeric.json, meta.structure.dictionary.value.json constant.language.json | #c08000 | — |
| meta.decorator.python, entity.name.function.decorator.python, punctuation.definition.decorator.python | #c08000 | italic |
| variable.language.special.self.python | #ff006a | italic |
| support.type.python, meta.function.parameters.annotated.python, meta.function.return-type.python | #0088cc | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #c08000 | italic |
| meta.macro.rust, entity.name.function.macro.rust, support.function.macro.rust | #ff006a | — |
| entity.name.type.rust, support.type.primitive.rust, entity.name.struct.rust, entity.name.enum.rust, entity.name.trait.rust | #0088cc | — |
| entity.name.package.go, support.other.namespace.go | #0088cc | — |
| entity.name.function.go | #ff006a | — |
| entity.name.type.go, support.type.builtin.go | #0088cc | — |
| variable.other.php, variable.language.this.php | #0088cc | — |
| support.class.php, entity.name.class.php, entity.name.type.class.php | #0088cc | bold |
| support.function.magic.php | #ff006a | italic |
| support.type.graphql, entity.name.type.graphql | #0088cc | — |
| variable.graphql, meta.selectionset.graphql variable.graphql | #1a1f2e | — |
| entity.name.directive.graphql | #c08000 | — |
| keyword.operation.graphql, entity.name.fragment.graphql | #ff006a | — |
| keyword.other.special-method.dockerfile, entity.name.function.dockerfile, support.function.dockerfile | #ff006a | bold |
| variable.other.normal.shell, variable.other.bracket.shell, variable.other.special.shell | #0088cc | — |
| support.function.builtin.shell, keyword.other.shell | #ff006a | — |
| entity.name.type.model.prisma, entity.name.type.enum.prisma | #0088cc | bold |
| variable.other.field.prisma | #1a1f2e | — |
| support.function.attribute.prisma | #c08000 | — |
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}!`;
}