Monokai Pro New
Publisher: EmilijanMBThemes in package: 1
Monokai Pro New!
Monokai Pro New!
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 | #F8F8F2 | — |
| comment | #74705D | — |
| string | #E7DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92472 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric | #AC80FF | — |
| numeric-suffix | #67D8EF | italic |
| constant.language | #AC80FF | — |
| constant.character, constant.other, variable.other.constant | #AC80FF | — |
| variable, punctuation.accessor | #F8F8F2 | |
| keyword | #F92472 | — |
| storage | #F92472 | |
| storage.type | #67D8EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #A6E22C | — |
| entity.other.inherited-class | #A6E22C | italic |
| meta.definition.function | #A6E22C | |
| storage.type.function.arrow | #F92472 | — |
| meta.function-call | #67D8EF | |
| variable.parameter | #FD9621 | italic |
| entity.name.tag | #F92472 | |
| entity.other.attribute-name | #A6E22C | |
| variable.function, variable.annotation, meta.function-call.generic | #67D8EF | |
| support.constant | #67D8EF | |
| support.type, support.class | #67D8EF | italic |
| support.other.variable | — | |
| invalid | #F92472 | — |
| invalid.deprecated | #AC80FF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92472 | — |
| markup.inserted | #A6E22C | — |
| markup.changed | #E7DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AC80FFA0 | — |
| entity.name.filename.find-in-files | #E7DB74 | — |
| markup.quote | #F92472 | — |
| markup.list | #E7DB74 | — |
| markup.bold, markup.italic | #67D8EF | — |
| markup.inline.raw | #FD9621 | |
| markup.heading | #A6E22C | — |
| markup.heading.setext | #A6E22C | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language | #FD9621 | italic |
| storage.type.modifier.access | #F92472 | — |
| entity.name.function.definition, meta.definition | #A6E22C | — |
| entity.name.function.call | #67D8EF | — |
| meta.brace.round.js, punctuation.terminator.statement.js | #F8F8F2 | — |
| support.type.property-name, meta.structure.dictionary.json string.quoted.double.json | #E7DB74 | |
| support.class.dart | #67D8EF | — |
| entity.name.function.dart | #67D8EF | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.arguments.python | #F8F8F2 | — |
| entity.name.function.python | #A6E22C | — |
| support.function.magic | #67D8EF | — |
| storage.type.function.async | #F92472 | — |
| punctuation.definition.decorator.python | #F92472 | — |
| punctuation.separator.period.python | #F8F8F2 | — |
| entity.name.function.decorator.python | #67D8EF | — |
| entity.other.attribute-name.pragma.preprocessor | #F92472 | — |
| punctuation.separator.colon | #F8F8F2 | — |
| punctuation.section.arguments.begin.bracket.round, punctuation.section.arguments.end.bracket.round, punctuation.separator.delimiter, punctuation.section.block.begin.bracket.curly, punctuation.section.block.end.bracket.curly, punctuation.section.parens.begin.bracket.round, punctuation.section.parens.end.bracket.round, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square, storage.modifier.array.bracket.square, punctuation.separator.dot-access | #F8F8F2 | — |
| punctuation.separator.pointer-access | #F92472 | — |
| entity.name.function.go | #A6E22C | — |
| support.function.go | #67D8EF | — |
| keyword.function.go, keyword.struct.go, keyword.interface.go | #67D8EF | — |
| entity.name.type.namespace.cs | #FFFFFF | — |
| keyword.type.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.namespace.cs, keyword.other.class.cs, keyword.other.struct.cs | #67D8EF | italic |
| entity.name.function.cs | #A6E22C | — |
| entity.name.variable.parameter.cs | #FD9621 | italic |
| keyword.other.this.cs | #FD9621 | italic |
| inherit-class | #A6E22C | italic |
| punctuation.squarebracket-attribute.open.cs, punctuation.squarebracket-attribute.close.cs | #F92472 | bold |
| meta.definition.function | #A6E22C | |
| comment | #74705D | — |
| string | #E7DB74 | — |
| constant.numeric | #AC80FF | — |
| constant.language | #AC80FF | — |
| constant.character, constant.other, variable.other.constant | #AC80FF | — |
| invalid.deprecated | #AC80FF | — |
| constant.numeric.line-number.find-in-files - match | #AC80FF | — |
| variable, punctuation.accessor | #F8F8F2 | |
| variable.parameter | #FD9621 | — |
| variable.function, variable.annotation, meta.function-call.generic | #67D8EF | |
| support.other.variable | — | |
| variable.language | #FD9621 | italic |
| entity.name.variable.parameter.cs | #FD9621 | italic |
| keyword | #F92472 | — |
| keyword.function.go, keyword.struct.go, keyword.interface.go | #67D8EF | — |
| keyword.type.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.namespace.cs, keyword.other.class.cs, keyword.other.struct.cs | #67D8EF | italic |
| keyword.other.this.cs | #FD9621 | italic |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92472 | — |
| meta.brace.round.js, punctuation.terminator.statement.js | #F8F8F2 | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.arguments.python | #F8F8F2 | — |
| punctuation.definition.decorator.python | #F92472 | — |
| punctuation.separator.period.python | #F8F8F2 | — |
| punctuation.separator.colon | #F8F8F2 | — |
| punctuation.squarebracket-attribute.open.cs, punctuation.squarebracket-attribute.close.cs | #F92472 | bold |
| storage | #F92472 | |
| storage.type | #67D8EF | italic |
| storage.type.function.arrow | #F92472 | — |
| storage.type.modifier.access | #F92472 | — |
| storage.type.function.async | #F92472 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #A6E22C | — |
| entity.other.inherited-class | #A6E22C | italic |
| entity.name.tag | #F92472 | |
| entity.other.attribute-name | #A6E22C | |
| entity.name.filename.find-in-files | #E7DB74 | — |
| entity.name.function.definition, meta.definition | #A6E22C | — |
| entity.name.function.call | #67D8EF | — |
| entity.name.function.dart | #67D8EF | — |
| entity.name.function.python | #A6E22C | — |
| entity.name.function.decorator.python | #67D8EF | — |
| entity.other.attribute-name.pragma.preprocessor | #F92472 | — |
| support.type, support.class | #67D8EF | italic |
| support.class.dart | #67D8EF | — |
| inherit-class | #A6E22C | italic |
| meta.function-call | #67D8EF | |
| support.function.magic | #67D8EF | — |
| storage.type.function.async | #F92472 | — |
| entity.name.function.go | #A6E22C | — |
| support.function.go | #67D8EF | — |
| entity.name.function.cs | #A6E22C | — |
| support.constant | #67D8EF | |
| support.type.property-name, meta.structure.dictionary.json string.quoted.double.json | #E7DB74 | |
| entity.name.type.namespace.cs | #F7F7F7 | — |
| meta.embedded, source.groovy.embedded | #F8F8F2 | — |
| meta.template.expression | #F8F8F2 | — |
| numeric-suffix | #67D8EF | italic |
| invalid | #F92472 | — |
| meta.diff, meta.diff.header | #74705D | — |
| markup.deleted | #F92472 | — |
| markup.inserted | #A6E22C | — |
| markup.changed | #E7DB74 | — |
| markup.quote | #F92472 | — |
| markup.list | #E7DB74 | — |
| markup.bold, markup.italic | #67D8EF | — |
| markup.inline.raw | #FD9621 | |
| markup.heading | #A6E22C | — |
| markup.heading.setext | #A6E22C | |
| token.info-token | #67D8EF | — |
| token.warn-token | #FD9621 | — |
| token.error-token | #F83535 | — |
| token.debug-token | #AC80FF | — |
| keyword.operator.type.annotation | #F8F8F2 | — |
| entity.name.function.java | #67D8EF | — |
| variable.other.object.java | #67D8EF | — |
| storage.modifier.import.java | #67D8EF | — |
| meta.function-call.generic.python | #F8F8F2 | — |
| meta.fstring.python | #E7DB74 | — |
| punctuation.definition.decorator.python | #67D8EF | — |
| punctuation.decorator.js | #67D8EF | — |
| support.type.primitive.js | #F92472 | — |
| constant.character.format.placeholder.other.python | #E7DB74 | — |
| punctuation.definition.heading.markdown | #FD9621 | bold |
| entity.name.section.markdown | #F8F8F2 | bold |
| string.quoted.double.html | #E7DB74 | |
| markup.underline.link.markdown | #67D8EF | |
| string.other.link.title.markdown | #F8F8F2 | — |
| punctuation.definition.string.begin.markdown | #B3B3B1 | — |
| punctuation.definition.string.end.markdown | #B3B3B1 | — |
| punctuation.definition.metadata.markdown | #B3B3B1 | — |
| markup.underline.link.markdown | #67D8EF | — |
| meta.paragraph.markdown | #F8F8F2 | — |
| markup.list.unnumbered.markdown | #F8F8F2 | — |
| fenced_code.block.language.markdown | #AC80FF | — |
| punctuation.definition.annotation.java | #67D8EF | — |
| source.css | #67D8EF | — |
| entity.name.function.ruby | #A6E22C | — |
| support.function.kernel.ruby | #67D8EF | — |
| comment, comment keyword, comment markup.underline.link, comment string, comment punctuation.definition, comment punctuation, comment text | #69676C | |
| comment storage.type | #69676C | — |
| comment entity.name.type | #BAB6C0 | — |
| comment variable, comment variable.other | #BAB6C0 | — |
| comment keyword.codetag.notation | #948AE3 | — |
| comment.git-status.header.remote | #FC618D | — |
| comment.git-status.header.local | #5AD4E6 | — |
| comment.other.git-status.head | #F7F1FF | — |
| constant | #948AE3 | — |
| constant.other | #F7F1FF | — |
| constant.other.php | #948AE3 | — |
| constant.other.property | #948AE3 | — |
| constant.other.citation.latex | #948AE3 | — |
| constant.other.color | #948AE3 | — |
| constant.other.character-class.escape | #948AE3 | — |
| constant.other.key | #948AE3 | — |
| constant.other.symbol | #FD9353 | — |
| constant.other.elm | #5AD4E6 | — |
| constant.numeric | #948AE3 | — |
| constant.language | #948AE3 | — |
| constant.character.escape | #948AE3 | — |
| constant.numeric.line-number.find-in-files | #525053 | — |
| constant.numeric.line-number.match.find-in-files | #FCE566 | — |
| entity.name.section | #FCE566 | — |
| entity.name.function, entity.name.function.templated | #7BD88F | — |
| entity.name.function.member.static | #F7F1FF | — |
| entity.name.type.class.templated, entity.name.type.class.generic, entity.name.type.namespace | #5AD4E6 | — |
| entity.name.label | #948AE3 | — |
| entity.name.function.preprocessor | #5AD4E6 | — |
| entity.name | #7BD88F | — |
| entity.name.class | #5AD4E6 | — |
| entity.name.constant | #948AE3 | — |
| entity.name.namespace | #F7F1FF | — |
| entity.other.inherited-class | #5AD4E6 | italic |
| entity.name.function | #7BD88F | — |
| entity.name.tag, entity.name.tag.js.jsx support.class.component.js.jsx, entity.name.tag support.class.component, source.vue support.class.component | #FC618D | — |
| entity.name.function.operator | #FC618D | — |
| entity.name.type, entity.name.type.class.reference, entity.name.type.class.value | #5AD4E6 | — |
| entity.other.attribute-name | #5AD4E6 | italic |
| entity.other.attribute-name.class.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.css, entity.other.animation-name.css | #7BD88F | — |
| entity.other.attribute-name.id.css | #FD9353 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.pseudo-class.css, entity.other.pseudo-element.css | #5AD4E6 | italic |
| entity.name.function, support.function | #7BD88F | — |
| entity.other.git-status.hex | #948AE3 | — |
| entity.other.jinja2.delimiter | #8B888F | — |
| entity.name.operator.custom-literal | #F7F1FF | — |
| entity.name.operator.custom-literal.string | #FCE566 | — |
| entity.name.operator.custom-literal.number | #948AE3 | — |
| entity.name.type.rust | #5AD4E6 | — |
| entity.name.lifetime.rust | #FC618D | — |
| invalid | — | italic |
| keyword | #FC618D | — |
| keyword.control | #FC618D | — |
| keyword.control.directive | #FC618D | — |
| keyword.operator, keyword.operator.member, keyword.operator.new | #FC618D | — |
| keyword.other.substitution | #8B888F | — |
| keyword.other.template.begin, keyword.other.template.end | #FC618D | — |
| keyword.operator.heading.restructuredtext, keyword.operator.table.row.restructuredtext keyword.operator.table.data.restructuredtext | #8B888F | — |
| keyword.other.parenthesis.elm | #8B888F | — |
| keyword.other.fn.rust, keyword.other.rust, keyword.other.unsafe.rust, keyword.other.where.rust | #5AD4E6 | — |
| keyword.control.rust, keyword.operator.misc.rust | #FC618D | — |
| keyword.declaration.class.ruby, keyword.declaration.function.ruby | #FC618D | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.heading | #FCE566 | — |
| markup.raw | #FD9353 | — |
| markup.underline | — | underline |
| markup.underline.link | #7BD88F | — |
| markup.inserted, markup.inserted punctuation.definition.inserted | #7BD88F | — |
| markup.deleted, markup.deleted punctuation.definition.deleted | #FC618D | — |
| markup.changed, markup.changed punctuation.definition.changed | #FCE566 | — |
| markup.ignored, markup.ignored punctuation.definition.ignored | #8B888F | — |
| markup.untracked | #8B888F | — |
| markup.quote | — | italic |
| meta.brace.round, meta.brace.square, meta.brace.curly, meta.delimiter.comma.js, meta.function-call.without-arguments.js, meta.function-call.method.without-arguments.js | #8B888F | — |
| meta.function-call.generic.python, support.function.builtin.python | #7BD88F | — |
| meta.function-call.python meta.function-call.arguments.python | #F7F1FF | — |
| meta.instance.constructor | #7BD88F | — |
| meta.attribute-with-value.class string, meta.attribute.class.html string | #7BD88F | — |
| meta.attribute-with-value.id string, meta.attribute.id.html string | #FD9353 | — |
| source.json meta.structure.dictionary | #F7F1FF | — |
| source.json meta.structure.dictionary.value string | #FCE566 | — |
| meta.object.member | #F7F1FF | — |
| meta.property-list.css variable.other | #FD9353 | — |
| entity.name.constant.preprocessor, meta.preprocessor | #948AE3 | — |
| meta.diff.git-diff.header | #FCE566 | — |
| meta.type_params.rust | #F7F1FF | — |
| meta.attribute.rust, meta.annotation.rust, variable.language.rust, variable.annotation.rust, meta.annotation.rust string, meta.annotation.rust keyword, meta.annotation.rust keyword.operator, meta.attribute.rust string | #BAB6C0 | — |
| punctuation | #8B888F | — |
| punctuation.definition.tag, punctuation.definition.tag source, punctuation.definition.group.begin.ruby, punctuation.definition.group.end.ruby, punctuation.definition.group.begin.css, punctuation.definition.group.end.css, punctuation.definition.string.end.html source.css | #8B888F | — |
| punctuation.definition.group | #F7F1FF | — |
| punctuation.definition.comment | #69676C | — |
| punctuation.definition.variable, punctuation.definition.keyword.scss, punctuation.definition.entity.css | #BAB6C0 | — |
| punctuation.section.embedded, punctuation.section.embedded entity.name.tag, punctuation.section.embedded constant.other, punctuation.section.embedded source, punctuation.section.embedded.begin | #FD9353 | — |
| punctuation.template-string.element.begin, punctuation.template-string.element.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, string.quoted.template punctuation.definition.string.begin, string.quoted.template punctuation.definition.string.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FC618D | — |
| region.redish | #FC618D | — |
| region.orangish | #FD9353 | — |
| region.yellowish | #FCE566 | — |
| region.greenish | #7BD88F | — |
| region.bluish | #5AD4E6 | — |
| region.purplish | #948AE3 | — |
| region.pinkish | #FC618D | — |
| region.whitish | #FFFFFF | — |
| source | #F7F1FF | — |
| source.scss, source.sass | #8B888F | — |
| source.sass variable.other, source.sass variable.sass, source.scss variable.other, source.scss variable.scss, source.scss variable.sass, source.css variable.other, source.css variable.scss, source.less variable.other, source.less variable.other.less, source.less variable.declaration.less | #FD9353 | italic |
| source.git-show.commit.sha | #948AE3 | — |
| source.git-show.author, source.git-show.date, 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 | #8B888F | — |
| source.git-show meta.diff.git-diff.header.extended.index.from-sha, source.git-show meta.diff.git-diff.header.extended.index.to-sha | #948AE3 | — |
| source.git-show meta.diff.range.unified | #FD9353 | — |
| source.git-show meta.diff.header.from-file, source.git-show meta.diff.header.to-file | #8B888F | — |
| storage | #FC618D | — |
| storage.type | #5AD4E6 | italic |
| storage.type.extends | #FC618D | |
| storage.type.function.arrow | #FC618D | |
| storage.modifier, storage.type.modifier | #FC618D | italic |
| storage.class.restructuredtext.ref | #948AE3 | — |
| storage.modifier.visibility.rust, storage.modifier.lifetime.rust | #FC618D | — |
| storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.type.rust, storage.type.core.rust, storage.class.std.rust | #5AD4E6 | — |
| storage.type.rust, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, keyword.other.rust, keyword.other.where.rust | #FC618D | — |
| string | #FCE566 | — |
| string.unquoted.label | #F7F1FF | — |
| string source | #F7F1FF | — |
| string source punctuation.section.embedded, string punctuation.definition.string source | #8B888F | — |
| string.other.link.title, string.other.link.description | #FC618D | — |
| string.other.link.description.title | #5AD4E6 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #FC618D | — |
| string.other.ref, string.other.restructuredtext.ref | #7BD88F | — |
| string.other.git-status.help.key | #BAB6C0 | — |
| string.other.git-status.remote | #FC618D | — |
| support.constant | #5AD4E6 | — |
| support.constant.handlebars | #8B888F | — |
| support.type.vendor-prefix.css | #BAB6C0 | — |
| support.function | #7BD88F | — |
| support.function.delimiter.elm | #8B888F | — |
| support.type, entity.name.type.object.console | #5AD4E6 | italic |
| support.variable | #5AD4E6 | — |
| support.type.property-name | #F7F1FF | |
| support.class | #5AD4E6 | — |
| support.constant.core.rust | #948AE3 | — |
| text | #F7F1FF | — |
| text.find-in-files | #F7F1FF | — |
| variable, variable.other | #F7F1FF | — |
| variable.parameter, parameters variable.function | #FD9353 | italic |
| variable.language, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #BAB6C0 | italic |
| variable.language.arguments | #948AE3 | — |
| variable.other.class | #5AD4E6 | — |
| variable.other.constant | #948AE3 | — |
| variable.other.readwrite | #F7F1FF | — |
| variable.other.member | #F7F1FF | — |
| variable.other.enummember | #948AE3 | — |
| variable.other.property, variable.other.property.static, variable.other.event | #F7F1FF | — |
| variable.function | #7BD88F | — |
| variable.other.substitution | #FD9353 | — |
| source.ruby variable.other.readwrite.instance.ruby, source.ruby variable.other.readwrite.class.ruby | #948AE3 | — |
| source.jinja2 variable.other.jinja2.block | #7BD88F | — |
| source.jinja2 variable.other.jinja2 | #FD9353 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}