Boongle Themes
Publisher: BoongleThemes in package: 4
A collection of four modern themes: Boongle Dark Classic, Boongle Dark V0.2, Boongle Light, and Boongle Claude Dark
A collection of four modern themes: Boongle Dark Classic, Boongle Dark V0.2, Boongle Light, and Boongle Claude Dark
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 | #6b7280 | italic |
| variable, string constant.other.placeholder | #1a1a1a | — |
| constant.other.color | #1a1a1a | — |
| invalid, invalid.illegal | #dc2626 | — |
| keyword, storage.type, storage.modifier | #7c3aed | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #404040 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #2563eb | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #2563eb | — |
| meta.block variable.other | #1a1a1a | — |
| support.other.variable.use, string.other.link | #1a1a1a | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #d97706 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #059669 | — |
| entity.name, support.class, support.type, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #2563eb | — |
| entity.name.function, meta.function-call entity.name.function, support.function, keyword.other.special-method | #2563eb | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less, 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 | #2563eb | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #1a1a1a | — |
| variable.language | #dc2626 | — |
| entity.name.method.js | #2563eb | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #2563eb | — |
| entity.other.attribute-name | #d97706 | — |
| 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 | #d97706 | — |
| source.css support.variable, source.sass support.variable, source.scss support.variable, source.less support.variable, source.stylus support.variable, source.postcss support.variable | #1a1a1a | — |
| string.regexp | #0891b2 | — |
| constant.character.escape | #0891b2 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7c3aed | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #7c3aed | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #2563eb | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #2563eb | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #2563eb | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #2563eb | — |
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}!`;
}