Monokai++
Publisher: Davide CasellaThemes in package: 2
A modern Monokai theme for Sublime Text 3 and Visual Studio Code
A modern Monokai theme for Sublime Text 3 and Visual Studio Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #cccccc | — |
| entity.name.function.preprocessor, meta.preprocessor.macro, storage.modifier.import, storage.type.generic, variable.parameter, punctuation.section.class.begin, punctuation.section.class.end | #cccccc | — |
| invalid | — | — |
| comment | #696d70 | — |
| string, string.quoted, punctuation.definition.string.begin, punctuation.definition.string.end | #e6db74 | — |
| string.regexp | #49e0fd | — |
| constant.language, constant.numeric, support.variable.magic | #ae81ff | — |
| constant.character, constant.other.placeholder, support.other.escape.special.regexp | #e62a19 | — |
| constant.other | #fd971f | — |
| entity.name.variable.property, keyword, meta.preprocessor | #f92672 | — |
| storage, support.constant, punctuation.section.class | #49e0fd | — |
| keyword.type, storage.type, support.class, support.type, entity.name.type | #2be98a | — |
| variable.language, variable.parameter.function.language.special, variable.other.member, variable.other.readwrite.member, entity.other.attribute-name, variable.parameter.function-call | #fd971f | — |
| punctuation.accessor, punctuation.section.embedded, punctuation.separator, punctuation.definition.attribute, storage.type.function.arrow, punctuation.definition.template-expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.template-string.element.begin, punctuation.template-string.element.end | #f92672 | — |
| punctuation.separator.parameters | #fd971f | — |
| entity.name.tag | #f92672 | — |
| entity.name.function, support.function, variable.function | #b0ec38 | — |
| markup.heading | #f92672 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.underline | — | underline |
| markup.quote | #696d70 | — |
| markup.inline, markup.raw.inline | #ae81ff | — |
| keyword.operator.dereference.java, meta.preprocessor.haskell, punctuation.separator.java, meta.group.js, meta.group.go, punctuation.section.class.begin.python, support.variable.dom.js, constant.character.brace, constant.character.end, constant.character.paren, constant.character.quote, support.class.js, punctuation.section.group.begin.js, punctuation.section.group.end.js, meta.template.expression, meta.group.braces, source.groovy.embedded.source, punctuation.section.class.end.groovy, variable.other.bracket.shell, variable.other.readwrite.shell, meta.group.expansion.command.parens.shell, variable.other.normal.shell, string.interpolated.dollar.shell, meta.function.shell punctuation.section.parens.begin.shell, meta.function.shell punctuation.section.parens.end.shell, string.other.math.shell | #cccccc | — |
| constant.other.symbol.prolog, support.function.be.latex, support.function.general.tex, support.function.section.latex, punctuation.dollar.js, punctuation.separator.parameters.python, support.function.definition.latex, constant.language.module.events, constant.language.module.http, constant.language.directive.module.main, constant.language.directive.module.events, constant.language.directive.module.http, variable.language.this.js, variable.parameter.option.shell, punctuation.definition.variable.shell, punctuation.section.expansion.parameter.begin.shell, punctuation.section.expansion.parameter.end.shell, punctuation.section.parens.begin.shell, punctuation.section.parens.end.shell, string.interpolated.dollar.shell punctuation.definition.string.begin.shell, string.interpolated.dollar.shell punctuation.definition.string.end.shell, string.other.math.shell punctuation.definition.string.begin.shell, string.other.math.shell punctuation.definition.string.end.shell, variable.language.special.self.python, variable.parameter.function.language.special.self.python | #f92672 | — |
| entity.name.type.go, entity.name.type.namespace.php, meta.import.scala, punctuation.separator.inheritance.php, storage.type.js, support.other.module.haskell, support.other.namespace.use.php, variable.other.constant.ruby, entity.name.section.puppet, entity.name.function.decorator.python, keyword.other.rust | #49e0fd | — |
| keyword.control.def.ruby, keyword.declaration.scala, keyword.declaration.stable.scala, keyword.declaration.volatile.scala, keyword.other.fn.rust, meta.structure.dictionary.key.json, storage.class.std.rust | #2be98a | — |
| meta.function-call.object.php, meta.function-call.static.php, variable.other.makefile, variable.other.prolog, variable.other.property.js, support.variable.property.dom.js, meta.property.object.js, support.variable.property.js, variable.other.object.property.js, variable.other.property.cpp, meta.attribute.python | #fd971f | — |
| meta.method.groovy, punctuation.definition.logical-expression.shell, meta.function-call.generic.python | #b0ec38 | — |
| constant.other.boolean.toml | #ae81ff | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #49e0fd | — |
| beginning.punctuation.definition.list.markdown, punctuation.definition.list_item.markdown, punctuation.definition.list.markdown, punctuation.definition.heading.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.bold.begin.markdown, punctuation.definition.bold.end.markdown, punctuation.definition.italic.begin.markdown, punctuation.definition.italic.end.markdown, punctuation.definition.heading.begin.markdown, punctuation.definition.heading.end.markdown, punctuation.definition.raw.begin.markdown, punctuation.definition.raw.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.raw.markdown, markup.underline.link.image.markdown, markup.underline.link.markdown | #696d70 | normal |
| markup.deleted.diff | #f92672 | — |
| markup.inserted.diff | #2be98a | — |
| meta.diff.range.unified | #ae81ff | — |
| markup.deleted.git_gutter | #f92672 | — |
| markup.inserted.git_gutter | #2be98a | — |
| markup.changed.git_gutter | #ae81ff | — |
| markup.ignored.git_gutter | #696d70 | — |
| markup.untracked.git_gutter | #696d70 | — |
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}!`;
}