mollbe Theme
Publisher: Benjamin MollenhauerThemes in package: 1
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 |
|---|---|---|
| source | #586e75 | — |
| keyword.control.import | #37606c99 | bold |
| keyword.control.from | #37606c99 | bold |
| variable.other.readwrite.alias | — | bold |
| constant.language.import-export-all | #ff0055 | — |
| meta.import.js | #586e75 | — |
| meta.definition.function | #ff0095 | bold |
| meta.definition.method | #ff0095 | bold |
| entity.name.type.alias | #ff0095 | bold |
| storage.type.function | #f655b3 | — |
| storage.type.type | #f655b3 | — |
| entity.name.function.decorator | #b87a9d | — |
| meta.function.decorator | #b87a9d | — |
| storage.type.function.arrow.js | #37606c99 | — |
| storage.type.class | #f655b3 | — |
| meta.class.python | #ff0095 | bold |
| support.function.magic.python | #ff0095 | bold |
| entity.name.function.python | #ff0095 | bold |
| storage.type.function.python | #f655b3 | — |
| variable.parameter.function-call.python | #37606c99 | — |
| storage.modifier | #f655b3 | — |
| storage.type.interface | #f655b3 | — |
| entity.name.type.interface.tsx | #ff0095 | bold |
| entity.name.type.interface.ts | #ff0095 | bold |
| keyword.control.export | #f655b3 | — |
| keyword.control.default | #ff0095 | — |
| meta.type.annotation.tsx | #37606c99 | — |
| support.type.primitive.tsx | — | bold |
| meta.field.declaration.tsx | #f655b3 | — |
| meta.definition.variable | #bf408a | — |
| entity.name.tag | #8f3d6d | bold |
| punctuation.definition.tag.begin.tsx | #8f3d6d | bold |
| punctuation.definition.tag.begin.html | #8f3d6d | bold |
| punctuation.definition.tag.end.tsx | #8f3d6d | bold |
| punctuation.definition.tag.end.html | #8f3d6d | bold |
| entity.other.attribute-name | #b87a9e | — |
| string.quoted.double.html | #7a5269 | — |
| string.quoted.double.tsx | #7a5269 | — |
| punctuation.definition.block | #ff0055 | — |
| variable.parameter.js | #bf408a | — |
| variable.other.constant.object.js | — | normal |
| keyword.control.flow | #586e75 | bold |
| keyword.control.loop | #586e75 | bold |
| keyword.control.conditional | #586e75 | bold |
| keyword.control.switch | #586e75 | bold |
| keyword.operator.logical | #586e75 | bold |
| keyword.operator.ternary | #586e75 | bold |
| comment.line | #339991 | — |
| comment.line.number-sign | #339991 | — |
| comment.block | #1fada2 | — |
| comment.block.documentation.js | #cc66a2 | — |
| string.quoted.double | #54c20a | — |
| string.quoted.single | #54c20a | — |
| punctuation.definition.string.template | #ff0055 | — |
| punctuation.definition.template-expression | #ff0055 | — |
| meta.template.expression | #89eb47 | — |
| string.template | #54c20a | — |
| string.interpolated | #54c20a | — |
| constant.character.format.placeholder.other.python | #ff0055 | — |
| meta.fstring.python | #54c20a | — |
| storage.type.string.python | #ff0055 | — |
| meta.brace.round | #37606c99 | — |
| punctuation.accessor | #37606c99 | — |
| punctuation.separator.key-value | #37606c99 | — |
| keyword.operator.assignment | #37606c99 | — |
| keyword.operator.comparison | #37606c99 | — |
| punctuation.definition.string.begin | #37606c99 | — |
| punctuation.definition.string.end | #37606c99 | — |
| meta.brace.square.js | #37606c99 | — |
| keyword.operator.rest.js | #37606c99 | — |
| keyword.operator.spread.js | #37606c99 | — |
| meta.object-literal.key | #54c20a | — |
| meta.definition.property | #54c20a | — |
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}!`;
}