Zenbones Redux
Publisher: GotchacodeThemes in package: 2
A contrast-based color theme inspired by the Neovim Zenbones theme. Highlights code using contrasts and font variations, not colors.
A contrast-based color theme inspired by the Neovim Zenbones theme. Highlights code using contrasts and font variations, not 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, punctuation.definition.comment | #524B44 | italic |
| string, string.quoted, string.template, string.interpolated, punctuation.definition.string | #8D9599 | italic |
| constant.character.escape, string.regexp | #B279A7 | |
| constant.numeric, constant.language, constant.character, constant.other | #8D9599 | |
| constant.language.boolean | #B4BDC3 | italic |
| keyword, storage, storage.type, storage.modifier | #B4BDC3 | bold |
| keyword.operator, punctuation.accessor, punctuation.separator | #6E635B | |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from | #B4BDC3 | bold |
| entity.name.function, meta.function-call, support.function | #B4BDC3 | |
| entity.name.function, meta.definition.function | #B4BDC3 | bold |
| variable, variable.other, variable.other.readwrite, variable.parameter, support.variable | #9DA6AC | |
| variable.language | #B4BDC3 | italic |
| variable.other.property, variable.other.object.property, support.type.property-name | #9DA6AC | |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class, entity.name.type.class | #725F52 | |
| entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.module | #725F52 | |
| entity.name.type.parameter | #725F52 | italic |
| entity.other.attribute-name, support.other | #939CA2 | bold |
| punctuation.definition.tag, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.section, meta.brace | #6E635B | |
| punctuation.terminator, punctuation.separator.comma | #6E635B | |
| entity.name.tag, support.class.component | #B4BDC3 | bold |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.js | #939CA2 | italic |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #B4BDC3 | bold |
| support.type.property-name.css, support.type.vendored.property-name.css | #9DA6AC | |
| support.constant.property-value.css, constant.numeric.css, constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css | #8D9599 | |
| keyword.other.unit.css | #8D9599 | |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading, markup.heading.setext, punctuation.definition.heading.markdown | #B4BDC3 | bold |
| markup.bold, punctuation.definition.bold | #B4BDC3 | bold |
| markup.italic, punctuation.definition.italic | #B4BDC3 | italic |
| markup.underline.link, string.other.link, markup.underline.link.markdown | #6099C0 | |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #8D9599 | |
| markup.quote.markdown | #524B44 | italic |
| markup.list, punctuation.definition.list.begin.markdown | #939CA2 | |
| markup.inserted, punctuation.definition.inserted | #819B69 | |
| markup.deleted, punctuation.definition.deleted | #DE6E7C | |
| markup.changed, punctuation.definition.changed | #6099C0 | |
| support.type.property-name.json | #9DA6AC | |
| string.quoted.double.json | #8D9599 | italic |
| entity.name.tag.yaml | #9DA6AC | |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #B279A7 | |
| meta.decorator, punctuation.decorator, storage.type.annotation | #B279A7 | |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution | #939CA2 | |
| invalid, invalid.illegal | #DE6E7C | |
| invalid.deprecated | #737A80 | strikethrough |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #9DA6AC | |
| entity.name.package.go, entity.name.import.go | #939CA2 | |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #939CA2 | italic |
| support.function.magic.python | #939CA2 | bold |
| entity.name.function.decorator.python | #B279A7 |
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}!`;
}