orbDbz
Publisher: Bruno TomazThemes in package: 1
Dark color
Dark color
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 |
|---|---|---|
| string constant.other.placeholder, invalid.deprecated, keyword, storage.type | #D87818 | — |
| storage.type.function | #f73bb8 | italic |
| storage.modifier.js, storage.modifier.ts | #FF79C6 | italic |
| storage.modifier.async | #ffa7a7 | italic |
| keyword.operator | #FF79C6 | italic |
| string constant.other.placeholder, entity.name.function, meta.definition.property.js, meta.function-call.js, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #8bfc7c | — |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #609030 | — |
| constant.other.php | #D87818 | — |
| constant.other.color | #F0F0F0 | — |
| invalid, invalid.illegal | #D8C018 | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #6431c2 | bold |
| keyword.control.import, keyword.control.export | #ff6c8c | italic |
| keyword.control.from, keyword.control.default | #fa496f | bold |
| keyword.expressions-and-types.swift, variable.language.this, variable.language.super, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #ff006a | italic |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #184878 | — |
| entity.name.type.module.js | #eeff00 | — |
| keyword.control.at-rule, punctuation.terminator.rule, keyword.control.operator, punctuation.definition.entity, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.binding-pattern.object.js | #D8D8D8 | — |
| punctuation.definition, string.quoted.single | #A7A8AF | — |
| keyword.control.loop | #F00018 | bold |
| comment.line, comment.line.double-slash, punctuation.definition.comment, comment.block, comment.line.number-sign.python, string.quoted.docstring.multi.python | #6D6F7C | italic |
| text.html.derivative | #ffffff | — |
| meta.member.access.python meta.attribute.python | #c7ebf1 | — |
| meta.function.decorator.python punctuation.definition, meta.function.decorator.python entity.name.function | #ffa600 | — |
| entity.name.tag, meta.selector entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF7818 | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list, meta.function meta.var.expr.js string.template.js variable.other, meta.block meta.block meta.block variable.other, meta.var.expr.js variable.other, meta.function variable, meta.function meta.var.expr.js meta.array.literal.js variable.other.object.js, entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #b282d1 | italic |
| meta.function meta.var-single-variable.expr.js variable.other, meta.block meta.block meta.array.literal.js variable.other | #9078D8 | |
| meta.block meta.block meta.function-call.js variable.other.object.js, meta.function-call.js variable.other.object.js, meta.definition.variable.js | #9078D8 | |
| string, string.quoted.double.json, variable.other.constant.js, variable.other.readwrite.js, variable.other.readwrite.ts, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #e9eff5b6 | |
| meta.definition.variable.js variable.other.constant.js, meta.function-call.js variable.other.object.js | #9078D8 | italic |
| storage.type.js, storage.type.ts, string.other.link.title.markdown | #18a8d8 | bold |
| storage.type.property.ts, storage.type.interface.ts | #00ffdd | — |
| meta.function-call.generic.python | #2bccb6 | italic |
| support.constant.property, support.variable.property, meta.function-call.arguments.python | #F0C0A8 | — |
| meta.method.declaration.js, meta.method.declaration.ts, variable.other.object.property.js | #F09078 | — |
| string.quoted.double, string.quoted.single, string.template | #ebe99e | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #fad400 | — |
| support.other.variable, string.other.link, markup.table | #88f0b3 | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #B2CCD6 | — |
| constant.language.python | #83bb29 | italic |
| constant.numeric.decimal | #C4186E | bold |
| constant.language.boolean, constant.language.undefined, constant.language.null.js | #94daa9 | bold |
| variable.parameter.function.language.special, variable.parameter | #e78b4e | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #609030 | |
| support.type, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #D87818 | — |
| support.type.primitive.ts, support.type.builtin.ts | #ffbb00 | — |
| support.class.component.js | #EEFF00 | bold |
| entity.name.type.class | #2bff00 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.js | #54b833 | — |
| entity.other.attribute-name.js | — | italic |
| meta.attribute.class.html entity.other.attribute-name.html, entity.other.attribute-name.class, constant.other.caps.python | #006090 | italic bold |
| meta.attribute.id.html entity.other.attribute-name.html, entity.other.attribute-name.id | #09ff00 | italic bold |
| support.type | #B2CCD6 | — |
| support.type.python | #62d7fa | italic |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, meta.property-list.scss entity.name.tag.css, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #784890 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #784890 | italic |
| variable.scss | #8BE9FD | italic |
| support.constant.vendored.property-value.css, support.type.vendored.property-name.css | #82abb6 | italic |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js, meta.function-call.arguments.python meta.member.access.python | #D8C018 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #90A8C0 | italic |
| entity.other.attribute-name, support.function, keyword.control.at-rule.import | #ff006a | — |
| keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.python | #fd3131 | — |
| keyword.control.flow.python | #b64747 | — |
| meta.import | #e8f8fc | — |
| support.function | #8BE9FD | italic |
| entity.other.attribute-name.pseudo-class, support.constant, meta.jsx.children.js | #D8D8D8 | — |
| meta.method.declaration.js, meta.field.declaration.js | — | bold |
| meta.object-literal.key, variable.other.property, meta.object-binding-pattern-variable.js, meta.object.member variable.other.property, switch-expression.expr variable.other.property | #FFBB00 | |
| meta.object.member.js variable.other.object.js, variable.other.object.js | #ff3300 | |
| keyword.control.conditional | #FFFB00 | — |
| storage.type.class | #1848C0 | italic |
| source.scss keyword.control | #D87818 | — |
| markup.inserted | #609030 | — |
| markup.deleted | #D8C018 | — |
| markup.changed | #D87818 | — |
| string.regexp | #F0D8C0 | — |
| constant.character.escape | #F0D8C0 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #D8D8D8 | italic |
| support.type.property-name.json | #e0953e | — |
| constant.language.json | #77e091 | bold |
| source.ignore | #f05454 | italic |
| comment.line.number-sign.ignore | #977c7c | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #D8D8D8 | — |
| text.html.markdown markup.inline.raw.markdown | #D87818 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #48487850 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #784890 | bold |
| markup.underline | #90A8C0 | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #48487850 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #D87818 | — |
| constant.other.reference.link.markdown | #D87818 | — |
| markup.raw.block | #D87818 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #F0D8C0 | — |
| variable.language.fenced.markdown | #484878 | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #484878 | — |
| token.warn-token | #D87818 | — |
| token.error-token | #FF293B | — |
| token.debug-token | #F0D8C0 | — |
| comment.line.number-sign.yaml, comment.line.number-sign.ini, punctuation.definition.comment.yaml | #426d11 | — |
| string.unquoted.plain.out.yaml | #5573d3 | — |
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}!`;
}