M1okai
Publisher: martinmenevalThemes in package: 1
Martin's take on the classic Monokai. Pronounced 'Em-one-oh-kai'.
Martin's take on the classic Monokai. Pronounced 'Em-one-oh-kai'.
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 | #948581 | italic |
| comment entity.name.type, comment variable, comment variable.other, meta.annotation.rust, meta.annotation.rust keyword, meta.annotation.rust keyword.operator, meta.annotation.rust string, meta.attribute.rust, meta.attribute.rust string, punctuation.definition.entity.css, punctuation.definition.keyword.scss, punctuation.definition.variable, string.other.git-status.help.key, support.type.vendor-prefix.css, variable.annotation.rust, variable.language.rust | #C3B9B7 | — |
| comment keyword.codetag.notation, comment.git-status.header.remote, entity.name.function.operator, entity.name.lifetime.rust, entity.name.tag, entity.name.tag support.class.component, entity.name.tag.js.jsx support.class.component.js.jsx, keyword, keyword.control, keyword.control.directive, keyword.control.rust, keyword.declaration.class.ruby, keyword.declaration.function.ruby, keyword.declaration.namespace.ruby, keyword.operator, keyword.operator.member, keyword.operator.misc.rust, keyword.operator.new, keyword.other.rust, keyword.other.template.begin, keyword.other.template.end, keyword.other.where.rust, log.error, markup.deleted, markup.deleted punctuation.definition.deleted, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.template-string.element.begin, punctuation.template-string.element.end, region.pinkish, region.redish, source.vue support.class.component, source.yaml meta.mapping.key string, storage, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.lifetime.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.modifier.visibility.rust, storage.type.rust, string.other.git-status.remote, string.other.link.description, string.other.link.title, string.quoted.template punctuation.definition.string.begin, string.quoted.template punctuation.definition.string.end, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #FD6281 | — |
| comment.git-status.header.local, constant.other.elm, entity.name.function.preprocessor, entity.name.type.class.reference, entity.name.type.class.value, entity.name.type.rust, keyword.declaration, keyword.other.fn.rust, keyword.other.rust, keyword.other.unsafe.rust, keyword.other.where.rust, region.bluish, storage.class.std.rust, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.type.core.rust, storage.type.rust, string.other.link.description.title, support.constant, variable.other.class, variable.other.enummember | #79E4CD | — |
| comment.other.git-status.head, constant.other, entity.name.namespace, entity.name.operator.custom-literal, meta.embedded.line.tf, meta.function-call.python meta.function-call.arguments.python, meta.object.member, meta.type_params.rust, punctuation.definition.group, source, source.json meta.mapping.key string, string source, string.quoted.double.json, string.unquoted.label, support.variable, text, text.find-in-files, variable, variable.other, variable.other.event, variable.other.member, variable.other.property, variable.other.property.static, variable.other.readwrite | #FFE6DF | — |
| log.debug, punctuation.definition.comment, string.quoted.docstring, string.quoted.docstring punctuation.definition | #948581 | — |
| constant, constant.character.escape, constant.language, constant.numeric, constant.other.caps, constant.other.character-class.escape, constant.other.citation.latex, constant.other.color, constant.other.key, constant.other.property, entity.name.constant, entity.name.constant.preprocessor, entity.name.label, entity.name.operator.custom-literal.number, entity.other.git-status.hex, meta.preprocessor, region.purplish, source.git-show meta.diff.git-diff.header.extended.index.from-sha, source.git-show meta.diff.git-diff.header.extended.index.to-sha, source.git-show.commit.sha, source.ruby variable.other.readwrite.class.ruby, source.ruby variable.other.readwrite.instance.ruby, storage.class.restructuredtext.ref, support.constant.core.rust, variable.language.arguments, variable.other.constant | #C88AF1 | — |
| constant.other.placeholder.c, constant.other.symbol, entity.other.attribute-name.id.css, log.warning, markup.raw, meta.attribute-with-value.id string, meta.attribute.id.html string, meta.property-list.css variable.other, punctuation.section.embedded, punctuation.section.embedded constant.other, punctuation.section.embedded entity.name.tag, punctuation.section.embedded source, punctuation.section.embedded.begin, region.orangish, source.git-show meta.diff.range.unified, source.jinja2 variable.other.jinja2, support.class, variable.other.object.property.java, variable.other.readwrite.terraform, variable.other.substitution | #F59D84 | — |
| constant.numeric.line-number.find-in-files | #5b5453 | — |
| constant.numeric.line-number.match.find-in-files, entity.name.operator.custom-literal.string, entity.name.section, markup.changed, markup.changed punctuation.definition.changed, markup.heading, meta.diff.git-diff.header, region.yellowish, string, string.quoted.double.html | #FACA69 | — |
| entity.name, entity.name.function, entity.name.function, entity.name.function, entity.name.function.member.static, entity.name.function.templated, entity.other.animation-name.css, entity.other.attribute-name.class.css, entity.other.attribute-name.css, entity.other.attribute-name.parent-selector-suffix.css, entity.other.attribute-name.parent-selector-suffix.css punctuation.definition.entity.css, entity.other.attribute-name, entity.type, log.info, markup.inserted, markup.inserted punctuation.definition.inserted, markup.underline.link, markup.underline.link punctuation, meta.attribute-with-value.class string, meta.attribute.class.html string, meta.function-call.generic.python, meta.instance.constructor, region.greenish, source.jinja2 variable.other.jinja2.block, string.other.ref, string.other.restructuredtext.ref, support.function, support.function, support.function.builtin.python, variable.function | #9FDB74 | — |
| entity.name.type, entity.name.type.class.generic, entity.name.type.class.templated, entity.name.type.namespace | #9FDB74 | underline |
| entity.name.type.object.console, entity.other.attribute-name.pseudo-class.css, entity.other.inherited-class, entity.other.pseudo-class.css, entity.other.pseudo-element.css, storage.type, support.type | #79E4CD | italic |
| entity.other.jinja2.delimiter, keyword.operator.heading.restructuredtext, keyword.operator.table.row.restructuredtext keyword.operator.table.data.restructuredtext, keyword.other.parenthesis.elm, keyword.other.substitution, markup.ignored, markup.ignored punctuation.definition.ignored, markup.untracked, meta.brace.curly, meta.brace.round, meta.brace.square, meta.brackets entity.name.function.operator, meta.delimiter.comma.js, meta.function-call.method.without-arguments.js, meta.function-call.without-arguments.js, punctuation, punctuation.definition.group.begin.css, punctuation.definition.group.begin.ruby, punctuation.definition.group.end.css, punctuation.definition.group.end.ruby, punctuation.definition.string.end.html source.css, punctuation.definition.tag, punctuation.definition.tag source, punctuation.separator entity.name.function.operator, source.git-diff.command, source.git-diff.command meta.diff.git-diff.header.from-file, source.git-diff.command meta.diff.git-diff.header.to-file, source.git-show meta.diff.header.from-file, source.git-show meta.diff.header.to-file, source.git-show.author, source.git-show.date, source.sass, source.scss, string punctuation.definition.string source, string source punctuation.section.embedded, support.constant.handlebars, support.function.delimiter.elm | #948C8A | — |
| invalid | #FD6281 | italic underline |
| invalid.deprecated | #F59D84 | italic underline |
| markup.italic, markup.quote | — | italic |
| markup.bold | — | bold |
| markup.underline | — | underline |
| region.whitish | #FFFFFF | — |
| parameters variable.function, source.css variable.other, source.css variable.scss, source.less variable.declaration.less, source.less variable.other, source.less variable.other.less, source.sass variable.other, source.sass variable.sass, source.scss variable.other, source.scss variable.sass, source.scss variable.scss, variable.parameter | #F59D84 | italic |
| storage.type.extends, storage.type.function.arrow | #FD6281 | |
| storage.modifier, storage.type.modifier | #FD6281 | italic |
| support.type.property-name | #FACA69 | italic |
| variable.language, variable.parameter.function.language.special.cls.python, variable.parameter.function.language.special.self.python | #C3B9B7 | italic |
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}!`;
}