Macaroon 2022
Publisher: carrie999Themes in package: 1
Macaroon
Macaroon
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.quoted.docstring.multi.python, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python | #586270 | italic |
| string.quoted, punctuation.definition.string | #bd7f53 | — |
| string.quoted, punctuation.definition.string | #7cc596 | — |
| string.quoted.single.js | #6ca2b8 | — |
| string.template meta.embedded.line | #b6b1b1 | — |
| variable | #bbb957 | — |
| variable.other.property | #c1877a | — |
| entity.name.variable | #b851a3 | — |
| variable.language | #c759b1 | — |
| variable.parameter | #ffffff | italic |
| storage.type | #4cc7ac | — |
| storage.modifier | #c05da1 | — |
| constant | #f97e72 | — |
| string.regexp | #c45349 | — |
| constant.numeric | #b95a51 | — |
| constant.language | #b86868 | — |
| variable.other.object.js, variable.other.object.jsx, meta.object-literal.key.js, meta.object-literal.key.jsx, variable.object.property.js, variable.object.property.jsx | #b6b6b6 | — |
| constant.character.escape | #59c9c7 | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #b9c16d | — |
| source.js punctuation.definition.block | #b9c16d | — |
| storage, storage.type, meta.var.expr storage.type, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx, meta.class meta.method.declaration meta.var.expr storage.type.js | #c0738d | — |
| entity.name | #36f9f6 | — |
| entity.name.tag | #c25c6d | — |
| punctuation.definition.tag | #54c4c2 | — |
| entity.other.attribute-name | #c57cc4 | — |
| entity.other.attribute-name.html | #b3a058 | italic |
| entity.name.type | #b9a34a | — |
| meta.attribute.class.html | #bdaa60 | — |
| entity.other.inherited-class | #be7b51 | — |
| entity.name.function, variable.function | #d47850 | — |
| keyword.control.export.js, keyword.control.import.js | #6fab9e | — |
| constant.numeric.decimal.js | #ffc7d3 | — |
| keyword | #fede5d | — |
| keyword.control | #cd9082 | — |
| keyword.operator | #fede5d | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #fede5d | — |
| keyword.other.unit | #f97e72 | — |
| support | #bd595e | — |
| support.function | #57adac | — |
| support.variable | #81ad9f | — |
| meta.object-literal.key, support.type.property-name | #b19f57 | — |
| meta.brace | #c7bb90 | — |
| punctuation.separator.key-value | #b6b1b1 | — |
| punctuation.section.embedded | #b45060 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #4cbb89 | — |
| support.type.property-name.css, support.type.property-name.json | #53c08f | — |
| switch-block.expr.js | #57b188 | — |
| variable.other.constant.property.js, variable.other.property.js | #ce9b4f | — |
| constant.other.color | #b95f57 | — |
| support.constant.font-name | #d16a61 | — |
| entity.other.attribute-name.id | #49cac8 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #c57848 | — |
| support.function.misc.css | #b94d9b | — |
| markup.heading, entity.name.section | #af669a | — |
| text.html, keyword.operator.assignment | #cd9082 | — |
| markup.quote | #b6b1b1cc | italic |
| beginning.punctuation.definition.list | #a75991 | — |
| punctuation.definition.parameters | #b3c280 | — |
| punctuation.definition.block | #b3c280 | — |
| markup.underline.link | #be7a50 | — |
| string.other.link.description | #bb4c42 | — |
| meta.function-call.generic.python | #57c9c7 | — |
| variable.parameter.function-call.python | #55bb8d | — |
| storage.type.cs | #c055ae | — |
| entity.name.variable.local.cs | #c052a1 | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #c956a8 | — |
| constant.other.placeholder.c | #50bd8c | italic |
| keyword.control.directive.include.c, keyword.control.directive.define.c | #41b882 | — |
| storage.modifier.c | #a751bd | — |
| source.cpp keyword.operator | #c2ab50 | — |
| constant.other.placeholder.cpp | #58c493 | italic |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #4dbd8b | — |
| storage.modifier.specifier.const.cpp | #a354c2 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #4fc2c0 | — |
| source.elixir entity.name.function | #48c08a | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #49bdbb | — |
| source.elixir punctuation.definition.string | #54b489 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #72f1b8 | — |
| source.elixir .punctuation.binary.elixir | #ca5bab | italic |
| entity.global.clojure | #58cfcd | bold |
| storage.control.clojure | #50cecc | italic |
| meta.metadata.simple.clojure, meta.metadata.map.clojure | #bd53a8 | italic |
| meta.quoted-expression.clojure | — | italic |
| meta.symbol.clojure | #c453a4 | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #d2e6f1 | — |
| source.go | #b9579d | — |
| source.go meta.function-call.go | #56cecc | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #c0a847 | — |
| source.go storage.type, source.go keyword.struct.go, source.go keyword.interface.go | #4bb988 | — |
| source.go constant.language.go, source.go constant.other.placeholder.go, source.go variable | #48bbca | — |
| markup.underline.link.markdown, markup.inline.raw.string.markdown | #4ec28e | italic |
| string.other.link.title.markdown | #c0a745 | — |
| markup.heading.markdown, entity.name.section.markdown | #c255a3 | bold |
| markup.italic.markdown | #41ccb7cc | italic |
| markup.bold.markdown | #51beaecc | bold |
| punctuation.definition.quote.begin.markdown, markup.quote.markdown | #72f1b8 | — |
| source.dart, source.python, source.scala | #ff7edbff | — |
| string.interpolated.single.dart | #f97e72 | — |
| variable.parameter.dart | #72f1b8 | — |
| constant.numeric.dart | #2EE2FA | — |
| variable.parameter.scala | #2EE2FA | — |
| meta.template.expression.scala | #72f1b8 | — |
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}!`;
}