Vybrix
Publisher: aadityanarayanThemes in package: 12
Luxury matte coding experience. Ten richly crafted premium editions, fluent modern UI, semantic language-aware coloring, and a bespoke icon pack.
Luxury matte coding experience. Ten richly crafted premium editions, fluent modern UI, semantic language-aware coloring, and a bespoke icon pack.
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 | #9aa69c | italic |
| comment.block.documentation | #9aa69c | italic |
| string, string.quoted | #98b478 | — |
| constant.numeric | #c0a078 | — |
| constant.language | #9488ac | — |
| constant.character.escape | #74b4b8 | — |
| constant.other.character.special | #b0989c | — |
| variable | #d8e0d8 | — |
| punctuation | #6d766e | — |
| storage.modifier | #9488ac | italic |
| entity.name.class | #cfc49c | — |
| entity.name.label | #b0989c | — |
| keyword.operator.logical | #9488ac | — |
| keyword.operator.arithmetic | #98b0c4 | — |
| keyword.operator.assignment | #c0a078 | — |
| constant.character.numeric, constant.other.symbol | #aeb868 | — |
| meta.tag entity.name.tag, punctuation.definition.tag | #bc9058 | — |
| support.type.property-name, support.type | #78a0b4 | — |
| constant.other.color, support.constant.color.w3c | #b4c4c8 | — |
| storage.type | #9488ac | — |
| variable.other.property | #98b0c4 | — |
| variable.other.readwrite | #d8e0d8 | — |
| invalid | #ae7a68 | underline |
| invalid.deprecated | #6d766e80 | line-through |
| keyword.control.python, keyword.operator.logical.python, keyword.operator.python, storage.type.function.python, storage.type.class.python | #6ea58e | — |
| entity.name.function.python, meta.function-call.python entity.name.function, support.function.python | #84bc9c | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #9488ac | italic |
| entity.name.type.class.python, support.type.python | #74b4b8 | — |
| variable.parameter.function.language.python | #b4c4c8 | italic |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #6ea58e | italic |
| string.quoted.docstring.multi.python | #9aa69c | italic |
| meta.fstring.python constant.character | #74b4b8 | — |
| keyword.control.js, keyword.control.flow.js, keyword.operator.js, keyword.control.conditional.js, keyword.control.loop.js, storage.type.js, keyword.control.import.js, keyword.control.export.js, keyword.control.from.js | #ceb070 | — |
| entity.name.function.js, support.function.js, meta.function-call.js entity.name.function | #d9c080 | — |
| entity.name.type.class.js, support.class.js | #cfc49c | — |
| variable.other.constant.js | #b4c4c8 | — |
| variable.language.this.js | #ceb070 | italic |
| entity.name.tag.js, support.class.component.js | #bc9058 | — |
| string.template.js, punctuation.definition.template-expression | #98b478 | — |
| keyword.control.ts, keyword.control.flow.ts, keyword.operator.ts, storage.type.ts, keyword.control.import.ts, keyword.control.export.ts, keyword.control.tsx, storage.type.tsx | #ceb070 | — |
| entity.name.function.ts, entity.name.function.tsx, support.function.ts | #d9c080 | — |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.interface.ts, entity.name.type.alias.ts, entity.name.type.enum.ts | #74b4b8 | — |
| keyword.operator.type.ts, keyword.operator.type.tsx, keyword.control.as.ts, keyword.control.type.ts | #ceb070 | italic |
| support.type.builtin.ts, support.type.primitive.ts | #78a0b4 | — |
| entity.name.type.class.ts, entity.name.type.class.tsx | #cfc49c | — |
| variable.language.this.ts, variable.language.this.tsx | #ceb070 | italic |
| entity.name.tag.html, entity.name.tag, punctuation.definition.tag | #bc9058 | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #cfc49c | italic |
| string.quoted.double.html, string.quoted.single.html, meta.attribute string | #98b478 | — |
| comment.block.html | #9aa69c | italic |
| entity.name.tag.structure.any.html, entity.name.tag.block.any.html | #bc9058 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css | #78a0b4 | — |
| support.constant.property-value.css, meta.property-value.css, support.constant.color.css | #b4c4c8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #d9c080 | — |
| entity.name.tag.css, entity.name.tag.scss | #bc9058 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss | #9488ac | — |
| entity.other.attribute-name.pseudo-class.css | #74b4b8 | italic |
| constant.numeric.css, keyword.other.unit.css | #c0a078 | — |
| variable.scss, variable.css | #6ea58e | — |
| support.type.property-name.json, string.json support.type.property-name | #78a0b4 | — |
| string.quoted.double.json | #b4c4c8 | — |
| constant.numeric.json | #c0a078 | — |
| constant.language.json | #9488ac | — |
| punctuation.support.type.property-name.json | #6d766e | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.DML.II.sql, storage.type.sql | #9488ac | — |
| entity.name.function.sql, support.function.sql | #a4a0b8 | — |
| constant.other.table-name.sql | #b4c4c8 | — |
| keyword.operator.sql | #9488ac | — |
| string.quoted.sql | #98b478 | — |
| keyword.control.rust, keyword.other.rust, storage.type.rust, keyword.other.fn.rust | #bc9058 | — |
| entity.name.function.rust, meta.function.call.rust entity.name.function | #cfc49c | — |
| entity.name.type.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.trait.rust | #ceb070 | — |
| entity.name.lifetime.rust | #6ea58e | italic |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #b08274 | — |
| entity.name.namespace.rust, entity.name.module.rust | #78a0b4 | — |
| support.macro.rust, entity.name.function.macro.rust | #74b4b8 | — |
| storage.modifier.rust | #9488ac | italic |
| keyword.control.go, keyword.function.go, keyword.package.go, keyword.import.go, keyword.type.go, keyword.var.go, keyword.const.go, keyword.struct.go, keyword.interface.go, keyword.map.go, keyword.channel.go | #74b4b8 | — |
| entity.name.function.go, support.function.go | #86c0b8 | — |
| entity.name.type.go | #78a0b4 | — |
| storage.type.go | #6ea58e | — |
| entity.name.package.go | #b4c4c8 | — |
| storage.type.error.go | #b08274 | — |
| keyword.operator.go, keyword.operator.assignment.go, keyword.operator.channel.go | #74b4b8 | — |
| heading.1.markdown entity.name | #ceb070 | bold |
| heading.2.markdown entity.name | #d9c080 | — |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #cfc49c | — |
| markup.bold.markdown | #d8e0d8 | bold |
| markup.italic.markdown | #d8e0d8 | italic |
| markup.inline.raw.string.markdown | #6ea58e | — |
| string.other.link.title.markdown | #78a0b4 | — |
| markup.underline.link.markdown | #6d766e | — |
| markup.highlight.markdown, markup.other.strikethrough.markdown | #aeb868 | — |
| markup.inserted | #aeb868 | — |
| markup.deleted | #b08274 | — |
| markup.changed | #ceb070 | — |
| markup.quote.markdown | #78a0b4 | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #ceb070 | — |
| markup.inline.raw.string.markdown | #6ea58e | — |
| meta.separator.markdown | #6d766e | bold |
| punctuation.definition.heading.markdown | #ceb070 | bold |
| entity.name.tag.yaml, keyword.key.toml | #78a0b4 | — |
| string.unquoted.plain.out.yaml, string.quoted.yaml | #b4c4c8 | — |
| constant.language.boolean.yaml, constant.language.boolean.toml | #9488ac | — |
| punctuation.definition.block.sequence.item.yaml | #ceb070 | — |
| keyword.control.shell, storage.type.function.shell | #ceb070 | — |
| variable.other.shell, punctuation.definition.variable.shell | #6ea58e | — |
| string.quoted.double.shell, string.quoted.single.shell | #98b478 | — |
| support.function.builtin.shell | #d9c080 | — |
| keyword.other.special-method.dockerfile | #bc9058 | bold |
| keyword.control.c, keyword.control.cpp, keyword.control.cs, storage.type.c, storage.type.cpp, storage.type.cs | #78a0b4 | — |
| entity.name.function.c, entity.name.function.cpp, entity.name.function.cs | #a4a0b8 | — |
| entity.name.type.c, entity.name.type.cpp, entity.name.type.cs, entity.name.type.class.cs, entity.name.type.struct.cs | #cfc49c | — |
| keyword.operator.preprocessor.c, storage.type.preprocessor.c | #bc9058 | bold |
| constant.language.c, constant.language.cpp | #9488ac | — |
| variable.language.this.cs | #6ea58e | italic |
| keyword.control.namespace.cs | #9488ac | — |
| entity.name.namespace.cs | #b4c4c8 | — |
| keyword.control.java, keyword.operator.java, storage.type.java, storage.modifier.java | #ceb070 | — |
| entity.name.function.java, support.function.java | #d9c080 | — |
| entity.name.type.java, entity.name.type.class.java, entity.name.type.enum.java | #cfc49c | — |
| constant.other.key.java | #9488ac | — |
| variable.language.this.java | #ceb070 | italic |
| storage.type.annotation.java | #b0989c | italic |
| keyword.control.kotlin, storage.type.kotlin, storage.modifier.kotlin | #9488ac | — |
| entity.name.function.kotlin | #86c0b8 | — |
| entity.name.type.class.kotlin, entity.name.type.kotlin | #b4c4c8 | — |
| keyword.control.lambda.kotlin | #ceb070 | italic |
| keyword.control.swift, keyword.declaration.swift, storage.type.swift | #78a0b4 | — |
| entity.name.function.swift | #74b4b8 | — |
| entity.name.type.class.swift, entity.name.type.struct.swift, entity.name.type.enum.swift | #b4c4c8 | — |
| variable.other.constant.swift | #98b0c4 | — |
| keyword.operator.swift | #c0a078 | — |
| keyword.control.php, keyword.other.php, storage.type.php | #9488ac | — |
| entity.name.function.php, support.function.php | #d9c080 | — |
| variable.other.php | #c0a078 | — |
| entity.name.type.class.php | #cfc49c | — |
| keyword.other.new.php | #6ea58e | — |
| keyword.control.ruby, keyword.other.ruby, keyword.modifier.ruby | #b08274 | — |
| entity.name.function.ruby, entity.name.function.definition.ruby | #ceb070 | — |
| entity.name.type.class.ruby, entity.name.type.module.ruby | #cfc49c | — |
| variable.language.ruby | #b08274 | italic |
| entity.name.function.method.ruby, support.function.ruby | #d9c080 | — |
| constant.other.symbol.ruby | #aeb868 | — |
| keyword.control.lua, keyword.operator.lua | #ceb070 | — |
| entity.name.function.lua | #d9c080 | — |
| entity.name.type.lua | #78a0b4 | — |
| variable.other.global.lua | #6ea58e | — |
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}!`;
}