Monokai Plus Ultra
Publisher: k3v5Themes in package: 8
Themes
Themes
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #D8D8D2 | — |
| comment | #686653 | — |
| string | #69c8d8 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #D91F62 | — |
| constant.numeric | #42d76a | — |
| constant.language | #42d76a | — |
| constant.character, constant.other | #42d76a | — |
| variable | #D8D8D2 | — |
| keyword | #D91F62 | — |
| storage | #D91F62 | — |
| storage.type | #56C9DF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #9982d0 | underline |
| entity.other.inherited-class, punctuation.separator.namespace.ruby | #9982d0 | italic underline |
| entity.name.function | #9982d0 | — |
| variable.parameter | #D8A314 | italic |
| variable.other.object.ts, variable.other.property.ts, variable.other.object | #D8A314 | |
| variable.other.object.property.ts, variable.other.object.property.ts, variable.other.object | #CFCFCF | |
| variable.other.property.ts, variable.other.property | #CFCFCF | |
| markup.inline.raw | #D8A314 | |
| entity.name.tag | #D91F62 | — |
| entity.other.attribute-name | #9982d0 | — |
| support.function | #56C9DF | — |
| support.constant | #56C9DF | — |
| support.type, support.class | #56C9DF | italic |
| invalid | #D43737 | — |
| invalid.deprecated | #D43737 | — |
| meta.structure.dictionary.json string.quoted.double.json | #AFAFA2 | — |
| meta.diff, meta.diff.header | #5a584a | — |
| markup.deleted | #D91F62 | — |
| markup.inserted | #9982d0 | — |
| markup.changed | #69c8d8 | — |
| markup.quote.markdown | #5a584a | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #42d76a | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #69c8d8 | — |
| markup.italic.markdown | — | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #D8D8D2 | — |
| variable.language | #D8A314 | — |
| token.info-token | #5786C6 | — |
| token.warn-token | #AD8721 | — |
| token.error-token | #D43737 | — |
| token.debug-token | #A257C6 | — |
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}!`;
}