Colibri Theme
Publisher: famusovskyThemes in package: 1
A beautiful dark purple theme with lilac and lavender accents (based on the Colibri theme from the Helix editor)
A beautiful dark purple theme with lilac and lavender accents (based on the Colibri theme from the Helix editor)
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 | #697C81 | — |
| string, string.quoted, string.template, string.interpolated | #cccccc | — |
| constant.character.escape, string.regexp | #efba5d | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #E8DCA0 | — |
| constant, constant.language, constant.other | #ffffff | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier | #eccdba | — |
| keyword.control.directive, keyword.control.preprocessor, meta.preprocessor, punctuation.definition.directive | #dbbfef | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise | #dbbfef | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section, meta.brace | #a4a0e8 | — |
| variable, variable.other, variable.other.readwrite | #a4a0e8 | — |
| variable.parameter, variable.parameter.function | #a4a0e8 | — |
| variable.other.member, variable.other.property, variable.other.object.property, meta.object-literal.key | #ffffff | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #9ff28f | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.union, entity.name.interface, support.type, support.class | #ffffff | — |
| support.type.builtin, support.type.primitive, storage.type.builtin, storage.type.primitive, keyword.type | #ffffff | — |
| entity.name.function, meta.function-call, support.function | #ffffff | — |
| entity.name.function.macro, entity.name.function.preprocessor, support.function.macro | #dbbfef | — |
| support.function.builtin | #ffffff | — |
| entity.name.function.constructor, meta.method.declaration storage.type | #dbbfef | — |
| entity.name.namespace, entity.name.module, entity.name.package, support.other.namespace, meta.path | #dbbfef | — |
| entity.other.attribute-name, entity.name.function.decorator, meta.decorator, meta.annotation, storage.type.annotation | #dbbfef | — |
| entity.name.tag, punctuation.definition.tag | #eccdba | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml | #dbbfef | — |
| entity.name.label, punctuation.definition.label, storage.modifier.lifetime, entity.name.lifetime, punctuation.definition.lifetime | #efba5d | — |
| keyword.other.special-method, support.constant.property-value | #efba5d | — |
| markup.heading, markup.heading.setext, entity.name.section | #dbbfef | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.bold markup.italic, markup.italic markup.bold | — | bold italic |
| markup.strikethrough | — | strikethrough |
| markup.underline.link, string.other.link | #cccccc | underline |
| markup.link.text, string.other.link.title, string.other.link.description | #eccdba | — |
| markup.raw, markup.inline.raw, markup.fenced_code, fenced_code.block.language | #eccdba | — |
| markup.quote | #697C81 | italic |
| markup.list, punctuation.definition.list | #a4a0e8 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #35bf86 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #f22c86 | — |
| markup.changed, punctuation.definition.changed | #6F44F0 | — |
| support.type.property-name.json | #dbbfef | — |
| string.quoted.double.json | #cccccc | — |
| support.type.property-name.css, support.type.vendored.property-name | #a4a0e8 | — |
| support.constant.property-value.css, support.constant.font-name, meta.property-value.css | #ffffff | — |
| 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 | #dbbfef | — |
| keyword.other.unit.css, keyword.other.unit | #E8DCA0 | — |
| entity.name.tag.yaml | #dbbfef | — |
| keyword.key.toml, support.type.property-name.toml | #dbbfef | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #eccdba | — |
| invalid, invalid.illegal | #f47868 | — |
| invalid.deprecated | #697C81 | strikethrough |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #efba5d | — |
| entity.name.function.macro.rust, support.function.macro.rust | #dbbfef | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #dbbfef | — |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #9ff28f | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #eccdba | — |
| entity.name.package.go | #dbbfef | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell | #a4a0e8 | — |
| string.regexp, keyword.operator.quantifier.regexp, keyword.control.anchor.regexp | #efba5d | — |
| punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #dbbfef | — |
| keyword.other.sql, keyword.other.DML.sql | #eccdba | — |
| entity.name.function.target.makefile | #ffffff | — |
| variable.other.makefile | #a4a0e8 | — |
| keyword.other.special-method.dockerfile | #eccdba | — |
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}!`;
}