Vendetta Dark
Publisher: vendettaBeyThemes in package: 1
An ultra-dark theme with soft, distinct colors perfect for long coding sessions. Features carefully crafted syntax highlighting for PHP and other languages.
An ultra-dark theme with soft, distinct colors perfect for long coding sessions. Features carefully crafted syntax highlighting for PHP and other languages.
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, punctuation.definition.comment, punctuation.whitespace.comment.leading | #5C6370 | italic |
| comment.block.documentation, comment.documentation, string.quoted.docstring, punctuation.definition.comment.begin.documentation, punctuation.definition.comment.end.documentation | #6B7280 | italic |
| variable.graphql, variable.object.property, variable.other.assignment, variable.other.block, variable.other.declaration, variable.other.object, variable.other.php, variable.other.positional.shell, variable.other.readwrite, variable.other.ruby, variable.other, variable.scss | #E5E9F0 | — |
| constant.other.caps, source.shell variable.other, variable.language.self, variable.language.special.self, variable.language.super, variable.language.this, variable.other.alias.yaml, variable.other.class.php, variable.other.constant, variable.other.global.safer.php, variable.other.readwrite.class.ruby, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special.self, variable.other.readwrite.instance.crystal, variable.other.readwrite.module | #FF6B9D | italic |
| entity.alias.import | #FF6B9D | — |
| support.variable, support.constant.color, support.type, support.class, support.other.namespace, support.class.php, support.other.namespace.php | #82AAFF | — |
| meta.method.declaration.js storage.type.js, support.function, support.function.builtin.php, support.function.construct.php | #7FDBCA | — |
| meta.generic-where-clause.swift, meta.arguments.attribute.swift | #E5C07B | — |
| constant, support.constant, keyword.other.unit, constant.other.php, constant.language.php, constant.numeric, constant.language | #E5856F | — |
| meta.object-literal.key, variable.other.property.js.jsx, variable.other.property.tsx, variable.other.object.property, variable.other.property, variable.other.member, support.type.property-name | #E6B87A | — |
| meta.function-call.arguments, variable.parameter | #E5E5E5 | — |
| entity.name.function, entity.name.function.php, meta.function.php entity.name.function | #7A9FED | bold |
| entity.name.function-call, entity.name.function.call, meta.function-call, meta.method-call entity.name.function, meta.function-call entity.name.function, meta.function.call entity.name.function, meta.function-call.php | #7DC9E8 | — |
| keyword.control.module, keyword.control, keyword.control.import.php, keyword.control.return.php, keyword.control.exception.php, keyword.operator.expression.of, keyword.operator.new, keyword.other.special-method, keyword.type.go, keyword, keyword storage.type, storage.modifier, storage.modifier.php, storage.type.class, storage.type.class.php, storage.type.function, storage.type.function.php, storage.type.interface, storage.type.trait.php, storage.type.type | #BB86D9 | italic |
| entity.name.package, entity.name.type, entity.name.type.class, entity.name.type.class.php, entity.name.type.interface.php, entity.name.type.trait.php, entity.name.class, entity.name.namespace, entity.name.namespace.php, entity.name.module, entity.name.scope-resolution, storage.modifier.package.java, meta.inheritance-clause, entity.other.inherited-class, support.other.namespace.use.php | #E6B87A | bold |
| keyword.operator.comparison, keyword.operator.logical, keyword.operator.relational | #56B6C2 | — |
| storage.type, storage.type.php, keyword.type, meta.type.annotation | #E6B87A | — |
| keyword.operator, keyword.operator.arithmetic.php, keyword.operator.assignment.php, keyword.operator.comparison.php, keyword.operator.logical.php, keyword.operator.string.php | #7DC9E8 | — |
| source.elixir.embedded.source, storage.modifier.import.java, string.quoted.double, string.quoted.single, string.quoted.double.php, string.quoted.single.php, string, meta.string | #B8D88C | — |
| storage.modifier.import.java, meta.import entity.name.namespace, meta.use entity.name.namespace, meta.use entity.name.type, meta.use.php entity.name.type, support.other.namespace.use.php | #89DDFF | — |
| punctuation.definition.template-expression, punctuation.section.embedded, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.interpolation | #FF6B9D | — |
| meta.brace, punctuation.definition.begin.bracket, punctuation.definition.end.bracket, punctuation.section.scope.begin.php, punctuation.section.scope.end.php | #D4D4D4 | — |
| comment.documentation, comment.block.documentation, string.quoted.docstring.multi.python, comment.block.documentation punctuation.definition.comment | #7F848E | — |
| comment, punctuation.definition.comment, punctuation.whitespace.comment.leading.graphql | #5C6370 | italic |
| comment.wildcard, meta.jsx.children | #5C6370 | — |
| comment.line.number-sign.flag.po, comment storage.type.class.po, storage.type.annotation, meta.attribute.rust | #E5C07B | — |
| support.type.property-name.json | #E5C07B | — |
| meta.structure.dictionary.value support.type.property-name.json | #C678DD | — |
| meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #E06C75 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #61AFEF | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #E5C07B | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #98C379 | — |
| meta.tag.metadata, markup.underline.link | #C678DD | — |
| meta.tag.metadata.link, string.other.link.title.markdown, string.other.link.description.markdown | #61AFEF | — |
| markup.italic | #98C379 | — |
| punctuation.definition.tag | #ABB2BF | — |
| meta.tag.inline, entity.name.tag.js.jsx, entity.name.tag.tsx | #E06C75 | — |
| meta.tag.object | #61AFEF | — |
| meta.tag.metadata.style, source.vue entity.name.tag.style.html | #E5C07B | — |
| meta.tag.metadata.script, source.vue entity.name.tag.script.html | #61AFEF | — |
| meta.tag.custom | #C678DD | — |
| meta.tag.structure, meta.tag, entity.name.tag.yaml, keyword.key.toml, markup.fenced_code.block, markup.inline.raw.string, fenced_code.block.language, markup.raw.block, keyword.other.definition.ini | #E5C07B | — |
| entity.other.attribute-name, meta.selector.css, source.css.scss entity.name.tag.css | #D19A66 | — |
| heading, entity.name.section.group-title | #E06C75 | — |
| invalid.illegal.tag-handle.yaml, text.html.markdown entity.name.tag.html, text.html.markdown punctuation.definition.tag, meta.tag.other.unrecognized, source.vue entity.name.tag.template.html | #E06C75 | — |
| markup.bold, punctuation.definition.bold | #FFCB8B | bold |
| markup.italic, punctuation.definition.italic, markup.quote.markdown | #C792EA | italic |
| variable.other.php, punctuation.definition.variable.php | #E5E9F0 | — |
| punctuation.definition.variable.php | #89DDFF | — |
| constant.other.php, constant.language.php, support.constant.core.php, support.constant.std.php | #F78C6C | — |
| punctuation.separator.inheritance.php | #89DDFF | — |
| keyword.other.use.php, keyword.other.namespace.php | #C792EA | italic |
| punctuation.section.array.begin.php, punctuation.section.array.end.php | #89DDFF | — |
| storage.type.function.arrow.php, keyword.declaration.function.arrow.php | #C792EA | italic |
| meta.method-call.php entity.name.function.php | #89DDFF | — |
| meta.method-call.static.php | #89DDFF | — |
| token.info-token | #82AAFF | — |
| token.warn-token | #F78C6C | — |
| token.error-token | #FF6B9D | — |
| token.debug-token | #C792EA | — |
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}!`;
}