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 | #5a698688 | italic |
| variable, variable.other, meta.block variable.other | #35c4e0 | — |
| entity.name.function, meta.function-call, variable.function, support.function, entity.name.tag, keyword.control, entity.name | #cc0055 | — |
| string, string.quoted, string.template, string.regexp, variable.language | #8dc42b | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.other.color, constant.other.symbol, entity.name.decorator, storage.type.annotation | #c99a14 | — |
| keyword, storage.type, storage.modifier, constant.language, entity.other.attribute-name, markup.heading | #cdd6e8 | — |
| support.type, punctuation.definition.tag, meta.tag, storage.type.function.arrow | #6e7d9a | — |
| keyword.other.sql, support.function.aggregate.sql, support.function.window.sql | #cc0055 | bold |
| storage.type.sql, storage.type.numeric.sql | #35c4e0 | — |
| entity.name.tag.xml, meta.tag.xml | #cc0055 | — |
| entity.other.attribute-name.xml | #35c4e0 | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml | #35c4e0 | — |
| string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.in.yaml | #8dc42b | — |
| meta.import, keyword.control.import, keyword.control.from | #5a698688 | — |
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}!`;
}