Speedy Monokai
Publisher: MoballoThemes in package: 1
A Monokai theme optimized for high definition, vivid color displays.
A Monokai theme optimized for high definition, vivid color displays.
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 |
|---|---|---|
| comment, string.comment | #afafafde | italic |
| comment.block.documentation storage.type.class, punctuation.definition.block.tag, entity.name.type.instance | #afafafde | italic |
| string, string.template | #fffc67 | — |
| constant.numeric | #BB95FF | — |
| string.embedded.begin, string.embedded.end | #5ffa68 | — |
| string.embedded | #5ffa68 | — |
| constant.character, constant.other | #BB95FF | — |
| variable.language | #f8f8f2 | italic |
| variable.readwrite, variable.readwrite.other.block | #55c3ff | — |
| keyword | #ff6e67 | italic |
| keyword.operator | #cfc2ff | |
| keyword.control | #ff6e67 | bold italic |
| keyword.operator.arithmetic | #9bffc8 | |
| keyword.operator.logical | #9bffc8 | bold |
| storage | #ff6e67 | — |
| storage.type.function | #ff6e67 | italic |
| storage.type.class | #ff6e67 | bold italic |
| storage.modifier | #ff6e67 | italic |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #55c3ff | bold |
| meta.objectliteral | #f8f8f2 | — |
| variable.other.property, variable.other.block | #f6b94d | — |
| entity.other.inherited-class | #5ffa68 | — |
| entity.name.function, support.function | #5ffa68 | — |
| entity.name.function-call | #F8F8F2 | — |
| function.support.builtin, function.support.core | #5ffa68 | — |
| entity.other.attribute-name | #5ffa68 | — |
| support.type, support.variable, support.constant | #55c3ff | — |
| storage.type | #ff6e67 | — |
| constant.language | #ff6e67 | — |
| meta.template.expression.js, keyword.operator.spread | #F8F8F2 | — |
| variable.parameter | #f6b94d | 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 | #fffc67 | — |
| entity.name.tag.css | #ff6e67 | — |
| meta.attribute-selector.scss | #fffc67 | — |
| variable.css, variable.scss, variable.less, variable.sass | #f6b94d | — |
| punctuation.definition.attribute-selector.begin.bracket.square.scss, punctuation.definition.attribute-selector.end.bracket.square.scss | #F8F8F2 | — |
| support.constant.media | #5ffa68 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, support.function.url | #55c3ff | 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 | #5ffa68 | — |
| 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 | #5ffa68 | — |
| unit.css, unit.scss, unit.less, unit.sass | #5ffa68 | — |
| function.css, function.scss, function.less, function.sass | #55c3ff | — |
| support.dictionary.json | #55c3ff | — |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #CFCFC2 | — |
| string.detected-link | #55c3ff | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #ff6e67 | — |
| markup.inserted | #5ffa68 | — |
| markup.changed | #fffc67 | — |
| constant.numeric.line-number.find-in-files - match | #BB95FFA0 | — |
| entity.name.filename.find-in-files | #fffc67 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | — |
| markup.underline.link.markdown | #55c3ff | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #696969 | — |
| markup.heading.markdown | #ff6e67 | bold |
| punctuation.definition.heading.markdown | #696969 | — |
| markup.quote.markdown | #5ffa68 | — |
| meta.separator.markdown | #5ffa68 | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #55c3ff | — |
| punctuation.definition.list_item.markdown | #ffffff | bold |
| token.info-token | #6796e6 | — |
| token.warn-token | #f6b94d | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}