Bertram Theme
Publisher: Robert BennettThemes in package: 2
A theme that's easy on the eyes with a healthy dose of color
A theme that's easy on the eyes with a healthy dose of color
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, string.comment, string.docstring, punctuation.definition.string julia | #8893a0 | — |
| variable.other.constant, variable.language | #005cc5 | bold |
| entity.name, storage.type.haskell, meta.export.default, meta.definition.variable | #e38509 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression, keyword.operator.update, keyword.operator.assignment, meta.function.call punctuation.brackets | #24292e | — |
| entity.name.function, meta.function-call, meta.function.call, support.function.macro | #0364d3 | — |
| entity.name.function.julia, meta.function.definition | — | italic |
| meta.function.definition punctuation.brackets | — | |
| support.function.macro, entity.name.function.macro | — | bold |
| meta.function-call.arguments | #24292e | |
| entity.name.tag, support.class.component | #157c37 | — |
| keyword, storage, storage.type | #ce17d4 | |
| keyword.operator | #005cc5 | — |
| support.type | #ec6206 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292e | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #07852d | — |
| support | #0364d3 | — |
| meta.property-name | #005cc5 | — |
| variable.other, variable | #24292e | — |
| invalid.broken | #b31d28 | italic |
| invalid.deprecated | #b31d28 | italic |
| invalid.illegal | #b31d28 | italic |
| invalid.unimplemented | #b31d28 | italic |
| carriage-return | #fafbfc | italic underline |
| message.error | #b31d28 | — |
| string source, string variable | #00418b | — |
| source.regexp, string.regexp | #07852d | italic |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #07852d | — |
| constant.character.escape | #00418b | bold |
| string.regexp constant.character.escape, support.other.escape.special.regexp | #00418b | bold italic |
| constant.language, constant.other.symbol, support.constant, constant.numeric, entity.name.constant | #d81d55 | bold |
| constant.numeric | — | |
| constant.other | #005cc5 | bold |
| constant.other.symbol | — | |
| support.variable | #005cc5 | — |
| meta.module-reference | #005cc5 | — |
| punctuation.definition.list.begin.markdown | #e36209 | — |
| markup.heading, markup.heading entity.name | #005cc5 | bold |
| markup.quote | #22863a | — |
| markup.italic | #24292e | italic |
| markup.bold | #24292e | bold |
| markup.raw | #005cc5 | — |
| markup.substitution.attribute-reference | — | bold |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #b31d28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863a | — |
| markup.changed, punctuation.definition.changed | #e36209 | — |
| markup.ignored, markup.untracked | #f6f8fa | — |
| meta.diff.range | #6f42c1 | bold |
| meta.diff.header | #005cc5 | — |
| meta.separator | #005cc5 | bold |
| meta.output | #005cc5 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #b31d28 | — |
| constant.other.reference.link, string.other.link | #032f62 | underline |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}