Modern Monokai
Publisher: Oliver CederborgThemes in package: 1
A more modern approach to the original monokai theme.
A more modern approach to the original monokai theme.
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, punctuation.definition.comment, fenced_code.block.language.markdown | #7f8eadaa | italic |
| entity.name.tag, constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, keyword.other.template, keyword.other.substitution, support.type, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, meta.arrow.js.jsx, meta.brace.square.js.jsx, storage.type.function.arrow.js, keyword.operator.assignment.js, punctuation.terminator.rule.css, constant.language.symbol.hashkey.ruby, keyword.operator.comparison.ruby, punctuation.separator.other.ruby, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, meta.object-literal.key.js.jsx, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #bac2d1 | — |
| variable, string constant.other.placeholder, meta.block variable.other, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor, markup.changed, constant.character.escape, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, markup.inline.raw.string.markdown, entity.other.attribute-name.class.css, entity.other.inherited-class.ruby, keyword.control.pseudo-method.ruby, meta.import.js variable, meta.import.tsx variable, meta.import.ts variable, meta.import.ts meta.block variable.other, meta.import.js meta.block variable.other, meta.import.tsx, meta.import.tsx meta.block variable.other, meta.import.ts, meta.import.ts variable, variable.parameter | #3fd0ec | — |
| keyword.operator.assignment, keyword.operator.assignment.js, entity.other.attribute-name, storage.type, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.section.embedded, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, meta.brace.round.js.jsx, variable.other.property.js.jsx, meta.array.literal.js.jsx | #ffffff | — |
| boolean, constant.numeric, constant.numeric.float, constant.numeric.integer, constant.other.color, constant.language, support.constant, constant.character, constant.escape, constant.other.symbol, constant.other.key | #AF92F9 | — |
| keyword.operator.new, keyword, keyword.other.unit, keyword.other, keyword.control, storage.modifier, support.class.component.tsx, support.class.component.ts, support.class.component.js, support.class.component.jsx | #F2A23A | — |
| invalid, invalid.illegal, entity.name.function, meta.tag.sgml, markup.deleted.git_gutter, meta.function-call, variable.function, support.function, support.other.variable, string.other.link, entity.name, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.name.module.js, variable.import.parameter.js, variable.other.class.js, markup.deleted, source.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.tag, keyword.other.important.css, keyword.other.important.scss, keyword.control.ruby | #ff3276 | — |
| entity.other.attribute-name.pseudo-class.css, string, entity.other.inherited-class, keyword.other.special-method, markup.inserted.git_gutter, source.sass keyword.control, string.regexp, source.js constant.other.object.key.js string.unquoted.label.js, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, entity.other.attribute-name.id, meta.import.ts string, meta.import.js string, variable.language.this.js.jsx, variable.language | #b7f055 | — |
| text.html.markdown, punctuation.definition.list_item.markdown, markup.italic | #dddddd | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, keyword.operator.logical.js.jsx, constant.language.symbol.ruby | #f5af19 | — |
| markup.italic, variable.language | — | italic |
| markup.bold, markup.bold string, entity.name, entity.other.inherited-class, entity.other.attribute-name.class.css, keyword.other.important.css, keyword.other.important.scss, support.class.ruby, meta.import.js variable, meta.import.js meta.block variable.other, meta.import.js string | — | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #cccccc | bold |
| markup.underline | #65737E | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | #65737E | italic |
| string.other.link.title.markdown | #44dfff | — |
| string.other.link.description.title.markdown | #65737E | — |
| constant.other.reference.link.markdown | #44dfff | — |
| markup.raw.block | #cccccc | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #6e7d9a | — |
| meta.separator | #6e7d9a | — |
| markup.table | #6e7d9a | — |
| meta.import.js, punctuation.terminator.statement.js, keyword.control.import.js, keyword.control.from.js, keyword.control.import.tsx, keyword.control.from.tsx, keyword.control.import.ts, keyword.control.from.ts | #818ca3 | — |
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}!`;
}