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 | #a89f8e | italic |
| comment.block.documentation | #a89f8e | italic |
| string, string.quoted | #97a878 | — |
| constant.numeric | #d6a278 | — |
| constant.language | #a08aac | — |
| constant.character.escape | #86b0b0 | — |
| constant.other.character.special | #c39a9e | — |
| variable | #e0d8c8 | — |
| punctuation | #756e60 | — |
| storage.modifier | #a08aac | italic |
| entity.name.class | #e0c89a | — |
| entity.name.label | #c39a9e | — |
| keyword.operator.logical | #a08aac | — |
| keyword.operator.arithmetic | #a0b0c8 | — |
| keyword.operator.assignment | #d6a278 | — |
| constant.character.numeric, constant.other.symbol | #b5b06a | — |
| meta.tag entity.name.tag, punctuation.definition.tag | #cf8a50 | — |
| support.type.property-name, support.type | #8a9cb8 | — |
| constant.other.color, support.constant.color.w3c | #c0c4c8 | — |
| storage.type | #a08aac | — |
| variable.other.property | #a0b0c8 | — |
| variable.other.readwrite | #e0d8c8 | — |
| invalid | #b9785f | underline |
| invalid.deprecated | #756e6080 | line-through |
| keyword.control.python, keyword.operator.logical.python, keyword.operator.python, storage.type.function.python, storage.type.class.python | #7a9a80 | — |
| entity.name.function.python, meta.function-call.python entity.name.function, support.function.python | #8cae92 | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #a08aac | italic |
| entity.name.type.class.python, support.type.python | #86b0b0 | — |
| variable.parameter.function.language.python | #c0c4c8 | italic |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #7a9a80 | italic |
| string.quoted.docstring.multi.python | #a89f8e | italic |
| meta.fstring.python constant.character | #86b0b0 | — |
| 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 | #d8b078 | — |
| entity.name.function.js, support.function.js, meta.function-call.js entity.name.function | #e2bc84 | — |
| entity.name.type.class.js, support.class.js | #e0c89a | — |
| variable.other.constant.js | #c0c4c8 | — |
| variable.language.this.js | #d8b078 | italic |
| entity.name.tag.js, support.class.component.js | #cf8a50 | — |
| string.template.js, punctuation.definition.template-expression | #97a878 | — |
| 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 | #d8b078 | — |
| entity.name.function.ts, entity.name.function.tsx, support.function.ts | #e2bc84 | — |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.interface.ts, entity.name.type.alias.ts, entity.name.type.enum.ts | #86b0b0 | — |
| keyword.operator.type.ts, keyword.operator.type.tsx, keyword.control.as.ts, keyword.control.type.ts | #d8b078 | italic |
| support.type.builtin.ts, support.type.primitive.ts | #8a9cb8 | — |
| entity.name.type.class.ts, entity.name.type.class.tsx | #e0c89a | — |
| variable.language.this.ts, variable.language.this.tsx | #d8b078 | italic |
| entity.name.tag.html, entity.name.tag, punctuation.definition.tag | #cf8a50 | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #e0c89a | italic |
| string.quoted.double.html, string.quoted.single.html, meta.attribute string | #97a878 | — |
| comment.block.html | #a89f8e | italic |
| entity.name.tag.structure.any.html, entity.name.tag.block.any.html | #cf8a50 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css | #8a9cb8 | — |
| support.constant.property-value.css, meta.property-value.css, support.constant.color.css | #c0c4c8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #e2bc84 | — |
| entity.name.tag.css, entity.name.tag.scss | #cf8a50 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss | #a08aac | — |
| entity.other.attribute-name.pseudo-class.css | #86b0b0 | italic |
| constant.numeric.css, keyword.other.unit.css | #d6a278 | — |
| variable.scss, variable.css | #7a9a80 | — |
| support.type.property-name.json, string.json support.type.property-name | #8a9cb8 | — |
| string.quoted.double.json | #c0c4c8 | — |
| constant.numeric.json | #d6a278 | — |
| constant.language.json | #a08aac | — |
| punctuation.support.type.property-name.json | #756e60 | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.DML.II.sql, storage.type.sql | #a08aac | — |
| entity.name.function.sql, support.function.sql | #aaa0b4 | — |
| constant.other.table-name.sql | #c0c4c8 | — |
| keyword.operator.sql | #a08aac | — |
| string.quoted.sql | #97a878 | — |
| keyword.control.rust, keyword.other.rust, storage.type.rust, keyword.other.fn.rust | #cf8a50 | — |
| entity.name.function.rust, meta.function.call.rust entity.name.function | #e0c89a | — |
| entity.name.type.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.trait.rust | #d8b078 | — |
| entity.name.lifetime.rust | #7a9a80 | italic |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #c78b7a | — |
| entity.name.namespace.rust, entity.name.module.rust | #8a9cb8 | — |
| support.macro.rust, entity.name.function.macro.rust | #86b0b0 | — |
| storage.modifier.rust | #a08aac | 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 | #86b0b0 | — |
| entity.name.function.go, support.function.go | #96b8b4 | — |
| entity.name.type.go | #8a9cb8 | — |
| storage.type.go | #7a9a80 | — |
| entity.name.package.go | #c0c4c8 | — |
| storage.type.error.go | #c78b7a | — |
| keyword.operator.go, keyword.operator.assignment.go, keyword.operator.channel.go | #86b0b0 | — |
| heading.1.markdown entity.name | #d8b078 | bold |
| heading.2.markdown entity.name | #e2bc84 | — |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #e0c89a | — |
| markup.bold.markdown | #e0d8c8 | bold |
| markup.italic.markdown | #e0d8c8 | italic |
| markup.inline.raw.string.markdown | #7a9a80 | — |
| string.other.link.title.markdown | #8a9cb8 | — |
| markup.underline.link.markdown | #756e60 | — |
| markup.highlight.markdown, markup.other.strikethrough.markdown | #b5b06a | — |
| markup.inserted | #b5b06a | — |
| markup.deleted | #c78b7a | — |
| markup.changed | #d8b078 | — |
| markup.quote.markdown | #8a9cb8 | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #d8b078 | — |
| markup.inline.raw.string.markdown | #7a9a80 | — |
| meta.separator.markdown | #756e60 | bold |
| punctuation.definition.heading.markdown | #d8b078 | bold |
| entity.name.tag.yaml, keyword.key.toml | #8a9cb8 | — |
| string.unquoted.plain.out.yaml, string.quoted.yaml | #c0c4c8 | — |
| constant.language.boolean.yaml, constant.language.boolean.toml | #a08aac | — |
| punctuation.definition.block.sequence.item.yaml | #d8b078 | — |
| keyword.control.shell, storage.type.function.shell | #d8b078 | — |
| variable.other.shell, punctuation.definition.variable.shell | #7a9a80 | — |
| string.quoted.double.shell, string.quoted.single.shell | #97a878 | — |
| support.function.builtin.shell | #e2bc84 | — |
| keyword.other.special-method.dockerfile | #cf8a50 | bold |
| keyword.control.c, keyword.control.cpp, keyword.control.cs, storage.type.c, storage.type.cpp, storage.type.cs | #8a9cb8 | — |
| entity.name.function.c, entity.name.function.cpp, entity.name.function.cs | #aaa0b4 | — |
| entity.name.type.c, entity.name.type.cpp, entity.name.type.cs, entity.name.type.class.cs, entity.name.type.struct.cs | #e0c89a | — |
| keyword.operator.preprocessor.c, storage.type.preprocessor.c | #cf8a50 | bold |
| constant.language.c, constant.language.cpp | #a08aac | — |
| variable.language.this.cs | #7a9a80 | italic |
| keyword.control.namespace.cs | #a08aac | — |
| entity.name.namespace.cs | #c0c4c8 | — |
| keyword.control.java, keyword.operator.java, storage.type.java, storage.modifier.java | #d8b078 | — |
| entity.name.function.java, support.function.java | #e2bc84 | — |
| entity.name.type.java, entity.name.type.class.java, entity.name.type.enum.java | #e0c89a | — |
| constant.other.key.java | #a08aac | — |
| variable.language.this.java | #d8b078 | italic |
| storage.type.annotation.java | #c39a9e | italic |
| keyword.control.kotlin, storage.type.kotlin, storage.modifier.kotlin | #a08aac | — |
| entity.name.function.kotlin | #96b8b4 | — |
| entity.name.type.class.kotlin, entity.name.type.kotlin | #c0c4c8 | — |
| keyword.control.lambda.kotlin | #d8b078 | italic |
| keyword.control.swift, keyword.declaration.swift, storage.type.swift | #8a9cb8 | — |
| entity.name.function.swift | #86b0b0 | — |
| entity.name.type.class.swift, entity.name.type.struct.swift, entity.name.type.enum.swift | #c0c4c8 | — |
| variable.other.constant.swift | #a0b0c8 | — |
| keyword.operator.swift | #d6a278 | — |
| keyword.control.php, keyword.other.php, storage.type.php | #a08aac | — |
| entity.name.function.php, support.function.php | #e2bc84 | — |
| variable.other.php | #d6a278 | — |
| entity.name.type.class.php | #e0c89a | — |
| keyword.other.new.php | #7a9a80 | — |
| keyword.control.ruby, keyword.other.ruby, keyword.modifier.ruby | #c78b7a | — |
| entity.name.function.ruby, entity.name.function.definition.ruby | #d8b078 | — |
| entity.name.type.class.ruby, entity.name.type.module.ruby | #e0c89a | — |
| variable.language.ruby | #c78b7a | italic |
| entity.name.function.method.ruby, support.function.ruby | #e2bc84 | — |
| constant.other.symbol.ruby | #b5b06a | — |
| keyword.control.lua, keyword.operator.lua | #d8b078 | — |
| entity.name.function.lua | #e2bc84 | — |
| entity.name.type.lua | #8a9cb8 | — |
| variable.other.global.lua | #7a9a80 | — |
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}!`;
}