black-canary
Publisher: PhanTriVietHoangThemes in package: 1
just black canary
just black canary
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 | bold | |
| entity.other.attribute-name | #BB77FF | italic |
| keyword.control.as | #7777FF | |
| keyword.control.flow | #FFB648 | bold |
| keyword.control.loop | #FF7FFF | italic bold |
| keyword.control.new | #AB5F23 | bold |
| keyword.control.trycatch | #FF0000 | italic |
| keyword.generator.asterisk | #FFFFFF | italic bold |
| keyword.operator | #FFFF7E | |
| keyword.operator.logical | #FF7F00 | bold |
| keyword.operator.or.regexp | #FF7700 | bold |
| keyword.other.js | #00FF00 | |
| markup.fenced_code.block.markdown | #8F93A290 | |
| markup.inline.raw.string.markdown | #FF7700 | |
| markup.italic | #F07178 | italic |
| markup.quote | #7EFF00 | italic |
| markup.strike | #FF007E | |
| markup.underline | #F78C6C | underline |
| markup.underline.link.image.markdown | #777777 | underline |
| meta.brace.round | #CCCCCC | |
| meta.paragraph.markdown | #EEEEEE | |
| meta.separator | #80869E50 | bold |
| punctuation.destructuring | #00FFFF | bold |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | |
| storage.type.function.arrow | #7FFF00 | italic bold |
| string | #FF7EFF | |
| string.quoted.docstring | #464B5D | italic |
| support.function | #00FF77 | |
| support.function.dom | #FF4848 | italic |
| support.function.promise | #DAFF91 | italic bold |
| support.variable | #FC6A0F | |
| support.variable.property.dom | #FF9100 | |
| text.html.derivative | #E4E4E4 | |
| text.html.markdown meta.dummy.line-break | #FF7E00 | |
| token.debug-token | #B267E6 | |
| token.error-token | #F44747 | |
| token.info-token | #6796E6 | |
| token.warn-token | #CD9731 | |
| variable.language | #FF7E7E | |
| comment, punctuation.definition.markdown | #666666 | |
| comment.block, punctuation.definition.comment | #7F0000 | |
| entity.name.variable, variable | #7EFFFF | |
| Keyword, Storage | italic | |
| entity.name.function, keyword.other.fn.rust | #7FFF00 | italic |
| variable.language.arguments, variable.parameter | #CBF2FF | italic bold |
| keyword.operator.assignment.compound.bitwise, keyword.operator.bitwise | #FFAEAE | italic bold |
| keyword.operator.quantifier.regexp, punctuation.accessor | #FFFFFF | bold |
| storage.type.class, storage.type.function | #0077FF | italic |
| keyword.operator.expression.in.js, keyword.operator.expression.of.js | #FF7FFF | bold |
| storage.modifier.async, support.class.promise | #CC77FF | bold |
| fenced_code.block.language.markdown, markup.bold.markdown | #20B3DF | |
| meta.jsx.children, storage.modifier, support.variable.property | #FF7777 | |
| entity.name, punctuation.separator, punctuation.terminator | italic bold | |
| entity.name.class, keyword.control, support.type | #FF3B3B | |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| *link*, *uri*, *url* | underline | |
| markup.quote punctuation.definition.blockquote.markdown, text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, variable.language.fenced.markdown | #80869E50 | |
| constant.language.null, constant.language.undefined, keyword.operator.expression.void | #B4B4B4 | |
| keyword.control.conditional, keyword.control.switch, keyword.operator.ternary | #FF7F00 | italic bold |
| markup.table, punctuation.definition.list_item.markdown, string constant.other.placeholder, text.html.markdown | #8F93A2 | |
| entity.name.type, keyword.control.type, keyword.operator.expression.typeof, support.class.builtin | #FF8800 | |
| punctuation.definition.string.begin, punctuation.definition.string.end, string.quoted.double, string.quoted.single | #FF44FF | |
| keyword.control.default, keyword.control.export, keyword.control.from, support.type.object.module | #FF4040 | |
| keyword.operator.expression.delete, punctuation.definition.group.regexp, string.other.link.description.markdown, support.class.console, support.function.console | #FF0000 | |
| keyword.control.fn.rust, keyword.control.import, keyword.operator.expression.import, keyword.other.rust, storage.modifier.rust, storage.type | #0077FF | |
| entity.name.tag.html, entity.name.type.numeric.rust, keyword.operator.expression.of, support.class, support.class.component, support.type.primitive | #FF0077 | |
| source.css support.type.property-name, source.less support.type.property-name, source.postcss support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.stylus support.type.property-name | #B2CCD6 | |
| entity.name.tag, markup.deleted.git_gutter, meta.tag.sgml, source.cpp meta.block variable.other, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, string.other.link, support.other.variable | #F07178 | |
| keyword.other.special-method, meta.class-method.js entity.name.function.js, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.sass keyword.control, string.other.link.title.markdown, variable.function, variable.function.constructor | #82AAFF | |
| constant.character, constant.escape, constant.language, keyword.other, keyword.other.unit, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, support.constant | #F78C6C | |
| entity.name.module.js, invalid, invalid.illegal, markup.deleted, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, variable.import.parameter.js, variable.other.class.js, variable.parameter.function.language.special | #FF5370 | |
| constant.language.import-export-all, keyword.operator.assignment, keyword.operator.range.rust, meta.array.literal, meta.brace.square, punctuation.separator.comma, variable.other.constant, variable.other.readwrite | #FFFFFF | |
| markup.bold, markup.bold markup.italic, markup.bold markup.italic string, markup.bold string, markup.italic markup.bold, markup.italic markup.bold string, markup.quote markup.bold, markup.quote markup.bold string | #F07178 | bold |
| constant.language.bool.rust, constant.language.boolean.false, constant.language.boolean.true, constant.language.nan, entity.name.type.module, keyword.operator.comparison, keyword.operator.expression.instanceof, keyword.operator.expression.is | #3FBFFF | |
| constant.other.php, constant.other.reference.link.markdown, entity.other.attribute-name.class, markup.changed.git_gutter, meta.use.php, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, support.orther.namespace.use.php, support.other.namespace.php, support.type.sys-types | #FFCB6B | |
| constant.other.key, constant.other.symbol, markdown.heading, markup.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.inserted, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | |
| entity.name.section.markdown, entity.name.type.class, entity.name.type.interface, entity.other.inherited-class, keyword.operator.new, meta.group.regexp, variable.language.this, variable.other.constant.object, variable.other.object, variable.other.object.property | #00FFFF | |
| constant.character.escape, constant.other.color, keyword.other.substitution, keyword.other.template, punctuation, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, punctuation.section.embedded, punctuation.separator.inheritance.php, string.regexp | #89DDFF | |
| invalid.deprecated, keyword, keyword.operator.expression.in, keyword.operator.expression.keyof, keyword.operator.type.annotation, markup.changed, markup.raw.block, meta.object-literal.key, punctuation.separator.key-value, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json support.type.property-name.json, storage.type.property, string.other.link.description.title.markdown, text.html.markdown markup.inline.raw.markdown, variable.object.property, variable.other.property | #BB77FF | |
| constant.language.infinity, constant.numeric, constant.numeric.binary, constant.numeric.decimal, constant.numeric.hex, constant.numeric.octal, constant.other.character-class.regexp, keyword.operator.arithmetic, keyword.operator.assignment.compound, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational, meta.separator.markdown, support.constant.math, support.constant.property.math, support.function.math | #FFFF00 |
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}!`;
}