Mojito Pro
Publisher: mishatoshiThemes in package: 2
🍃 Easy on the eyes, boosting productivity!
🍃 Easy on the eyes, boosting productivity!
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 |
|---|---|---|
| *url*, *link*, *uri* | — | underline |
| comment, punctuation.definition.comment, string.quoted.docstring | #527A66 | italic |
| source | #D8F3E6 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, entity.name.variable, support.other.variable | #D8F3E6 | — |
| constant, constant.other, constant.language, variable.readonly, variable.other.constant, variable.other.constant.object, variable.default.library, support.constant, variable.other.global, variable.other.global punctuation.definition.variable | #D874C5 | — |
| constant.numeric | #5AE0F2 | — |
| string, string.template, punctuation.definition.string | #EDDF5E | — |
| constant.language.boolean | #F66555 | — |
| constant.language.null, constant.language.undefined | #F66555 | — |
| punctuation, meta.var.expr, punctuation.section.embedded, punctuation.definition.entity | #A3F5B5 | — |
| constant.character.escape | #70DB86 | — |
| invalid, invalid.illegal | #F2240D | — |
| string.other.link | #EDDF5E | — |
| keyword, keyword.other, keyword.other.type, storage.modifier, storage.type, storage.control | #70DB86 | — |
| keyword.control, keyword.operator, keyword.other.unit, support.type.object.module | #A9D775 | — |
| meta.tag, text.html.derivative | #D8F3E6 | — |
| entity.name.tag | #E68365 | — |
| entity.other.attribute-name | #F3B559 | — |
| punctuation.definition.entity.html, punctuation.definition.entity.js.jsx, punctuation.definition.entity.tsx, constant.character.entity.named, constant.character.entity.js.jsx, constant.character.entity.tsx | #A9D775 | — |
| entity.name.function, meta.function-call, variable.function, support.function, entity.name.function.member, keyword.other.special-method | #5DADEF | — |
| parameter, variable.parameter, meta.parameter.initialization, entity.name.variable.parameter | #D8F3E6 | — |
| variable.other.property, variable.other.member, support.constant.property, support.variable.property, support.type.property-name, variable.object.property, variable.other.constant.property, variable.other.object.property, constant.other.symbol.hashkey, variable.other.enummember, entity.name.variable.enum-member | #A3F5B5 | — |
| entity.name.class, entity.name.type.class, entity.name.type.module, support.class, support.class.component, entity.other.inherited-class, entity.name.namespace, entity.name.scope-resolution, entity.name.scope-resolution.parameter, constant.other.key, interface, entity.name.type, entity.name.type.interface, entity.name.type.enum, support.type | #5AE0F2 | — |
| variable.language, variable.parameter.function.language.special.self.python | #A9D775 | — |
| meta.property-name.css, meta.property-list.css, punctuation.definition.entity.css, punctuation.definition.entity.less, entity.name.tag.reference.scss, entity.other.keyframe-offset.css, keyword.other.keyframe-selector.less | #F3B559 | — |
| support.constant.font-name, support.constant.vendored.property-value | #D874C5 | — |
| meta.property-value.css, meta.property-value.scss, string.unquoted.less | #D8F3E6 | — |
| keyword.other.important, keyword.other.important.less punctuation.separator.less | #F66555 | — |
| punctuation.definition.custom-property.less, support.type.custom-property.name.less | #A3F5B5 | — |
| variable.parameter.keyframe-list.css, source.css.scss meta.at-rule.keyframes.scss entity.name.function.scss, meta.at-rule.keyframe.less | #D8F3E6 | — |
| support.type.vendored.property-name.css, support.type.vendor-prefix.less | #A3F5B5 | — |
| punctuation.definition.keyword | #A9D775 | — |
| punctuation.definition.block.tag.jsdoc | #70DB86 | — |
| variable.other.jsdoc | #D8F3E6 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #F66555 | — |
| constant.other.character-class.range.regexp, punctuation.definition.character-class.regexp | #D874C5 | — |
| constant.other.character-class.set.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #EDDF5E | — |
| punctuation.definition.group.regexp | #5AE0F2 | — |
| source.c punctuation.definition.directive.c | #A9D775 | — |
| source.cpp punctuation.definition.directive.cpp | #A9D775 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #A9D775 | — |
| variable.language.this.php punctuation.definition.variable.php | #A9D775 | — |
| source.php keyword.other.type | #5AE0F2 | — |
| source.java storage.type | #5AE0F2 | — |
| source.cs keyword.type | #5AE0F2 | — |
| source.go storage.type | #5AE0F2 | — |
| source.ruby constant.language.symbol.hashkey.ruby, source.ruby variable.other.readwrite.instance.ruby | #A3F5B5 | — |
| source.ruby constant.language.symbol.ruby | #D8F3E6 | — |
| source.json punctuation.support.type.property-name.begin.json, source.json punctuation.support.type.property-name.end.json, source.json punctuation.separator.dictionary.key-value.json | #A3F5B5 | — |
| constant.language.json.comments | #F66555 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #A3F5B5 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| 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 | #A3F5B5 | — |
| markup.inserted, markup.inserted.git_gutter | #70DB86 | — |
| markup.deleted, markup.deleted.git_gutter | #F66555 | — |
| markup.changed | #5DADEF | — |
| markup.italic, punctuation.definition.italic.markdown | #F3B559 | italic |
| markup.bold, markup.bold string, markup.quote markup.bold, punctuation.definition.bold.markdown | #E68365 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #F3B559 | bold |
| markup.underline | #74B9F1 | underline |
| markup.heading, markup.heading.markdown | #A9D775 | — |
| markup.inline.raw.string.markdown, punctuation.definition.raw.markdown | #EDDF5E | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #D8F3E6 | — |
| markdown.heading, entity.name.section.markdown | #A9D775 | — |
| markup.heading.markdown punctuation.definition.heading.markdown | #A9D775 | — |
| markup.quote, punctuation.definition.quote, markup.quote punctuation.definition.blockquote.markdown | #70DB86 | italic |
| markup.fenced_code.block | #A3F5B5 | — |
| markup.fenced_code.block entity.name | #A3F5B5 | — |
| string.other.link.title.markdown, string.other.link.description.title.markdown | #EDDF5E | — |
| constant.other.reference.link.markdown | #D874C5 | — |
| meta.separator | #527A66 | bold |
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}!`;
}