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 | #7a8caacc | 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 | #9aacdb | — |
| 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 | #66ccff | — |
| 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 | #ffffff | — |
| 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 | #ff1a6e | — |
| 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 | #0099ff | — |
| 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 | #ffe600 | — |
| 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 | #dddddd | — |
| meta.import, punctuation.terminator.statement, keyword.control.import, keyword.control.from | #7a8caacc | — |
| string.other.link.title.markdown, constant.other.reference.link.markdown | #66ccff | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown, meta.separator, markup.table | #aabbdd | italic |
| markup.raw.block | #cccccc | — |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold | #cccccc | bold 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 | #aabbdd | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id, entity.name.tag.css | #ff1a6e | — |
| 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 | #0099ff | — |
| 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 | #ffe600 | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.DML.II.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.into.sql, keyword.other.values.sql, keyword.other.set.sql, keyword.other.table.sql, support.function.aggregate.sql, support.function.window.sql | #ff1a6e | bold |
| storage.type.sql, support.type.sql | #66ccff | — |
| support.function.sql, support.function.scalar.sql, support.function.string.sql, support.function.datetime.sql, support.function.mathematical.sql | #ffe600 | — |
| keyword.operator.sql, keyword.operator.comparison.sql, keyword.operator.logical.sql, keyword.operator.star.sql | #ffffff | — |
| entity.name.tag.xml, entity.name.tag.localname.xml, entity.name.tag.namespace.xml | #ff1a6e | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #66ccff | — |
| entity.name.tag.namespace.prefix.xml, entity.other.attribute-name.namespace.prefix.xml | #ffe600 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #ff1a6e | — |
| string.unquoted.yaml, string.quoted.single.yaml, string.quoted.double.yaml | #0099ff | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.alias.yaml | #ffe600 | — |
| support.type.property-name.table.toml, entity.name.section.group-title.toml | #ff1a6e | bold |
| support.type.property-name.toml | #66ccff | — |
| support.type.property-name.json | #ff1a6e | — |
| string.quoted.double.json | #0099ff | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #ffe600 | italic |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #ff1a6e | italic |
| support.function.magic.python | #66ccff | — |
| entity.name.function.macro.rust, entity.name.function.macro.rules.rust | #ffe600 | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #ff1a6e | italic |
| entity.name.package.go | #ffe600 | — |
| storage.type.go, support.type.builtin.go, entity.name.type.go | #66ccff | — |
| variable.other.php, punctuation.definition.variable.php | #66ccff | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell, punctuation.definition.variable.shell | #66ccff | — |
| support.function.builtin.shell, entity.name.command.shell | #ff1a6e | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile | #ff1a6e | bold |
| support.type.graphql, entity.name.type.graphql | #66ccff | — |
| variable.graphql, entity.name.fragment.graphql | #ffe600 | — |
| entity.name.type.model.prisma, entity.name.type.enum.prisma | #ff1a6e | bold |
| variable.other.assignment.prisma | #66ccff | — |
| support.type.primitive.prisma, entity.name.type.prisma | #ffe600 | — |
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}!`;
}