Monobrain Pro
Publisher: Ryan T.Themes in package: 1
A calm, focused dark theme: neutral monochrome chrome with refined, vivid syntax accents. Full terminal ANSI theming and semantic highlighting included.
A calm, focused dark theme: neutral monochrome chrome with refined, vivid syntax accents. Full terminal ANSI theming and semantic highlighting included.
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 | #6b7079 | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type.class | #868b94 | italic |
| keyword, keyword.control, keyword.other, storage, storage.type | #e8677d | — |
| storage.modifier | #e8677d | italic |
| keyword.operator | #c5c8cf | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.logical.python, keyword.operator.wordlike | #e8677d | — |
| string, string.quoted, string.template, punctuation.definition.string | #e3c778 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #e8677d | — |
| meta.template.expression | #c5c8cf | — |
| constant.character.escape, constant.other.placeholder | #e0a06a | — |
| string.regexp, constant.regexp | #e3c778 | — |
| constant.other.character-class.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #e0a06a | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #b995e8 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #b995e8 | — |
| constant, constant.other, variable.other.constant, variable.other.enummember, support.constant | #b995e8 | — |
| entity.name.function, meta.function entity.name.function, meta.definition.method entity.name.function | #6cb6e6 | — |
| meta.function-call entity.name.function, meta.function-call.generic, support.function, support.function.misc | #6cb6e6 | — |
| meta.decorator entity.name.function, meta.decorator punctuation.decorator, entity.name.function.decorator, punctuation.definition.annotation, storage.type.annotation | #6cb6e6 | — |
| entity.name.type, entity.name.type.class, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.module | #5bc2a8 | — |
| entity.name.type.interface, entity.name.type.enum, entity.name.type.parameter, entity.name.type.alias, support.type.primitive, support.type.builtin, keyword.type | #5bc2a8 | — |
| variable, variable.other.readwrite, variable.other.object, variable.other.object.property, variable.other.property, meta.definition.variable variable.other | #c5c8cf | — |
| variable.parameter, meta.parameters variable, entity.name.variable.parameter | #e0a06a | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super, variable.parameter.function.language.special.self | #e0a06a | — |
| variable.object.property, meta.object-literal.key, support.variable.property | #c5c8cf | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace | #c5c8cf | — |
| entity.name.label | #e0a06a | — |
| entity.name.tag, punctuation.definition.tag | #e8677d | — |
| support.class.component, entity.name.tag.custom, meta.tag.custom entity.name.tag | #5bc2a8 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx | #e3c778 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #5bc2a8 | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #e8677d | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #6cb6e6 | — |
| support.constant.property-value.css, meta.property-value.css, keyword.other.unit.css, constant.numeric.css | #e0a06a | — |
| keyword.control.at-rule, keyword.other.important.css | #e8677d | — |
| variable.css, variable.argument.css, variable.scss, variable.other.less | #e0a06a | — |
| support.type.property-name.json, support.type.property-name.json.comments | #b995e8 | — |
| entity.name.tag.yaml | #b995e8 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #5bc2a8 | — |
| keyword.key.toml, support.type.property-name.toml, entity.other.attribute-name.table.toml | #b995e8 | — |
| keyword.other.definition.ini, entity.name.section.group-title.ini | #b995e8 | — |
| entity.name.namespace, entity.name.module, support.other.namespace, entity.name.type.namespace | #5bc2a8 | — |
| support.function.builtin.shell, variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell | #e0a06a | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading.markdown | #6cb6e6 | bold |
| markup.bold, punctuation.definition.bold | #e0a06a | bold |
| markup.italic, punctuation.definition.italic | #b995e8 | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #5b9fd6 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #6cb6e6 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #5bc2a8 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #868b94 | italic |
| punctuation.definition.list.begin.markdown, markup.list.bullet | #e8677d | — |
| markup.inserted, markup.inserted.diff, punctuation.definition.inserted | #8ec07c | — |
| markup.deleted, markup.deleted.diff, punctuation.definition.deleted | #e8677d | — |
| markup.changed, punctuation.definition.changed | #e0a06a | — |
| meta.diff.header, meta.diff.header.from-file, meta.diff.header.to-file, meta.diff.range | #6cb6e6 | — |
| invalid, invalid.illegal | #e5484d | — |
| invalid.deprecated | #e0a06a | — |
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}!`;
}