Esmerald
Publisher: Esteban H. AcevedoThemes in package: 2
It's a beautiful theme
It's a beautiful 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 |
|---|---|---|
| constant.character.escape.go | #c9ce8d | — |
| comment.line | #c0cdf1 | italic |
| punctuation.definition.comment, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python | #c8d3f3 | — |
| carriage-return | #fafbfe | italic underline |
| variable.parameter.function, variable.parameter.function-call.python | #0034e0 | — |
| comment, comment.block, comment.line | #98b1f5 | italic |
| string.quoted.docstring.multi.python | #98b1f5 | |
| entity.name.type.class, storage.type.boolean.go, storage.type.byte.go, storage.type.chan.go, storage.type.const.go, storage.type.error.go, storage.type.func.go, storage.type.interface.go, storage.type.map.go, storage.type.numeric.go, storage.type.rune.go, storage.type.string.go, storage.type.struct.go, storage.type.type.go, storage.type.uintptr.go, storage.type.var.go | #0064a7 | — |
| entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.name.type, entity.name.type.go, entity.other.attribute, punctuation.definition, punctuation.separator, storage.type.annotation.groovy, storage.type.annotation.java, storage.type.boolean.go, storage.type.byte.go, storage.type.cs, storage.type.error.go, storage.type.generic.cs, storage.type.generic.groovy, storage.type.generic.java, storage.type.groovy, storage.type.java, storage.type.mermaid, storage.type.modifier.cs, storage.type.numeric.go, storage.type.object.array.groovy, storage.type.object.array.java, storage.type.parameters.groovy, storage.type.primitive.array.groovy, storage.type.primitive.array.java, storage.type.primitive.groovy, storage.type.primitive.java, storage.type.rune.go, storage.type.string.go, storage.type.token.java, storage.type.uintptr.go, storage.type.variable.cs, support.class, support.type | #008cff | — |
| constant.language.python | #099cff | — |
| constant.language.boolean.go, constant.numeric.decimal.go | #1834a7 | — |
| brackethighlighter.angle, brackethighlighter.curly, brackethighlighter.quote, brackethighlighter.round, brackethighlighter.square, brackethighlighter.tag | #5d6a7d | — |
| source.python constant.character.escape, storage.type.string.python | #7697b1 | — |
| delimiter.bracket.mermaid, entity.name.type.class, heading.4.markdown entity.name.section.markdown, heading.4.markdown punctuation.definition.heading.markdown, keyword.control.transition.mermaid, meta.diff.header, meta.module-reference, meta.output, meta.property-name, support, support.constant, support.variable | #264dcb | — |
| markup.heading, markup.heading entity.name, meta.separator | #264dcb | bold |
| token.info-token | #316bcd | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #405cb9 | |
| entity.name.function.support.builtin.go, entity.name.function.support.go | #4795c3 | — |
| punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.separator.arguments.python, punctuation.separator.dict.python, punctuation.separator.element.python, punctuation.separator.parameters.python, punctuation.separator.period.python, support.function.magic.python | #0b4c7a | — |
| markup.ignored, markup.untracked | #f4f7fd | — |
| meta.function-call.arguments.python variable.parameter.function-call.python | #202020 | italic |
| brackethighlighter.unmatched, markup.deleted, message.error, meta.diff.header.from-file, punctuation.definition.deleted | #ad1c48 | — |
| token.debug-token | #800080 | — |
| entity.name.function.member, heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown | #e0943e | — |
| meta.fstring.python constant.character.format.placeholder.other.python, punctuation.definition.decorator.python, punctuation.separator.annotation.python, punctuation.separator.annotation.result.python, punctuation.separator.slice.python | #e99648 | — |
| punctuation.definition.begin.bracket.curly.go, punctuation.definition.begin.bracket.round.go, punctuation.definition.end.bracket.curly.go, punctuation.definition.end.bracket.round.go, punctuation.other.comma.go, punctuation.other.period.go | #917960 | — |
| token.warn-token | #cd9731 | — |
| entity.other.attribute-name.html, markup.changed, punctuation.definition.changed, punctuation.definition.list.begin.markdown | #d07826 | — |
| constant, entity.name.constant, entity.name.function, heading.1.markdown, heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown, ref.matchtext, string variable, text.html.derivative, text.html.django, variable, variable.language, variable.mermaid, variable.other, variable.other.constant | #000000 | — |
| entity.name.function.member | #000000 | italic |
| entity.name.type.package.go | #000000 | bold |
| punctuation.definition.tag | #fcada1 | — |
| string.quoted.double.django, string.quoted.single.django | #ff9292 | — |
| entity.name.tag.js.jsx | #ff7765 | — |
| annotation, entity.name.tag, entity.name.tag.html, heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown, keyword, keyword.control.go, keyword.operator, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.function.begin.python, storage, storage.type | #f33c3c | — |
| storage.type.class.python, storage.type.function.async.python, storage.type.function.python | #ff0303 | — |
| token.error-token | #cd3131 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.begin.html source.css, punctuation.definition.string.end.html, punctuation.definition.string.end.html source.css, punctuation.separator.key-value.html, string.quoted.double.begin.django, string.quoted.double.end.django, string.quoted.double.html | #569cd6 | — |
| heading.4.markdown, heading.4.markdown punctuation.definition.heading.markdown | #9cdcfe | — |
| heading.3.markdown, heading.3.markdown punctuation.definition.heading.markdown | #ffda96 | — |
| heading.2.markdown, heading.2.markdown punctuation.definition.heading.markdown | #b40202 | — |
| storage.modifier.import, storage.modifier.package, storage.type.java, string source, support.variable.js | #1f2939 | — |
| markup.italic | #1f2939 | italic |
| keyword.operator.address.go | #0adacc | — |
| keyword.operator.arithmetic.python, keyword.operator.bitwise.python, keyword.operator.comparison.python | #4b7c86 | — |
| constant.character.format.placeholder.other.python, keyword.operator.getter.django, markup.inserted, markup.quote, meta.diff.header.to-file, meta.variable.structure.django, punctuation.definition.inserted, punctuation.definition.string, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, string punctuation.section.embedded source, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition, string.regexp.character-class, support.function.django, text.html.django meta.tag.block.any.html, text.html.django meta.tag.block.any.html entity.other.attribute-name.html, text.html.django meta.tag.block.any.html string.quoted.double.html punctuation.definition.string.begin.html, text.html.django meta.tag.block.any.html string.quoted.double.html punctuation.definition.string.end.html, text.html.django meta.tag.inline.any.html, text.html.django meta.tag.inline.any.html entity.other.attribute-name.html, text.html.django meta.tag.inline.any.html string.quoted.double.html punctuation.definition.string.begin.html, text.html.django meta.tag.inline.any.html string.quoted.double.html punctuation.definition.string.end.html, variable.other.django | #1cb978 | — |
| string.regexp constant.character.escape | #1cb978 | bold |
| constant.other.reference.link, string.other.link | #1cb978 | underline |
| source.regexp, string.regexp | #1acd82 | — |
| string | #1c9965 | — |
| entity.name.import.go, markup.raw, string, string.quoted.single.python | #158d5b | — |
| entity.name.namespace | #27391f | bold |
| entity, entity.name, keyword.control.django, keyword.control.tag-name.django, meta.tag.structure.django, source.css, storage.type.templatetag.django entity.tag.tagbraces.django, storage.type.variable.django entity.tag.tagbraces.django, string.quoted.single.begin.django, string.quoted.single.end.django, support.type.tag.begin.django, support.type.tag.end.django, support.type.variable.begin.django, support.type.variable.end.django, text.html.django meta.tag.inline.any.html string.quoted.double.html storage.type.variable.django entity.tag.tagbraces.django, text.html.django storage.type.templatetag.django, text.html.django storage.type.templatetag.django entity.tag.tagbraces.django, text.html.django storage.type.variable.django entity.tag.tagbraces.django | #6f4cde | — |
| meta.diff.range | #6f4cde | bold |
| constant.other.placeholder.go | #9b7eb1 | — |
| markup.bold | #a426cb | bold |
| keyword.control.flow.python, keyword.control.import.python, keyword.operator.arithmetic.go, keyword.operator.comparison.go, keyword.operator.increment.go, keyword.operator.logical.python, punctuation.separator.colon.python | #a426cb | — |
| variable.parameter.function.language.special.cls.python, variable.parameter.function.language.special.self.python | — | — |
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}!`;
}