OrbBak-dark
Publisher: Bruno TomazThemes in package: 1
Dark Theme
Dark Theme
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 |
|---|---|---|
| support.class.component | #ffef0a | italic |
| meta.jsx.children | #bff8ec | — |
| entity.name.tag | #0aefff | — |
| entity.other.attribute-name | #52a585 | italic |
| punctuation.definition.tag | #ff780a | — |
| punctuation.accessor.optional | #0affca | — |
| storage.modifier.async | #02e8f8 | italic bold |
| keyword.other.debugger | #ea6962 | — |
| keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map | #89b482 | — |
| storage.type.annotation | #89b482 | — |
| entity.name.label, constant.other.label | #89b482 | — |
| constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation | #a9b665 | — |
| entity.name.function.preprocessor | #d3869b | — |
| heading.1.markdown, markup.heading.setext.1.markdown | #ea6962 | bold |
| heading.2.markdown, markup.heading.setext.2.markdown | #e78a4e | bold |
| heading.3.markdown | #d8a657 | bold |
| heading.4.markdown | #a9b665 | bold |
| heading.5.markdown | #7daea3 | bold |
| heading.6.markdown | #d3869b | bold |
| punctuation.definition.heading.markdown | #928374 | |
| string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown | #d3869b | |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #a9b665 | underline |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.markdown | #928374 | — |
| punctuation.definition.bold.markdown | #928374 | |
| meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown | #928374 | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.bold markup.italic, markup.italic markup.bold | — | italic bold |
| punctuation.definition.markdown, punctuation.definition.raw.markdown | #d8a657 | — |
| fenced_code.block.language | #d8a657 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #a9b665 | — |
| punctuation.definition.list.begin.markdown | #ea6962 | — |
| punctuation.definition.heading.restructuredtext | #e78a4e | bold |
| punctuation.definition.field.restructuredtext, punctuation.separator.key-value.restructuredtext, punctuation.definition.directive.restructuredtext, punctuation.definition.constant.restructuredtext, punctuation.definition.italic.restructuredtext, punctuation.definition.table.restructuredtext | #928374 | — |
| punctuation.definition.bold.restructuredtext | #928374 | |
| entity.name.tag.restructuredtext, punctuation.definition.link.restructuredtext, punctuation.definition.raw.restructuredtext, punctuation.section.raw.restructuredtext | #89b482 | — |
| constant.other.footnote.link.restructuredtext | #d3869b | — |
| support.directive.restructuredtext | #ea6962 | — |
| entity.name.directive.restructuredtext, markup.raw.restructuredtext, markup.raw.inner.restructuredtext, string.other.link.title.restructuredtext | #a9b665 | — |
| punctuation.separator.namespace.xml | #928374 | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml | #e78a4e | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #d8a657 | — |
| string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.double.xml, string.quoted.single.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.xml, meta.tag.xml, meta.tag.preprocessor.xml, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html | #a9b665 | — |
| variable.language.documentroot.xml, meta.tag.sgml.doctype.xml | #d3869b | — |
| punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css | #928374 | — |
| entity.other.attribute-name.class.css | #ea6962 | — |
| keyword.other.unit | #e78a4e | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #d8a657 | — |
| string.quoted.single.css, string.quoted.double.css, support.constant.property-value.css, meta.property-value.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css, constant.numeric.css, support.constant.font-name.css, variable.parameter.keyframe-list.css | #a9b665 | — |
| support.type.property-name.css | #89b482 | — |
| support.type.vendored.property-name.css | #7daea3 | — |
| entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css | #d3869b | — |
| punctuation.definition.entity.scss, punctuation.separator.key-value.scss, punctuation.terminator.rule.scss, punctuation.separator.list.comma.scss | #928374 | — |
| keyword.control.at-rule.keyframes.scss | #e78a4e | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #d8a657 | — |
| punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, string.quoted.single.scss, constant.character.css.sass, meta.property-value.scss | #a9b665 | — |
| keyword.control.at-rule.include.scss, keyword.control.at-rule.use.scss, keyword.control.at-rule.mixin.scss, keyword.control.at-rule.extend.scss, keyword.control.at-rule.import.scss | #d3869b | — |
| meta.scope.if-block.shell, meta.scope.group.shell | #d4be98 | — |
| support.function.builtin.shell, entity.name.function.shell | #d8a657 | — |
| string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell | #a9b665 | — |
| keyword.control.heredoc-token.shell, variable.other.normal.shell, punctuation.definition.variable.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell | #d3869b | — |
| entity.name.function.package-manager.dockerfile | #e78a4e | — |
| keyword.operator.flag.dockerfile | #d8a657 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #a9b665 | — |
| constant.character.escape.dockerfile | #89b482 | — |
| entity.name.type.base-image.dockerfile, entity.name.image.dockerfile | #d3869b | — |
| comment, string.comment, string.quoted.docstring, string.quoted.docstring punctuation.definition.string.begin, string.quoted.docstring punctuation.definition.string.end, comment.line.number-sign.ini, comment.line.number-sign.ignore, string.quoted.docstring.multi | #31454e | italic |
| support.type.property-name.json.comments, meta.structure.array.json string.quoted.double.json | #537686 | — |
| meta.structure.dictionary.json string.json | #466a7a | italic |
| meta.structure.dictionary.value.json string.quoted.double.json | #54aaa3 | — |
| punctuation.definition.comment, punctuation.definition.string, meta.fstring.python punctuation.definition.string string.quoted, punctuation.definition.heading.markdown | #928374 | italic |
| meta.fstring.python storage.type.string | #f1b93e | — |
| meta.member.access meta.item-access, meta.member.access meta.attribute, support.type.primitive | #85dfc4 | italic |
| meta.function-call.generic | #3FE41E | — |
| constant.language.boolean, constant.language | #3cb624 | italic |
| storage.type.function.lambda | #fa496f | — |
| meta.function.decorator | #f7f46b | — |
| storage.type | #f8ae1b | — |
| storage.type.function.arrow | #f789df | — |
| string.quoted, string.quoted.double.json.comments, entity.name.section.markdown | #f7d591 | — |
| keyword.control.flow | #e65050 | — |
| keyword.operator.logical | #e650d2 | — |
| meta.member.access meta.function-call.arguments, meta.paragraph.markdown, source | #b2ccd6 | — |
| keyword.control.import | #a08241 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.new, keyword.operator.bitwise, punctuation.separator, punctuation.terminator, rainbow1 | #FF79C6 | — |
| constant.numeric | #d16f37 | — |
| string constant.other.placeholder, invalid.deprecated, keyword | #D87818 | — |
| 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, constant.language.json | #8bfc7c | — |
| 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, 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 | |
| variable.parameter.function.language.special, variable.parameter | #f0c400 | — |
| variable.other.readwrite.alias | #F8E0E0 | — |
| entity.name.type | #d400ff | — |
| invalid, invalid.illegal, meta.function.decorator meta.function-call.arguments, storage.modifier.ts | #18abd8 | — |
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}!`;
}