Theme XulbuX PRO
Publisher: XulbuXThemes in package: 3
Theme pack which focuses on clear syntax and beautiful colors.
Theme pack which focuses on clear syntax and beautiful colors.
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, constant.numeric.line-number.find-in-files, constant.numeric.line-number.match.find-in-files, invalid, keyword.operator.assignment.dotenv, log.verbose, meta.at-rule.keyframes.body, punctuation, string.quoted.docstring punctuation.definition, string.quoted.docstring, token.error-token | #66676A | — |
| entity.other.jinja2.delimiter, fenced_code.block.language, keyword.operator.heading.restructuredtext, keyword.operator.table.row.restructuredtext keyword.operator.table.data.restructuredtext, keyword.operator.type.annotation, keyword.other.parenthesis.elm, keyword.other.substitution, markup.hr.markdown, markup.ignored punctuation.definition.ignored, markup.ignored, markup.untracked, meta.brackets entity.name.function.operator, meta.delimiter.comma.js, meta.function-call.method.without-arguments.js, meta.function-call.without-arguments.js, meta.function.parameters, meta.link.email.lt-gt, meta.separator.markdown, meta.type storage.modifier.array, punctuation.accessor, punctuation.definition.block, punctuation.definition.group.begin.css, punctuation.definition.group.begin.ruby, punctuation.definition.group.end.css, punctuation.definition.group.end.ruby, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.raw.markdown, punctuation.definition.string.end.html source.css, punctuation.definition.tag source, punctuation.definition.tag, punctuation.separator entity.name.function.operator, punctuation.separator.parameter, punctuation.terminator, source.git-diff.command meta.diff.git-diff.header.from-file, source.git-diff.command meta.diff.git-diff.header.to-file, source.git-show meta.diff.header.from-file, source.git-show meta.diff.header.to-file, source, string punctuation.definition.string source, string source punctuation.section.embedded, support.constant.handlebars, support.function.delimiter.elm | #86878A | — |
| comment entity.name.tag, comment entity.name.type, comment keyword, constant.other.ellipsis, entity.name.function.decorator, keyword.other.phpdoc, meta.function.decorator, meta | #B0B1B4 | — |
| entity.name.namespace, entity.name.tag.documentation, entity.name.type.namespace, markup.fenced_code.block, markup.raw.block.markdown, meta.annotation.rust keyword.operator, meta.annotation.rust keyword, meta.annotation.rust string, meta.annotation.rust, meta.attribute.rust string, meta.attribute.rust, meta.use.php entity.name.type, meta.use.php support.other.namespace.php, punctuation.definition.entity.css, punctuation.definition.keyword.scss, punctuation.definition.variable, storage.modifier.import.java, string.other.git-status.help.key, string.quoted.other.lt-gt.include, support.other.namespace, support.type.vendor-prefix.css, support.variable, variable.annotation.rust, variable.language, variable.parameter.function.language.special.cls.python, variable.parameter.function.language.special.self.python | #C8C9CC | — |
| comment.other.git-status.head, entity.name.operator.custom-literal, meta.object.member, meta.paragraph.markdown, meta.template-tag, meta.type_params.rust, punctuation.definition.group, region.whitish, source.json meta.mapping.key string, string source, string.unquoted.label, text | #EAEBEE | — |
| keyword - keyword.operator, keyword.other.important, keyword, log.error, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded constant.other, punctuation.section.embedded source, punctuation.section.embedded, punctuation.template-string.element.begin, punctuation.template-string.element.end, region.redish, string.quoted.template punctuation.definition.string.begin, string.quoted.template punctuation.definition.string.end | #FF6B75 | — |
| entity.name.tag.backreference, entity.name.tag.named.group, entity.other.keyframe-offset.percentage, keyword.operator.positional.parameter, log.exception, log.exceptiontype, meta.named, punctuation.separator.pointer-access, source.ignore, storage.type.function.arrow, support.other.match | #FF828A | — |
| comment.git-status.header.remote, entity.name.lifetime.rust, keyword.control.rust, keyword.declaration.class.ruby, keyword.declaration.function.ruby, keyword.declaration.namespace.ruby, keyword.operator.misc.rust, keyword.operator.rest, keyword.other.template.begin, keyword.other.template.end, markup.deleted punctuation.definition.deleted, markup.deleted, region.orangish | #FF8170 | — |
| meta.object-literal.key, meta.objectliteral, meta.selector, parameters variable.function, variable.other.jsdoc, variable.other.object.property, variable.other.property, variable.parameter | #FF9D8F | — |
| comment.git-status.header.local, constant.other.elm, entity.name.operator.custom-literal.string, entity.name.section, entity.name.variable, invalid.deprecated, log.warning, markup.changed punctuation.definition.changed, markup.changed, markup.heading, markup.underline.link punctuation, meta.diff.git-diff.header, meta.function-call.arguments.python, region.yellowish, source.python, source.yaml meta.mapping.key string, storage.class.std.rust, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.type.core.rust, string.other.link.description.title, token.warn-token, variable | #FFA970 | — |
| constant.character.format.placeholder, constant.other.placeholder, constant.other.symbol, entity.other.attribute-name.id.css, markup.raw, meta.attribute-with-value.id string, meta.attribute.id.html string, meta.attribute, meta.property-list.css variable.other, source.git-show meta.diff.range.unified, source.jinja2 variable.other.jinja2, support.variable.magic | #FFC499 | — |
| entity.name.class, entity.name.type, entity.other.alias, region.greenish, source.vue support.class.component, support.class, support.type | #85F29D | — |
| entity.name, entity.other.animation-name.css, entity.other.attribute-name.class.css, entity.other.attribute-name.css, entity.other.attribute-name.parent-selector-suffix.css punctuation.definition.entity.css, entity.other.attribute-name.parent-selector-suffix.css, markup.inserted punctuation.definition.inserted, markup.inserted, markup.underline.link, meta.attribute-with-value.class string, meta.attribute.class.html string, meta.definition.function, meta.embedded.assembly, meta.function-call.generic.python, meta.instance.constructor, source.jinja2 variable.other.jinja2.block, string.other.ref, string.other.restructuredtext.ref, support.function, variable.function | #6BFFF5 | — |
| comment variable, source.css variable.other, source.css variable.scss, source.less variable.declaration.less, source.less variable.other.less, source.less variable.other, source.sass variable.other, source.sass variable.sass, source.scss variable.other, source.scss variable.sass, source.scss variable.scss, support.type.property-name | #A8F8FF | — |
| comment keyword.codetag.notation, entity.name.constant, entity.name.label, entity.name.operator.custom-literal.number, entity.other.git-status.hex, log.info, markup.inline.raw.string.markdown markup.underline.link.markdown, markup.underline.link, meta.preprocessor, meta.tag string.quoted.double.html markup.underline.link.markdown, meta.tag.block.any.html markup.underline.link.markdown, meta.type variable, region.bluish, source.git-show meta.diff.git-diff.header.extended.index.from-sha, source.git-show meta.diff.git-diff.header.extended.index.to-sha, source.git-show.commit.sha, storage.class.restructuredtext.ref, string, support.constant.core.rust, text.html.markdown meta.paragraph.markdown meta.tag markup.underline.link, token.info-token | #9098FF | — |
| constant.character.entity.named, log.date, log.time, meta.attribute-selector, property.value.dotenv, source.ini, string.unquoted.plain, support.other.escape.special | #A6B6FF | — |
| constant.character.escape, entity.name.section.group-title, entity.name.type.class.generic, entity.name.type.class.templated, entity.name.type.namespace.php, entity.other.attribute-name, entity.other.inherited-class, entity.other.pseudo-class, entity.other.pseudo-element, meta.at-rule.keyframes.header, meta.fstring, meta.function, meta.namespace.php entity.name.type.namespace.php, meta.property-value, meta.tag string.other.link.title.markdown, storage.modifier.package.java, storage.type, string.other.link.description.markdown, string.other.link.description.title.markdown, string.other.link.title.markdown, variable.parameter.keyframe-list | #C7CAFF | — |
| constant.other.set.regexp, entity.name.tag support.class.component, entity.name.tag.js.jsx support.class.component.js.jsx, entity.name.tag, meta.property-list, meta.property-name, punctuation.section.embedded entity.name.tag, region.purplish, storage, string.other.git-status.remote, string.other.link.description, string.other.link.title, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #B691FF | — |
| constant.numeric, log.debug, region.pinkish, token.debug-token | #D87BFF | — |
| constant.language, constant, entity.name.function.preprocessor, markup.inline.raw.markdown, markup.inline.raw.string.markdown string.other.link.title.markdown, markup.inline.raw.string.markdown, support.constant, variable.other.constant | #D9A8FF | — |
| keyword.operator, source.ruby variable.other.readwrite.class.ruby, source.ruby variable.other.readwrite.instance.ruby | #FF6BA4 | — |
| strong, markup.bold, comment, keyword.other.important | — | bold |
| emphasis, markup.italic, entity.name.type.class.generic, entity.name.type.class.templated, entity.other.attribute-name, entity.other.inherited-class, entity.other.pseudo-class, entity.other.pseudo-element, storage.modifier, storage.type, support.type, variable.language, variable.parameter.function.language.special.cls.python, variable.parameter.function.language.special.self.python | — | italic |
| underline, markup.underline | — | underline |
| strikethrough, markup.strikethrough | — | strikethrough |
| strong emphasis, emphasis strong, markup.bold markup.italic, markup.italic markup.bold | — | bold italic |
| strong underline, underline strong, markup.bold markup.underline, markup.underline markup.bold | — | bold underline |
| emphasis underline, underline emphasis, markup.italic markup.underline, markup.underline markup.italic | — | italic underline |
| strong strikethrough, strikethrough strong, markup.bold markup.strikethrough, markup.strikethrough markup.bold | — | bold strikethrough |
| emphasis strikethrough, strikethrough emphasis, markup.italic markup.strikethrough, markup.strikethrough markup.italic | — | italic strikethrough |
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}!`;
}