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 | #F8F8F2 | — |
| comment | #88846F | — |
| string | #FFC324 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric | #a992f0 | — |
| constant.language | #a992f0 | — |
| constant.character, constant.other | #a992f0 | — |
| variable | #F8F8F2 | |
| keyword | #F92672 | — |
| storage | #F92672 | |
| storage.type | #66D9EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #52f97a | underline bold |
| entity.other.inherited-class, punctuation.separator.namespace.ruby | #52f97a | italic underline bold |
| entity.name.function | #52f97a | bold |
| entity.name.tag | #F92672 | bold |
| entity.other.attribute-name | #52f97a | underline |
| support.function | #66D9EF | bold |
| support.constant | #66D9EF | bold |
| support.type, support.class | #66D9EF | italic bold |
| storage.type | #66D9EF | italic bold |
| keyword | #F92672 | bold |
| storage | #F92672 | bold |
| storage.type | #66D9EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #52f97a | underline |
| entity.other.inherited-class, punctuation.separator.namespace.ruby | #52f97a | italic underline |
| entity.name.function | #52f97a | |
| variable.parameter | #FF9E00 | italic |
| variable.other.readwrite | #FFFFFF | |
| variable.other.object | #FF9E00 | |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #52f97a | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type, support.class | #66D9EF | italic |
| support.other.variable | — | |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #52f97a | — |
| markup.changed | #FFC324 | — |
| constant.numeric.line-number.find-in-files - match | #a992f0A0 | — |
| entity.name.filename.find-in-files | #FFC324 | — |
| markup.quote | #F92672 | — |
| markup.list | #FFC324 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FF9E00 | |
| markup.heading | #52f97a | bold |
| markup.heading.setext | #52f97a | bold underline |
| markup.heading.markdown | — | bold underline |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.bold, markup.italic | #66D9EF | bold italic |
| markup.inline.raw | #FF9E00 | |
| markup.heading | #52f97a | — |
| markup.heading.setext | #52f97a | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #a992f0 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #FFC324 | — |
| markup.italic.markdown | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #F8F8F2 | — |
| punctuation.definition.list.begin.markdown | #52f97a | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language | #FF9E00 | — |
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}!`;
}