Monogray Theme
Publisher: milogosnellThemes in package: 1
A monochromatic greyscale color theme with a hint of blue.
A monochromatic greyscale color theme with a hint of blue.
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 |
|---|---|---|
| variable, meta.definition.variable.name, support.variable | #949CA3 | |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #949CA3 | |
| comment, punctuation.comment, punctuation.definition.comment | #5F6871 | |
| keyword.operator | #D8DCE0 | bold |
| punctuation, delimiter, bracket, brace, paren, delimiter.tag, punctuation.tag, tag.html, tag.xml, meta.property-value punctuation.separator.key-value, punctuation.definition.metadata.md, string.link.md, meta.brace | #778089 | |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #D8DCE0 | |
| string, meta.property-value.string, support.constant.property-value.string, meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json, meta.preprocessor string | #778089 | italic |
| constant.numeric, meta.property-value.numeric, support.constant.property-value.numeric, meta.property-value.color, support.constant.property-value.color, constant.language | #D8DCE0 | |
| constant.character, constant.other, entity.name.function, entity.name.class, entity.other.inherited-class, entity.other.attribute-name, entity.name, entity.other.attribute-name, entity.other.attribute-name.html, support.type.property-name, entity.name.tag.table, meta.structure.dictionary.json string.quoted.double.json | #B5BBC0 | |
| keyword, meta.property-value.keyword, support.constant.property-value.keyword, meta.preprocessor.keyword, keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #D8DCE0 | bold |
| storage, storage.type, storage.type.ts, storage.type.var.ts, storage.type.js, storage.type.var.js, storage.type.const.ts, storage.type.let.ts, storage.type.let.js, storage.type.const.js, entity.name.tag | #D8DCE0 | bold |
| meta.ptr, meta.pointer, meta.address, meta.array.cxx | — | — |
| meta.preprocessor | #B5BBC0 | |
| support.type, support.class, support.function, support.constant | #B5BBC0 | |
| invalid | #ED6E6F | — |
| invalid.deprecated | #ED6E6F | — |
| punctuation.definition.heading.md, entity.name.type.md, beginning.punctuation | #B5BBC0 | |
| markup.heading, entity.name.section | #D8DCE0 | bold |
| markup.raw, markup.inline.raw, markup.fenced, markup.fenced_code | #778089 | italic |
| markup.link, string.other.link.title, string.other.link.description, meta.link.inline, meta.image.inline | #B5BBC0 | |
| variable.language.makefile, variable.other.makefile | #B5BBC0 | |
| markup.italic | — | italic |
| markup.bold | — | bold |
| entity.other.attribute-name.class.css | #B5BBC0 | |
| entity.name.tag.css | #D8DCE0 | bold |
| meta.property-name.css | #B5BBC0 | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}