One Monokai Shadow
Publisher: 2A5FThemes in package: 1
A cross between Monokai and One Dark theme
A cross between Monokai and One Dark theme
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 | #5c6370 | italic |
| string, string.template | #DABD80 | — |
| constant.numeric | #ce93d8 | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #e25d34 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, punctuation.separator, punctuation.accessor, punctuation.semi, meta.brace | #ababab | — |
| constant.language | #6EB3C0 | — |
| constant.character, constant.other | #6EB3C0 | — |
| variable.language | #c56c72 | italic |
| keyword, keyword.operator.logical, keyword.operator.constructor | #c56c72ee | — |
| punctuation.separator.dot-access, punctuation.accessor, punctuation.separator.colon, punctuation.terminator.statement, punctuation.separator.key-value | #ccccccaa | — |
| keyword.operator | #c56c72ee | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, variable.language.this | #c56c72ee | — |
| storage | #c56c72ee | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #6EB3C0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #6EB3C0 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #91BDEA | — |
| variable.other.object, variable.other.constant | #dcdcdc | — |
| variable.other.property, variable.other.object.property | #c7c1ac | — |
| variable.other.constant.property | #bdd3b8 | — |
| meta.object-literal.key | #c3c3c3 | — |
| entity.other.inherited-class | #A0C180 | — |
| storage.modifier.import, storage.modifier.package | #61afef | — |
| entity.name.function.macro | #72bea1 | |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #A0C180 | |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #C79B6D | italic |
| entity.name.function-call | #A0C180 | — |
| function.support.builtin, function.support.core | #A0C180 | — |
| entity.name.tag, entity.name.tag.class.js | #c56c72 | — |
| entity.name.tag.class, entity.name.tag.id | #6EB3C0 | — |
| entity.other.attribute-name | #A0C180 | — |
| support.constant | #6EB3C0 | — |
| support.type, support.variable | #6EB3C0 | — |
| support.dictionary.json | #6EB3C0 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #ababab | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass | #6EB3C0 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #A0C180 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #DABD80 | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| function.css, function.scss, function.less, function.sass | #6EB3C0 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| support.type.property-name.json | #6EB3C0 | — |
| string.detected-link | #6EB3C0 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #e06c75 | — |
| markup.inserted | #98c379 | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #676f7d | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #61afef | — |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #e06c75 | bold |
| markup.quote.markdown | #98c379 | — |
| meta.separator.markdown | #c678dd | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56b6c2 | — |
| punctuation.definition.list_item.markdown | #ffffff | 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}!`;
}