Mark Monokai
Publisher: markrupThemes in package: 1
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 |
|---|---|---|
| — | #EBEBEB | — |
| comment, string.comment | #0f7a26 | — |
| string | #E07079 | — |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js,punctuation.definition.template-expression.begin.ts,punctuation.definition.template-expression.end.ts | #c678dd | — |
| string.template.js | #e5c07b | — |
| meta.object-literal.key | #bbbbbbff | — |
| meta.template.expression.js | #9CDCFE | — |
| constant.numeric | #c678dd | — |
| string.embedded.begin, string.embedded.end | #c678dd | — |
| string.embedded | #98c379 | — |
| constant.language | #569cd6 | — |
| constant.character, constant.other | #56b6c2 | — |
| variable.language | #569cd6 | — |
| variable.readwrite, variable.readwrite.other.block | #61afef | — |
| keyword.operator.logical, keyword.operator.constructor | #c586a1 | — |
| keyword, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.at-rule.import.scss | #c678dd | — |
| keyword.operator | #2566ca | — |
| storage.type.class, storage.modifier, support.type.primitive, constant.language.null, constant.language.boolean.false, constant.language.boolean.true, entity.other.attribute-name.class.css | #569cd6 | — |
| storage.type | #569cd6 | — |
| constant.language.null | #569cd6 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class, variable.other.readwrite | #32bbb0 | — |
| variable.other.block, variable.parameter, variable.other.object.property, variable.object.property, variable.other.readwrite | #bbbbbbff | — |
| variable.other.property | #61afef | — |
| variable.other.object, variable.other.constant, variable.other.object.property | #d19a66 | — |
| variable.parameter | #d19a66 | italic |
| variable.other.readwrite.alias, support.variable.property.dom | #bbbbbbff | — |
| keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css | #999999 | — |
| entity.other.attribute-name.pseudo-class.css, keyword.other.important.scss, keyword.control.at-rule.mixin.scss | #C3CC5E | — |
| entity.other.inherited-class | #98c379 | — |
| entity.name.function, support.function | #c678dd | — |
| entity.name.function-call | #9CDCFE | — |
| function.support.builtin, function.support.core | #98c379 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #569cd6 | — |
| variable.language.this, variable.language.super | #37628d | — |
| entity.name.tag.class, entity.name.tag.id | #569cca | — |
| entity.other.attribute-name | #9cdcfe | — |
| support.constant | #56b6c2 | — |
| support.type, support.variable | #569cd6 | — |
| support.dictionary.json | #569cd6 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, support.type.property-name.json | #bbbbbbff | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98c379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #e5c07b | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56b6c2 | — |
| string.detected-link | #61afef | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #c678dd | — |
| markup.inserted | #e5c07b | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | none |
| markup.underline.link.markdown | #61afef | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #696969 | none |
| markup.heading.markdown | #e06c75 | bold |
| punctuation.definition.heading.markdown | #696969 | none |
| markup.quote.markdown | #98c379 | — |
| meta.separator.markdown | #c678dd | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56b6c2 | — |
| punctuation.definition.list_item.markdown | #ffffff | bold |
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}!`;
}