molokayo
Publisher: jonesncThemes in package: 2
A very tweaked molokai based theme. Based on the vim theme by fmoralesc.
A very tweaked molokai based theme. Based on the vim theme by fmoralesc.
Full workbench mockup using this variant's colors and tokenColors.
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 | #7E8E91 | — |
| meta.function-call.arguments, source.python, string constant.other.placeholder, constant.other.color, text, variable | #d0d0d0 | — |
| variable.language.special, variable.parameter.function.language.special.self.python | #ff8700 | |
| punctuation, meta.brace | #808080 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
| invalid, invalid.illegal |
| #FF5370 |
| — |
| storage.type | #F92672 | — |
| storage.modifier | #FD971F | — |
| storage.type.function | #F92672 | — |
| keyword, keyword.control, storage.modifier.async.js, storage.type.js | #f92672 | bold |
| 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, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.language, constant.other | #AE81FF | bold |
| constant.numeric | #AE81FF | — |
| keyword.other.unit, keyword.other | #f92672 | — |
| support.constant, constant.character, constant.escape | #F78C6C | — |
| support.type.exception | #66d9ef | — |
| string, punctuation.definition.string | #ffd787 | — |
| meta.fstring.python storage.type.string.python | #f92672 | bold |
| entity.name.type.class | #66d9ef | bold |
| entity.other.inherited-class | #66d9ef | — |
| constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #C3E88D | — |
| storage.type.class | #F92672 | — |
| support.type, support.class, support.constant, support.orther.namespace.use.php, support.function.construct.output, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, keyword.other.type, meta.function-call.js support.function.js, support.function.builtin.python | #5fd7ff | — |
| 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 | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.other.django.delimiter.tag, entity.other.django.delimiter.variable, keyword.control.directive.include, keyword.control.from, keyword.control.import, keyword.other.phpdoc.php, support.type.object.module.js | #00d75f |
| meta.function.js, entity.name.function, entity.name.type, meta.function-call, variable.function, keyword.other.special-method, meta.block.js entity.name.function.js, support.function.magic.python | #A6E22E | — |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #ffd787 | — |
| entity.name.tag.named.group.regexp | #f92672 | bold |
| constant.character.escape | #f92672 | bold |
| *url*, *link*, *uri* | — | underline |
| storage.type.function.arrow.js | #f92672 | bold |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | 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 | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| 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 | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| storage.type.string | #f92672 | bold |
| constant.character.format.placeholder.other.python | #f92672 | bold |
| variable.parameter.function-call | #ff8700 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| meta.object-literal.key.js, meta.object.member.js, meta.objectliteral.js | #ffaf00 | — |
| entity.other.attribute-name | #ff8700 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #f92672 | bold |
| entity.name.tag | #5fd7ff | — |
| variable.other.django.filter | #afff00 | — |
| entity.other.django.delimiter.variable, entity.other.django.delimiter.tag | #00d75f | bold |
| storage.type.oracle | #5fd7ff | bold |
| support.class.user-defined.oracle | #afff00 | — |
| keyword.other.ddl.oracle | #5fd7ff | — |
| keyword.other.oracle | #f92672 | — |
| keyword.other.special-method.dockerfile | #f92672 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #00d75f | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #5fd7ff | — |
| 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 | #af87ff | — |
| 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 | #afff00 | — |
| 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 | #f92672 | — |
| 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 | #ff8700 | — |
| 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 | #f07178 | — |
| 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 | #ffaf00 | — |
| 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 | #ffd787 | — |
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}!`;
}