MonoNight Pro
Publisher: Abhishek SankpalThemes in package: 3
Palenight backgrounds with Monokai, Material, and One Dark Pro syntax colors.
Palenight backgrounds with Monokai, Material, and One Dark Pro syntax colors.
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 | #676E95 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.bitwise, keyword.other.debugger, storage.type, storage.modifier | #C792EA | italic |
| storage.type.class, storage.type.function, storage.type.ts, storage.type.js | #C792EA | italic |
| string, string.quoted, string.template, string.interpolated, string.regexp | #C3E88D | — |
| meta.template.expression, punctuation.definition.template-expression | #89DDFF | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal | #FF6188 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, variable.language.this, variable.language.super | #F78C6C | italic |
| entity.name.function, meta.function-call, meta.function-call entity.name.function, support.function, support.function.console | #82AAFF | — |
| variable.parameter, meta.function.parameter | #A6ACCD | italic |
| variable, variable.other, variable.other.readwrite | #A6ACCD | — |
| variable.other.object | #89DDFF | — |
| variable.other.constant | #82AAFF | — |
| variable.other.property | #A6ACCD | — |
| meta.object-literal.key | #82AAFF | — |
| support.type.property-name | #89DDFF | — |
| entity.name.tag.yaml | #82AAFF | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.type.annotation, meta.type.parameters | #FFCB6B | — |
| entity.name.type.ts, entity.name.type.js, meta.type.annotation.ts, support.type.primitive, keyword.type | #FFCB6B | — |
| meta.decorator, punctuation.decorator, entity.name.function.ts meta.decorator | #82AAFF | italic |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.relational, keyword.operator.ternary, keyword.operator.spread, keyword.operator.optional | #89DDFF | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.separator.comma, punctuation.terminator.statement | #89DDFF | — |
| support.type.builtin, support.class.builtin, support.variable.dom, support.variable.property.dom, support.function.dom | #56B6C2 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #C792EA | italic |
| string.quoted.single.js meta.import, string.quoted.double.js meta.import | #C3E88D | — |
| entity.name.tag, meta.tag, punctuation.definition.tag | #FF6188 | — |
| entity.other.attribute-name, meta.tag.attributes | #C792EA | — |
| string.quoted.double.html, string.quoted.single.html | #C3E88D | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FF6188 | — |
| support.type.property-name.css, meta.property-name | #82AAFF | — |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit.css | #F78C6C | — |
| constant.other.color.rgb-value.css | #FFCB6B | — |
| support.type.property-name.json, string.json meta.structure.dictionary.value | #82AAFF | — |
| entity.name.section.markdown, markup.heading | #C792EA | bold |
| markup.bold | #FFCB6B | bold |
| markup.italic | #F78C6C | italic |
| markup.inline.raw | #C3E88D | — |
| markup.underline.link | #82AAFF | — |
| invalid, invalid.illegal | #E06C75 | 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}!`;
}