Baculum Color
Publisher: oneplus1000Themes in package: 7
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, entity.other.inherited-class, entity.other.attribute-name.pseudo-element.css, markup.italic.markdown, markup.quote, meta.function.variable.css, punctuation.definition.italic.markdown, punctuation.definition.string.css, string.quoted.double.css, storage.type.function, support.variable, variable, variable.other.object.property, variable.language, variable.parameter, variable.argument.css | — | italic |
| markup.bold.markdown, punctuation.definition.bold.markdown | — | bold |
| — | underline | |
| constant.other.table-name.sql, meta.brace, meta.structure.dictionary.json, punctuation.definition.block, punctuation.definition.dictionary, punctuation.definition.tag, punctuation.curlybrace, punctuation.fullstop, punctuation.section, punctuation.support, punctuation.definition.array, punctuation.terminator, punctuation.definition.binding-pattern, string.quoted.double.json, support.constant.property-value.css, support.variable, text.html.markdown, variable, variable.other.object.property, variable.language, variable.parameter, variable.argument.css | #D4D4D4 | — |
| comment, meta.link.inline.markdown, meta.image.inline.markdown, markup.underline.link | #98988e | — |
| entity.name.type.js, entity.name.filename.find-in-files, markup.quote, markup.italic, markup.changed, markup.quote, string, punctuation.definition.string, string.quoted.single.js, string.quoted.double.js | #c28457 | — |
| constant.character, constant.other.placeholder | #d1988c | — |
| keyword.type, meta.brace.square.js, meta.brace.square.ts, punctuation.accessor, punctuation.separator, string.quoted.docstring, entity.name.type | #8ad3db | — |
| constant.character.escape.markdown, entity.name.class, entity.other.attribute-name, entity.other.inherited-class, entity.name.tag, entity.name.section.markdown, entity.name.function, entity.name.section, entity.other.attribute-name.class.css, meta.function-call.generic, markup.heading.setext, markup.deleted, markup.heading, punctuation.definition.heading, punctuation.definition.template-expression, punctuation.definition.keyword, punctuation.section.embedded, string.other.link.description.markdown, support.other.escape.special.regexp, support.function, token.error-token | #a7d6af | — |
| keyword.other.unit.fr.css, keyword, keyword.other.DML.sql, keyword.other.unit.percentage.css, keyword.other.unit.s.css, keyword.other.unit.px.css | #e87b96 | — |
| keyword.operator | #d1bec2 | — |
| constant.other.database-name.sql, meta.brace, variable.other.object | #da7dae | — |
| constant.other.caps.python | #8a7ed3 | — |
| constant.numeric.line-number.find-in-files - match, keyword.other.alias.sql, keyword.type, markup.fenced_code.block.markdown, meta.functiona.variable.css, support.class, meta.object-literal.key.js, markup.italic, support.function.builtin, support.type.property-name, storage.type.function, storage.type, storage, entity.other.attribute-name.id.css, entity.other.inherited-class, entity.name.class, keyword.var, keyword.struct, keyword.interface, keyword.const, keyword.function, markup.inserted, markup.inline.raw, punctuation.parenthesis.non-capturing.end.regexp, punctuation.parenthesis.named.end.regexp, punctuation.parenthesis.named.begin.regexp, punctuation.parenthesis.non-capturing.begin.regexp, support.constant, support.type | #e87b96 | — |
| support.class, entity.name.type.ts | #87b160 | — |
| beginning.punctuation.definition.list.markdown, constant.language.null, constant.language.boolean.true, constant.language.boolean.false, entity.other.attribute-name.pseudo-element.css, punctuation.definition.string.css, string.quoted.double.css | #f3c035 | — |
| constant.numeric | #e6e2a1 | — |
| constant | #e6e2a1 | — |
| string.quoted.docstring.multi.python | #6E7066 | — |
| string.quoted.docstring.multi.python punctuation.definition.string.end.python | #6E7066 | — |
| string.quoted.docstring.multi.python punctuation.definition.string.begin.python | #70666a | — |
| storage.type.annotation.dart, entity.name.function.decorator.python | #929292 | — |
| variable.language.this.php, variable.language.special.self.python, variable.parameter.function.language.special.self.python | #877eb4 | — |
| variable.other.object.ts, variable.other.constant.ts | #D4D4D4 | — |
| variable.language.this.ts | #8a7ed3 | — |
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}!`;
}