Taquito Dark Pro
Publisher: taquito-codeThemes in package: 1
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 | #717188 | italic |
| string.quoted, string.template, punctuation.definition.string | #98C379 | — |
| string.template meta.embedded.line | #b6b1b1 | — |
| variable, entity.name.variable | #e06c75 | — |
| variable.language | #ffffff | bold |
| variable.parameter | #d4d4d4 | italic |
| storage.type, storage.modifier | #C678DD | — |
| constant | #f97e72 | — |
| string.regexp | #f97e72 | — |
| constant.numeric | #f97e72 | — |
| constant.language | #faaf4c | — |
| constant.character.escape | #78d1dd | — |
| punctuation.definition.tag | #dbcbe0 | — |
| entity.other.attribute-name | #D19A66 | — |
| entity.other.attribute-name.html | #D19A66 | italic |
| entity.name.type, meta.attribute.class.html | #ABB2BF | — |
| entity.other.inherited-class | #D50 | — |
| keyword.control.export.js, keyword.control.import.js | #C678DD | — |
| constant.numeric.decimal.js | #2EE2FA | — |
| keyword | #D19A66 | — |
| keyword.control | #D19A66 | — |
| keyword.operator | #D19A66 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #D19A66 | — |
| keyword.other.unit | #f97e72 | — |
| meta.function-call | #2abed1 | — |
| meta.tag | #d43b48 | — |
| variable.other.object.property.js | #fc98df | — |
| meta.object-literal.key, support.type.property-name | #ff7edb | — |
| punctuation.separator.key-value | #b6b1b1 | — |
| punctuation.section.embedded | #D19A66 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #C678DD | — |
| support.type.property-name.css, support.type.property-name.json | #56B6C2 | — |
| switch-block.expr.js | #78d1dd | — |
| variable.other.constant.property.js, variable.other.property.js | #ABB2BF | — |
| constant.other.color | #f97e72 | — |
| support.constant.font-name | #f97e72 | — |
| entity.other.attribute-name.id | #61AFEF | — |
| support.constant | #F97E72 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #e63e97 | — |
| support.function.misc.css | #fe4450 | — |
| markup.heading, entity.name.section | #ff7edb | — |
| text.html, keyword.operator.assignment | #ffffffee | — |
| markup.quote | #b6b1b1cc | italic |
| beginning.punctuation.definition.list | #ff7edb | — |
| markup.underline.link | #D50 | — |
| string.other.link.description | #f97e72 | — |
| meta.function-call.generic.python | #78d1dd | — |
| variable.parameter.function-call.python | #56B6C2 | — |
| storage.type.cs | #fe4450 | — |
| entity.name.variable.local.cs | #ff7edb | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #ff7edb | — |
| constant.other.placeholder.c | #56B6C2 | italic |
| keyword.control.directive.include.c, keyword.control.directive.define.c | #56B6C2 | — |
| storage.modifier.c | #fe4450 | — |
| source.cpp keyword.operator | #D19A66 | — |
| constant.other.placeholder.cpp | #56B6C2 | italic |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #56B6C2 | — |
| storage.modifier.specifier.const.cpp | #fe4450 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #78d1dd | — |
| source.elixir entity.name.function | #56B6C2 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #78d1dd | — |
| source.elixir punctuation.definition.string | #56B6C2 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #56B6C2 | — |
| source.elixir .punctuation.binary.elixir | #ff7edb | italic |
| entity.global.clojure | #78d1dd | bold |
| storage.control.clojure | #78d1dd | italic |
| meta.metadata.simple.clojure, meta.metadata.map.clojure | #fe4450 | italic |
| meta.quoted-expression.clojure | — | italic |
| meta.symbol.clojure | #ff7edbff | — |
| source.go | #ff7edbff | — |
| source.go meta.function-call.go | #78d1dd | — |
| 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 | #D19A66 | — |
| source.go storage.type, source.go keyword.struct.go, source.go keyword.interface.go | #56B6C2 | — |
| source.go constant.language.go, source.go constant.other.placeholder.go, source.go variable | #2EE2FA | — |
| markup.underline.link.markdown, markup.inline.raw.string.markdown | #56B6C2 | italic |
| string.other.link.title.markdown | #D19A66 | — |
| markup.heading.markdown, entity.name.section.markdown | #ff7edb | bold |
| markup.italic.markdown | #2EE2FA | italic |
| markup.bold.markdown | #2EE2FA | 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}!`;
}