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 | #64748bcc | 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 | #94a3b8 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.constant, meta.object-literal.key, support.variable.property, entity.name.variable, constant.other.placeholder | #7dd3fc | — |
| entity.name.function, meta.function-call, support.function, meta.method-call, entity.name.method, keyword.other.special-method, variable.function, support.function.misc | #3b82f6 | — |
| string, string.quoted, string.template, punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end, string.quoted.single, string.quoted.double, string.quoted.triple, string.quoted.other, meta.attribute-selector.scss | #22d3ee | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.numeric.decimal, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #a78bfa | — |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, keyword.control.trycatch, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.sizeof, keyword.operator.typeof, keyword.operator.instanceof, keyword.other.unit, storage.type, storage.modifier | #60a5fa | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.ternary, punctuation.accessor, punctuation.separator, meta.brace | #e2e8f0 | — |
| entity.name.class, entity.name.type, entity.name.type.class, entity.other.inherited-class, support.class, support.type, entity.name.namespace, entity.name.module, meta.type.annotation, storage.type.class, support.type.primitive, support.type.builtin | #4ade80 | — |
| meta.decorator, meta.annotation, punctuation.decorator, entity.name.function.decorator, storage.type.annotation | #fbbf24 | — |
| variable.parameter, entity.name.variable.parameter, meta.parameter, meta.parameters | #cbd5e1 | italic |
| entity.name.tag, entity.name.tag.html, entity.name.tag.css, entity.name.tag.yaml, entity.name.tag.localname.xml, entity.name.tag.other.html | #3b82f6 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.class, entity.other.attribute-name.id | #7dd3fc | — |
| support.type.property-name, support.type.property-name.css, meta.property-name | #7dd3fc | — |
| support.constant.property-value, support.constant.font-name, meta.property-value, support.constant.color | #22d3ee | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #4ade80 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.data-integrity.sql, keyword.other.LUW.sql, keyword.other.alias.sql, keyword.other.order.sql, keyword.other.object-comments.sql, keyword.other.authorization.sql | #60a5fa | — |
| support.function.aggregate.sql, support.function.scalar.sql, support.function.string.sql, support.function.datetime.sql, support.function.conversion.sql, support.function.mathematical.sql | #3b82f6 | — |
| storage.type.sql, support.type.sql | #4ade80 | — |
| entity.name.tag.yaml, entity.name.tag.xml, entity.name.tag.localname.xml, entity.other.attribute-name.localname.xml, meta.tag.xml, meta.tag.sgml.doctype.xml | #3b82f6 | — |
| string.unquoted.plain.out.yaml, string.unquoted.block.yaml, source.toml string | #22d3ee | — |
| support.type.property-name.json | #3b82f6 | — |
| meta.structure.dictionary.value meta.structure.dictionary.json support.type.property-name.json | #60a5fa | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.json support.type.property-name.json | #7dd3fc | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.json support.type.property-name.json | #22d3ee | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.json support.type.property-name.json | #67e8f9 | — |
| variable.language.self, variable.language.cls, variable.language.this, variable.language.special.self | #a78bfa | italic |
| entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python | #fbbf24 | — |
| support.function.magic.python, support.variable.magic.python | #a78bfa | — |
| punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust, storage.modifier.lifetime.rust | #fbbf24 | — |
| entity.name.function.macro.rust, meta.macro.rust, support.macro.rust | #a78bfa | — |
| entity.name.type.rust, entity.name.type.primitive.rust, storage.type.rust, storage.type.core.rust | #4ade80 | — |
| entity.name.package.go, entity.name.import.go | #22d3ee | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, keyword.other.class.php | #3b82f6 | — |
| variable.other.php, punctuation.definition.variable.php | #7dd3fc | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell, variable.other.special.shell, punctuation.definition.variable.shell | #7dd3fc | — |
| support.function.builtin.shell | #3b82f6 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile | #60a5fa | — |
| support.type.graphql, entity.name.fragment.graphql | #4ade80 | — |
| variable.graphql, variable.arguments.graphql | #7dd3fc | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading.markdown, punctuation.definition.heading.markdown | #3b82f6 | — |
| markup.bold.markdown, punctuation.definition.bold.markdown | #fbbf24 | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | #a78bfa | italic |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #22d3ee | — |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown, markup.raw.block.markdown | #4ade80 | — |
| beginning.punctuation.definition.list.markdown, punctuation.definition.list.begin.markdown | #60a5fa | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | #64748bcc | italic |
| string.regexp, keyword.operator.quantifier.regexp, keyword.control.anchor.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #f47266 | — |
| constant.character.escape, constant.other.character-class.regexp | #fbbf24 | — |
| invalid, invalid.illegal | #f47266 | — |
| invalid.deprecated | #fbbf24 | strikethrough |
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}!`;
}