limbo
Publisher: Erik MüllerThemes in package: 1
Black & White theme with a few sprinkles of color
Black & White theme with a few sprinkles 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 |
|---|---|---|
| invalid, invalid.illegal | #FF5370 | — |
| comment, punctuation.definition.comment | #666 | italic |
| constant.other.color, 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, keyword.operator, entity.other.attribute-name, support.type.primitive, entity.name.type, storage.type.function.arrow | #a2a2a2 | |
| constant.language, storage.type, storage.modifier, keyword.control, keyword.function, keyword.operator.expression, meta.separator, variable.language.this, support.type.object.module | #a2a2a2 | italic |
| meta.object, meta.jsx.children, support.type.property-name, variable.object.property, variable.other.property, variable.other.object, variable.other.readwrite, variable.other, meta.embedded.expression, meta.definition, entity.name.tag.yaml, support.type.property-name.json, meta.parameters | #d0d0d0 | |
| meta.block, entity.name, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.inherited-class, variable.other.readwrite.alias, variable.other.property, variable.other.object.property, variable.other.constant.property, variable.parameter, meta.block, constant.language.import-export-all, support.type.exception, entity.name.type.interface, markup.heading, punctuation.separator.key-value, entity.name.type.module | #fff | |
| markup.italic | #fff | italic |
| markup.bold | #fff | bold |
| entity.name.function, variable.function, support.function, keyword.other.special-method, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, meta.tag, punctuation.decorator, entity.name.type.class, constant.other.character-class.regexp | #C984FF | |
| markup.quote, keyword.control.pseudo-method | #C984FF | italic |
| constant.numeric, punctuation.definition.list, constant.character.entity, meta.image.inline, constant.other.symbol, source.js constant.other.object.key.js string.unquoted.label.js, constant.character.escape, keyword.operator.quantifier.regexp | #ffa182 | |
| string, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #82daff | |
| *url*, *link*, *uri* | — | underline |
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}!`;
}