Monokai Alt
Publisher: Benjamin BlondeThemes in package: 1
Modified Monokai Theme for vscode
Modified Monokai Theme for vscode
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 |
|---|---|---|
| — | #F8F8F2 | — |
| comment, string.comment | #777777 | italic |
| comment.block.documentation storage.type.class, punctuation.definition.block.tag, entity.name.type.instance | #d8d8d8 | italic |
| string, string.template | #E6DB74 | — |
| constant.numeric | #AE81FF | — |
| string.embedded.begin, string.embedded.end | #A6E22E | — |
| string.embedded | #A6E22E | — |
| constant.character, constant.other | #AE81FF | — |
| variable.language | #F92672 | — |
| variable.readwrite, variable.readwrite.other.block | #66D9EF | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #F92672 | — |
| keyword.operator | #F92672 | — |
| storage | #F92672 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #66D9EF | underline |
| meta.objectliteral | #f8f8f2 | — |
| variable.other.property, variable.other.block | #F8F8F2 | — |
| entity.other.inherited-class | #A6E22E | — |
| entity.name.function, support.function | #A6E22E | — |
| entity.name.function-call | #F8F8F2 | — |
| function.support.builtin, function.support.core | #A6E22E | — |
| entity.other.attribute-name | #A6E22E | — |
| support.type, support.variable, support.constant | #66D9EF | — |
| storage.type | #F92672 | — |
| constant.language | #F92672 | — |
| meta.template.expression.js, keyword.operator.spread | #F8F8F2 | — |
| variable.parameter | #FD971F | italic |
| meta.object-literal.key | #F8F8F2 | — |
| punctuation.accessor, punctuation.separator.comma, meta.brace.round, punctuation.definition.block | #F8F8F2 | — |
| entity.name.tag.js, entity.name.tag.inline.any.html, entity.name.tag.block.any.html, entity.name.tag.structure.any.html, entity.name.tag.jade | #d9d9fa | — |
| meta.tag.attributes keyword.operator.assignment.js | #e6db74 | — |
| entity.name.tag.css | #F92672 | — |
| meta.attribute-selector.scss | #E6DB74 | — |
| variable.css, variable.scss, variable.less, variable.sass | #FD971F | — |
| punctuation.definition.attribute-selector.begin.bracket.square.scss, punctuation.definition.attribute-selector.end.bracket.square.scss | #F8F8F2 | — |
| support.constant.media | #a6e22e | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, support.function.url | #66D9EF | italic |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass, support.constant.font-name.css, support.constant.color.w3c-standard-color-name.css, constant.other.color.rgb-value.hex.css | #A6E22E | — |
| support.constant.property-value, meta.property-value.css | #6fee4c | — |
| punctuation.separator.list.comma.css, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css | #fff | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #A6E22E | — |
| unit.css, unit.scss, unit.less, unit.sass | #A6E22E | — |
| function.css, function.scss, function.less, function.sass | #66D9EF | — |
| support.dictionary.json | #66D9EF | — |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #CFCFC2 | — |
| string.detected-link | #66D9EF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | — |
| markup.underline.link.markdown | #66D9EF | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #696969 | — |
| markup.heading.markdown | #F92672 | bold |
| punctuation.definition.heading.markdown | #696969 | — |
| markup.quote.markdown | #A6E22E | — |
| meta.separator.markdown | #A6E22E | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #66D9EF | — |
| 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}!`;
}