Monokai Semantic
Publisher: GoliafRSThemes in package: 1
Dark theme based on color schema Monokai, with semantic highlighting
Dark theme based on color schema Monokai, with semantic highlighting
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 |
|---|---|---|
| text, text.xml, text.html.basic, text.html.markdown, punctuation.accessor, punctuation.separator.comma, punctuation.separator.array, punctuation.terminator.rule, punctuation.separator.key-value, punctuation.separator.delimiter, punctuation.separator.parameter, punctuation.section.property-list.begin.bracket, punctuation.section.property-list.end.bracket, punctuation.section.keyframes.begin.bracket.curly, punctuation.section.keyframes.end.bracket.curly, punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, punctuation.section.function, punctuation.definition.entity, punctuation.definition.block, punctuation.definition.pseudo-class.begin.bracket.round, punctuation.definition.pseudo-class.end.bracket.round, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.attribute-selector, entity.name.tag.reference, meta.brace.square, meta.brace.round, meta.tag.structure.any, meta.tag.metadata.style, meta.tag.metadata.script, meta.structure.array, meta.structure.dictionary | #F0F0F0 | — |
| string, meta.return-type, meta.type.cast.expr, meta.type.new.expr, meta.preprocessor.string, meta.attribute-selector, meta.embedded, support.constant.math, support.constant.dom, support.constant.json, invalid.illegal.bad-ampersand.html, structure.dictionary.property-name.json, constant.character.escape.scss | #E6DB74 | — |
| variable, support.variable, support.other.variable, support.type.property-name, support.type.vendored.property-name, meta.definition.variable.name, meta.object-literal.key | #66D9EF | — |
| comment | #787878 | — |
| string.detected-link | #AE81FF | — |
| constant.regexp, string.regexp | #E6DB74 | — |
| constant.numeric, meta.preprocessor.numeric, keyword.other.unit, constant.sha.git-rebase | #AE81FF | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| keyword, keyword.operator.constructor, keyword.operator.expression, keyword.operator.new, keyword.control, keyword.other | #F92672 | — |
| keyword.operator, keyword.operator.logical | #F0F0F0 | — |
| keyword.operator.rest, keyword.operator.spread | #A6E22E | — |
| storage, storage.modifier, storage.type, punctuation.definition.block.tag | #F92672 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #A6E22E | — |
| support.class.builtin, support.class.promise, support.class.console | #F0F0F0 | — |
| entity.name.type.class | #FD971F | — |
| entity.other.inherited-class | #A6E22E | — |
| entity.name.function, support.function, meta.function-call | #A6E22E | — |
| variable.parameter | #FD971F | — |
| support.constant, support.constant.dom | #66D9EF | — |
| variable.language | #F92672 | — |
| invalid | #F0F0F0 | — |
| invalid.deprecated | #F0F0F0 | — |
| meta.diff, meta.diff.header | #787878 | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #F92672 | italic |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.selector | #F0F0F0 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #AE81FF | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #F92672 | bold |
| markup.heading.markdown | #F0F0F0 | bold |
| punctuation.definition.heading.markdown | #F0F0F0 | none |
| markup.quote.markdown | #A6E22E | — |
| meta.separator.markdown | #F92672 | bold |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #66D9EF | — |
| punctuation.definition.list_item.markdown | #F0F0F0 | bold |
| entity.name.tag, punctuation.definition.tag, entity.other.attribute-name | #F92672 | — |
| entity.other.attribute-name | #A6E22E | — |
| meta.property-value, support.constant.property-value, support.constant.font-name, support.constant.color, constant.other.color.rgb-value, constant.other.rgb-value | #AE81FF | — |
| support.constant.media, support.constant.media-type, keyword.control.at-rule.media | #FD971F | — |
| support.constant.media | #A6E22E | — |
| entity.other.attribute-name.class.mixin, keyword.control.at-rule.include, keyword.control.at-rule.extend, meta.at-rule.include | #FD971F | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #F0F0F0 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity, entity.other.attribute-name.placeholder punctuation.definition.entity | #A6E22E | — |
| variable.parameter.url | #E6DB74 | — |
| meta.property-name, support.type.property-name | #66D9EF | — |
| support.constant.json | #F0F0F0 | — |
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}!`;
}