Vanta black
Publisher: Mustafa ManhalThemes in package: 10
8 pure black themes with vivid colors and visible borders
8 pure black themes with vivid colors and visible borders
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 |
|---|---|---|
| variable, variable.other.readwrite, support.variable | #4FC1FF | — |
| meta.var.expr variable.other.readwrite, meta.var-single-variable variable.other.readwrite, variable.other.readwrite.alias | #79C0FF | — |
| meta.binding.pattern variable.object.variable, meta.destructuring variable.other.readwrite, meta.object-binding-pattern-variable variable.object.variable | #79C0FF | — |
| variable.parameter, meta.parameter | #56B6C2 | italic |
| meta.import variable.other.readwrite, meta.import variable.other, meta.named-exports variable.other, meta.named-imports variable.other | #E06C75 | — |
| meta.object-literal.key, meta.object.member meta.object-literal.key, string.unquoted.label | #56B6C2 | — |
| meta.property.object, variable.other.property, variable.other.object.property | #61AFEF | — |
| entity.name.function, meta.function-call entity.name.function, support.function | #61AFEF | — |
| comment, punctuation.definition.comment | #6A9955 | italic |
| string, punctuation.definition.string | #F0A070 | — |
| constant.character.escape, string source | #FFD580 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FF79C6 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.delete | #FF79C6 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #BD93F9 | — |
| storage, storage.type, storage.modifier | #FF79C6 | — |
| constant.language, variable.language.this, variable.language.super, constant.language.boolean, constant.language.null, constant.language.undefined | #BD93F9 | — |
| constant.numeric | #50FA7B | — |
| variable.other.constant, variable.other.enummember | #CFE2FF | — |
| entity.name.function, support.function, meta.function-call.generic | #50FA7B | — |
| keyword.operator | #FF79C6 | — |
| punctuation | #F8F8F2 | — |
| punctuation.definition.block, punctuation.section.block, meta.brace.curly, meta.brace.square, meta.brace.round | #FFD700 | — |
| entity.name.type, entity.name.class, support.class, entity.name.type.class | #8BE9FD | — |
| entity.name.type.interface | #8BE9FD | italic |
| support.type, entity.name.type.parameter, entity.name.type.primitive | #8BE9FD | — |
| entity.name.namespace, entity.name.module | #8BE9FD | — |
| meta.decorator, meta.decorator punctuation.decorator, tag.decorator entity.name.tag | #FFB86C | — |
| storage.type.function.arrow | #FF79C6 | — |
| keyword.operator.spread, keyword.operator.rest | #FF79C6 | — |
| keyword.operator.optional | #FFB86C | — |
| keyword.operator.logical.nullish | #FFB86C | — |
| entity.name.type.alias.ts, entity.name.type.alias.tsx | #8BE9FD | — |
| support.type.utility.ts | #8BE9FD | — |
| meta.type.parameters, punctuation.definition.typeparameters | #FFB86C | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc | #6272A4 | italic |
| string.quoted.double.block.python, string.quoted.single.block.python | #6A9955 | italic |
| meta.decorator.python, entity.name.function.decorator.python, punctuation.definition.decorator.python | #FFB86C | — |
| variable.language.special.self.python, variable.language.special.cls.python | #BD93F9 | italic |
| support.function.builtin.python | #50FA7B | — |
| support.type.python, support.class.python | #8BE9FD | — |
| variable.annotation.python, meta.function.annotation.python, meta.function.annotation.return.python | #8BE9FD | — |
| punctuation.section.f-expression.begin.python, punctuation.section.f-expression.end.python | #FF79C6 | — |
| support.variable.magic.python | #CFE2FF | — |
| keyword.package.go, keyword.import.go, keyword.other.package.go, keyword.other.import.go | #BD93F9 | — |
| entity.name.package.go | #8BE9FD | — |
| support.function.builtin.go | #50FA7B | — |
| support.type.predeclared.go, support.type.builtin.go | #8BE9FD | — |
| constant.language.go | #BD93F9 | — |
| string.quoted.raw.go | #FFD580 | — |
| keyword.operator.address.go, keyword.operator.pointer.go | #FF79C6 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string | #8BE9FD | — |
| meta.structure.dictionary.value.json string, string.quoted.double.json | #F0A070 | — |
| meta.structure.dictionary.value.json constant.numeric, constant.numeric.json | #50FA7B | — |
| constant.language.json | #BD93F9 | — |
| punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json | #FFD700 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #BD93F9 | bold |
| markup.heading.1.markdown, entity.name.section.markdown heading.1 | #FF79C6 | bold |
| markup.heading.2.markdown | #BD93F9 | bold |
| markup.heading.3.markdown | #8BE9FD | bold |
| markup.bold, punctuation.definition.bold | #FFB86C | bold |
| markup.italic, punctuation.definition.italic | #F0A070 | italic |
| markup.inline.raw.string, markup.fenced_code.block | #50FA7B | — |
| markup.underline.link, string.other.link | #8BE9FD | — |
| meta.link.inline.markdown | #FFB86C | — |
| markup.quote, punctuation.definition.blockquote.markdown | #6272A4 | italic |
| meta.separator.markdown | #44475A | — |
| string.regexp, constant.other.character-class.regexp, string.regexp keyword.operator | #FF5555 | — |
| punctuation.definition.group.regexp, meta.group.regexp | #FFB86C | — |
| constant.other.character-class.set.regexp, punctuation.definition.character-class.regexp | #50FA7B | — |
| keyword.operator.quantifier.regexp | #FF79C6 | — |
| support.function.builtin.shell, entity.name.command.shell | #50FA7B | — |
| variable.other.normal.shell, variable.other.bracket.shell, variable.other.special.shell | #8BE9FD | — |
| string.unquoted.argument.shell | #FFB86C | — |
| comment.line.shebang | #FF79C6 | italic |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #FFB86C | — |
| entity.name.function.macro.rust, support.function.macro.rust | #50FA7B | — |
| meta.attribute.rust, entity.name.function.attribute.rust | #FFD580 | — |
| storage.modifier.unsafe.rust | #FF5555 | — |
| invalid.illegal, invalid.deprecated | #FF5555 | — |
| support.class.component.jsx, support.class.component.tsx, support.class.component.js, support.class.component.ts | #58C7FF | bold |
| entity.name.tag.html, entity.name.tag, entity.name.tag.tsx, entity.name.tag.jsx | #7AA2FF | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.tag punctuation.definition.tag | #82C7FF | — |
| entity.other.attribute-name, meta.tag.attributes entity.other.attribute-name | #8FEFAF | — |
| string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value.html string | #F5C14B | — |
| meta.tag.sgml.doctype, entity.name.tag.doctype | #8899CC | — |
| entity.other.attribute-name.id, entity.other.attribute-name.id.html | #F0C070 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.class.html | #92D6FF | — |
| entity.name.selector, meta.selector | #A9F0B3 | — |
| entity.other.attribute-name.id.css, meta.selector entity.other.attribute-name.id | #F0C070 | — |
| entity.other.attribute-name.class.css, meta.selector entity.other.attribute-name.class | #92D6FF | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #FF91C4 | — |
| support.type.vendored.property-name, support.type.property-name.css, meta.property-name | #8FDEFF | — |
| support.constant.property-value, meta.property-value | #F7C68A | — |
| keyword.other.unit | #A9F0B3 | — |
| constant.other.color.rgb-value.hex.css, constant.other.color | #FFE380 | — |
| variable.css, variable.argument.css, variable.other.less, variable.scss, variable.sass | #C89CFF | — |
| keyword.control.at-rule, meta.at-rule keyword.control | #FF8EC6 | — |
| keyword.other.important.css | #FF7A7A | bold |
| entity.name.function.scss, support.function.misc.scss, keyword.control.at-rule.include.scss, keyword.control.at-rule.mixin.scss | #7EF0A6 | — |
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}!`;
}