Vitesse Theme QB
Publisher: ZhengqbbbThemes in package: 2
fork vitesse theme
fork vitesse 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 |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #637777 | — |
| delimiter, delimiter.bracket, meta.tag.inline.any.html, meta.tag.block.any.html, meta.tag.other.html, punctuation.terminator.statement.js, punctuation.terminator.statement.ts | #858585 | — |
| number, constant.numeric, constant.language.boolean, constant.language.undefined.js, constant.language.null.js, constant.language.undefined.ts, constant.language.null.ts, support.type.primitive.ts, support.type.builtin.ts, keyword.operator.glob.shell | #f5c468f6 | — |
| meta.template.expression.js, string.template.js, meta.template.expression.ts, string.template.ts, string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition, constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, string.quoted, string, punctuation.definition.string, string punctuation.section.embedded source | #98c379f8 | — |
| constant, meta.brace, entity.name.constant, variable.language, meta.definition.variable, support.constant, punctuation.definition.list.begin.markdown | #d4976c | — |
| punctuation.definition.variable.shell, meta.expression.assignment.shell, variable.parameter.positional.all.shell, variable.parameter.positional.shell, variable.other.normal.shell, variable.other.special.shell, variable.other.bracket.shell, variable.other.positional.shell, variable.other.loop.shell, support.function.builtin.shell, variable.other.constant, variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.object.js, variable.other.object.ts, variable.parameter.js, variable.parameter.ts | #e49c8e | — |
| attribute.value | #d89487 | — |
| constant, meta.brace, entity.name.constant, variable.language, meta.definition.variable, support.constant, punctuation.definition.list.begin.markdown | #d4976c | — |
| entity.name.type | #4ebcddec | — |
| entity.name.tag, tag.html | #429988 | — |
| entity.name.function | #82AAFF | — |
| support | #7aa0f3 | — |
| keyword, storage, storage.type, keyword.operator, string.unquoted.herestring.shell, punctuation.definition.string.heredoc.shell, punctuation.definition.string.heredoc.delimiter.shell | #c48affea | — |
| storage.modifier.package, storage.modifier.import, storage.type.java, string source, markup.italic, markup.bold, entity, entity.name, string.unquoted.argument.shell, variable.other.assignment.shell, keyword.operator.assignment.shell, keyword.operator.assignment.tsx, constant.numeric.decimal.shell, constant.other.option, constant.language.false.shell, constant.language.true.shell, string.regexp.unquoted.shell | #dbd7ca | — |
| support.type.vendored.property-name.css | #ee9622 | — |
| support.type.property-name.css, entity.name.tag.css, support.function.builtin.shell | #20d4bc | — |
| keyword.control.shell, keyword.control.awk, keyword.other.command.awk, keyword.operator.list.shell, keyword.control.then.shell, keyword.control.else.shell, keyword.control.while.shell, keyword.control.do.shell, keyword.control.done.shell, keyword.control.if.shell, keyword.control.elif.shell, keyword.control.else.shell, keyword.control.fi.shell, keyword.control.return.shell, keyword.control.continue.shell, keyword.control.break.shell, keyword.control.case.shell, keyword.control.in.shell, keyword.control.esac.shell | #e06c76f3 | — |
| meta.property-name, entity.other.attribute-name, meta.object-literal.key.js, meta.object-literal.key.ts, variable.other.property.js, variable.other.property.ts, variable.other.property.vue, support.variable.property, attribute.name | #da883bf8 | — |
| variable, support.variable, variable.other.readwrite.js, variable.other.readwrite.ts, string variable, identifier, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, meta.template.expression.ts, meta.template.expression.js | #E49C8E | — |
| namespace | #db889a | — |
| punctuation.separator.statement.and.shell, keyword.operator.expansion.shell, keyword.operator.logical.shell, keyword.operator.redirect.shell, keyword.operator.pipe.shell, keyword.operator.arithmetic.awk, keyword.operator.boolean.awk, keyword.operator.trinary.awk, keyword.operator.comparison.awk, keyword.operator.assignment.awk | #39bed6 | — |
| carriage-return | #24292e | italic underline |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented, message.error, brackethighlighter.unmatched | #f08a96 | — |
| source.regexp, string.regexp | #c4704f | — |
| string.regexp constant.character.escape | #e6cc77 | — |
| string.regexp, string.regexp keyword.other | #5ca7e4 | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, variable.other.readwrite.js, variable.other.readwrite.ts, storage.type, source.css, string.interpolated.dollar.shell | — | |
| keyword.other.unit | #7ec7e4 | — |
| meta.module-reference, markup.quote, markup.raw | #efd6d1 | — |
| markup.heading, markup.heading entity.name | #429988 | bold |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #429988 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85e89d | — |
| markup.changed, punctuation.definition.changed | #f4c3c4 | — |
| markup.ignored, markup.untracked | #2f363d | — |
| support.type.property-name.json | #47a0bb | — |
| support.constant.json | #cf8e7e | — |
| meta.structure.dictionary.value.json string.quoted.double | #cf8e7e | — |
| string.quoted.double.json punctuation.definition.string.json | #25504b | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #71c07c | — |
| meta.diff.range | #b392f0 | bold |
| meta.diff.header, meta.output | #79b8ff | — |
| meta.separator | #79b8ff | bold |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote, string.interpolated.dollar.shell | #d1d5da | — |
| markup.underline.link.markdown | #dedcd590 | underline |
| type.identifier | #5eaab5 | — |
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}!`;
}