Vybrix
Publisher: aadityanarayanThemes in package: 10
Luxury matte coding experience. Ten premium editions with semantic language-aware coloring and Deep Focus Mode.
Luxury matte coding experience. Ten premium editions with semantic language-aware coloring and Deep Focus Mode.
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 | #9e9b94 | italic |
| comment.block.documentation | #9e9b94 | italic |
| string, string.quoted | #88a888 | — |
| constant.numeric | #c0a080 | — |
| constant.language | #9b85b5 | — |
| constant.character.escape | #72b5c0 | — |
| variable | #d4d2cd | — |
| punctuation | #6e6b65 | — |
| storage.modifier | #9b85b5 | italic |
| keyword.control.python, keyword.operator.logical.python, keyword.operator.python, storage.type.function.python, storage.type.class.python | #6b9e9e | — |
| entity.name.function.python, meta.function-call.python entity.name.function, support.function.python | #7eb89e | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #9b85b5 | italic |
| entity.name.type.class.python, support.type.python | #72b5c0 | — |
| variable.parameter.function.language.python | #b8c4d0 | italic |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #6b9e9e | italic |
| string.quoted.docstring.multi.python | #9e9b94 | italic |
| meta.fstring.python constant.character | #72b5c0 | — |
| 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 | #c9a86c | — |
| entity.name.function.js, support.function.js, meta.function-call.js entity.name.function | #d4b87a | — |
| entity.name.type.class.js, support.class.js | #d4c4a0 | — |
| variable.other.constant.js | #b8c4d0 | — |
| variable.language.this.js | #c9a86c | italic |
| entity.name.tag.js, support.class.component.js | #c08a60 | — |
| string.template.js, punctuation.definition.template-expression | #88a888 | — |
| 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 | #c9a86c | — |
| entity.name.function.ts, entity.name.function.tsx, support.function.ts | #d4b87a | — |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.interface.ts, entity.name.type.alias.ts, entity.name.type.enum.ts | #72b5c0 | — |
| keyword.operator.type.ts, keyword.operator.type.tsx, keyword.control.as.ts, keyword.control.type.ts | #c9a86c | italic |
| support.type.builtin.ts, support.type.primitive.ts | #7a9bb5 | — |
| entity.name.type.class.ts, entity.name.type.class.tsx | #d4c4a0 | — |
| variable.language.this.ts, variable.language.this.tsx | #c9a86c | italic |
| entity.name.tag.html, entity.name.tag, punctuation.definition.tag | #c08a60 | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #d4c4a0 | italic |
| string.quoted.double.html, string.quoted.single.html, meta.attribute string | #88a888 | — |
| comment.block.html | #9e9b94 | italic |
| entity.name.tag.structure.any.html, entity.name.tag.block.any.html | #c08a60 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css | #7a9bb5 | — |
| support.constant.property-value.css, meta.property-value.css, support.constant.color.css | #b8c4d0 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #d4b87a | — |
| entity.name.tag.css, entity.name.tag.scss | #c08a60 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss | #9b85b5 | — |
| entity.other.attribute-name.pseudo-class.css | #72b5c0 | italic |
| constant.numeric.css, keyword.other.unit.css | #c0a080 | — |
| variable.scss, variable.css | #6b9e9e | — |
| support.type.property-name.json, string.json support.type.property-name | #7a9bb5 | — |
| string.quoted.double.json | #b8c4d0 | — |
| constant.numeric.json | #c0a080 | — |
| constant.language.json | #9b85b5 | — |
| punctuation.support.type.property-name.json | #6e6b65 | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.DML.II.sql, storage.type.sql | #9b85b5 | — |
| entity.name.function.sql, support.function.sql | #a8a4b8 | — |
| constant.other.table-name.sql | #b8c4d0 | — |
| keyword.operator.sql | #9b85b5 | — |
| string.quoted.sql | #88a888 | — |
| keyword.control.rust, keyword.other.rust, storage.type.rust, keyword.other.fn.rust | #c08a60 | — |
| entity.name.function.rust, meta.function.call.rust entity.name.function | #d4c4a0 | — |
| entity.name.type.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.trait.rust | #c9a86c | — |
| entity.name.lifetime.rust | #6b9e9e | italic |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #c08888 | — |
| entity.name.namespace.rust, entity.name.module.rust | #7a9bb5 | — |
| support.macro.rust, entity.name.function.macro.rust | #72b5c0 | — |
| storage.modifier.rust | #9b85b5 | 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 | #72b5c0 | — |
| entity.name.function.go, support.function.go | #80c5c5 | — |
| entity.name.type.go | #7a9bb5 | — |
| storage.type.go | #6b9e9e | — |
| entity.name.package.go | #b8c4d0 | — |
| storage.type.error.go | #c08888 | — |
| keyword.operator.go, keyword.operator.assignment.go, keyword.operator.channel.go | #72b5c0 | — |
| heading.1.markdown entity.name | #c9a86c | bold |
| heading.2.markdown entity.name | #d4b87a | — |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #d4c4a0 | — |
| markup.bold.markdown | #d4d2cd | bold |
| markup.italic.markdown | #d4d2cd | italic |
| markup.inline.raw.string.markdown | #6b9e9e | — |
| string.other.link.title.markdown | #7a9bb5 | — |
| markup.underline.link.markdown | #6e6b65 | — |
| entity.name.tag.yaml, keyword.key.toml | #7a9bb5 | — |
| string.unquoted.plain.out.yaml, string.quoted.yaml | #b8c4d0 | — |
| constant.language.boolean.yaml, constant.language.boolean.toml | #9b85b5 | — |
| punctuation.definition.block.sequence.item.yaml | #c9a86c | — |
| keyword.control.shell, storage.type.function.shell | #c9a86c | — |
| variable.other.shell, punctuation.definition.variable.shell | #6b9e9e | — |
| string.quoted.double.shell, string.quoted.single.shell | #88a888 | — |
| support.function.builtin.shell | #d4b87a | — |
| keyword.other.special-method.dockerfile | #c08a60 | bold |
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}!`;
}