Monokai Modern
Publisher: goodbyteThemes in package: 3
Monokai Color Theme
Monokai Color 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 |
|---|---|---|
| meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.tag, punctuation.section, punctuation.separator, punctuation.terminator | #B4B4B4 | — |
| markup.changed, markup.underline.link, meta.diff.header, punctuation.definition.list.begin.markdown, support.class.component, variable.other.object | #61AFEF | — |
| markup.inserted, punctuation.definition.quote.begin.markdown, entity.other.attribute-name, entity.name.function, punctuation.decorator, support.function | #98C379 | — |
| markup.inline.raw, meta.preprocessor.string, string, string.regexp constant, string.regexp constant.other, string.regexp keyword, string.regexp keyword.operator | #E5C07B | — |
| support.constant.media, support.type.property-name, support.type.vendored.property-name, constant.language, storage, support.variable.property | #56B6C2 | — |
| meta.parameters entity.name.function, meta.parameters variable.language, variable.parameter | #D19A66 | — |
| constant, meta.preprocessor.numeric, storage.type.numeric, keyword.control.at-rule, keyword.operator.logical.and.media, keyword.operator.logical.not.media, keyword.operator.logical.only.media | #C678DD | — |
| meta.embedded, constant.numeric.css, keyword.other.unit, meta.property-value constant.other, punctuation.separator.key-value.css, meta.definition.variable entity.name.function, meta.type.annotation storage.type.function.arrow | #D4D4D4 | — |
| markup.heading, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.name.tag, entity.other.keyframe-offset, cast.expr meta.brace.angle, punctuation.definition.typeparameters, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.logical, keyword.operator.optional, keyword.operator.relational, keyword.operator.rest, keyword.operator.spread, keyword.operator.ternary, keyword.operator.type, punctuation.definition.template-expression, storage.type.function.arrow, keyword, storage.modifier, support.type.object.module, variable.language | #E06C75 | — |
| meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.tag, punctuation.section, punctuation.separator, punctuation.terminator | #B4B4B4 | — |
| markup.changed, markup.underline.link, meta.diff.header, punctuation.definition.list.begin.markdown, support.class.component, variable.other.object | #61AFEF | — |
| markup.inserted, punctuation.definition.quote.begin.markdown, entity.other.attribute-name, entity.name.function, punctuation.decorator, support.function | #98C379 | — |
| markup.inline.raw, meta.preprocessor.string, string, string.regexp constant, string.regexp constant.other, string.regexp keyword, string.regexp keyword.operator | #E5C07B | — |
| support.constant.media, support.type.property-name, support.type.vendored.property-name, constant.language, storage, support.variable.property | #56B6C2 | — |
| meta.parameters entity.name.function, meta.parameters variable.language, variable.parameter | #D19A66 | — |
| constant, meta.preprocessor.numeric, storage.type.numeric, keyword.control.at-rule, keyword.operator.logical.and.media, keyword.operator.logical.not.media, keyword.operator.logical.only.media | #C678DD | — |
| meta.embedded, constant.numeric.css, keyword.other.unit, meta.property-value constant.other, punctuation.separator.key-value.css, meta.definition.variable entity.name.function, meta.type.annotation storage.type.function.arrow | #D4D4D4 | — |
| markup.heading, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.name.tag, entity.other.keyframe-offset, cast.expr meta.brace.angle, punctuation.definition.typeparameters, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.logical, keyword.operator.optional, keyword.operator.relational, keyword.operator.rest, keyword.operator.spread, keyword.operator.ternary, keyword.operator.type, punctuation.definition.template-expression, storage.type.function.arrow, keyword, storage.modifier, support.type.object.module, variable.language | #E06C75 | — |
| emphasis, markup.italic | — | italic |
| header | #000080 | — |
| comment | #5C6370 | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| strong, markup.bold, markup.heading | — | bold |
| markup.strikethrough | — | strikethrough |
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}!`;
}