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, comment.line, comment.block, punctuation.definition.comment | #666688cc | 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 | #bbbbcc | — |
| entity.name.function, support.function, meta.function-call, entity.name.tag, entity.name.tag.html, entity.name.tag.css, support.class.component, support.class.component.tsx, support.class.component.jsx, punctuation.definition.heading.markdown, entity.name.section.markdown | #ff3366 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, storage, storage.type, storage.modifier, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #ff8800 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant, variable.other.constant | #ffff00 | — |
| entity.name.type, entity.name.type.class, entity.name.class, support.class, entity.other.inherited-class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, meta.type.annotation, support.type | #88ff00 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.template, string.template, punctuation.definition.string.begin, punctuation.definition.string.end | #00ff88 | — |
| variable, variable.other, variable.other.readwrite, meta.object-literal.key, entity.name.tag.yaml, entity.other.attribute-name, support.type.property-name, support.type.property-name.css, support.type.property-name.json, meta.property-name | #00ffff | — |
| variable.parameter, meta.parameter, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, variable.other.property, meta.attribute | #4488ff | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super, keyword.other.this, entity.name.type.module | #6666ff | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation, storage.type.annotation, punctuation.definition.annotation | #aa44ff | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type, keyword.operator.optional | #ff44ff | — |
| string.regexp, constant.character.escape, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp | #ff66aa | — |
| text, source, meta.brace, punctuation.separator, punctuation.terminator | #f0f0f5 | — |
| meta.tag.sgml.doctype, entity.name.tag.doctype, meta.tag.sgml.doctype.html | #ff8800 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #ff3366 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css, constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css, meta.property-value.css | #00ff88 | — |
| keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.rem.css, keyword.other.unit.em.css, keyword.other.unit.percentage.css | #ffff00 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #aa44ff | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.create.sql, keyword.other.data-integrity.sql, keyword.other.alias.sql | #ff8800 | — |
| support.function.aggregate.sql, support.function.string.sql, support.function.scalar.sql | #ff3366 | — |
| storage.type.sql, support.type.sql | #88ff00 | — |
| entity.name.tag.xml, entity.name.tag.localname.xml | #ff3366 | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #4488ff | — |
| entity.name.tag.namespace.xml, entity.other.attribute-name.namespace.xml | #aa44ff | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #00ffff | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml, variable.other.alias.yaml, keyword.control.flow.alias.yaml | #aa44ff | — |
| keyword.key.toml, support.type.property-name.toml | #00ffff | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml, entity.other.attribute-name.table.array.toml | #ff3366 | — |
| support.type.property-name.json | #ff3366 | — |
| meta.structure.dictionary.value.json support.type.property-name.json | #ff8800 | — |
| meta.structure.dictionary.value.json meta.structure.dictionary.value.json support.type.property-name.json | #ffff00 | — |
| meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json support.type.property-name.json | #00ff88 | — |
| meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json support.type.property-name.json | #00ffff | — |
| heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown | #ff3366 | bold |
| heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown | #ff8800 | bold |
| heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown | #ffff00 | bold |
| heading.4.markdown entity.name.section.markdown, heading.4.markdown punctuation.definition.heading.markdown | #00ff88 | bold |
| heading.5.markdown entity.name.section.markdown, heading.5.markdown punctuation.definition.heading.markdown | #00ffff | bold |
| heading.6.markdown entity.name.section.markdown, heading.6.markdown punctuation.definition.heading.markdown | #aa44ff | bold |
| markup.bold.markdown, punctuation.definition.bold.markdown | #ff8800 | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | #ff44ff | italic |
| markup.underline.link.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #4488ff | — |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #00ff88 | — |
| punctuation.definition.list.begin.markdown | #ffff00 | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | #6666ff | italic |
| entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python | #aa44ff | — |
| support.function.magic.python, support.variable.magic.python | #ff66aa | — |
| meta.fstring.python, storage.type.format.python | #00ff88 | — |
| punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust, storage.modifier.lifetime.rust | #ff66aa | — |
| entity.name.function.macro.rust, meta.macro.rust, support.function.macro.rust | #aa44ff | — |
| meta.attribute.rust, punctuation.definition.attribute.rust, punctuation.brackets.attribute.rust | #6666ff | — |
| entity.name.package.go | #88ff00 | — |
| entity.name.type.interface.go | #00ffff | — |
| variable.other.php, punctuation.definition.variable.php | #00ffff | — |
| support.class.php, entity.name.type.class.php | #88ff00 | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell, punctuation.definition.variable.shell | #00ffff | — |
| support.function.builtin.shell, entity.name.command.shell | #ff3366 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile | #ff8800 | — |
| entity.name.type.graphql, support.type.graphql | #88ff00 | — |
| variable.graphql, entity.name.fragment.graphql | #00ffff | — |
| entity.name.function.directive.graphql, punctuation.definition.directive.graphql | #aa44ff | — |
| entity.name.type.model.prisma, entity.name.type.enum.prisma | #88ff00 | — |
| variable.other.member.prisma, entity.name.field.prisma | #00ffff | — |
| entity.name.function.attribute.prisma, punctuation.definition.attribute.prisma | #aa44ff | — |
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}!`;
}