Vibe Theme
Publisher: Hector MendozaThemes in package: 8
A modern theme for devs who keep looking for good, fancy but not that fancy themes
A modern theme for devs who keep looking for good, fancy but not that fancy themes
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 | #3D3554 | italic |
| variable, string constant.other.placeholder | #E8E0FF | — |
| invalid, invalid.illegal | #F87171 | — |
| keyword, storage.type, storage.modifier | #C084FC | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #F9A8D4 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FBCFE8 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #F9A8D4 | — |
| meta.block variable.other | #FBCFE8 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #93C5FD | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #86EFAC | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FDE68A | — |
| support.type | #E9D5FF | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #E9D5FF | — |
| entity.other.attribute-name | #C084FC | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FDE68A | italic |
| entity.other.attribute-name.class | #FDE68A | — |
| markup.inserted | #86EFAC | — |
| markup.deleted | #F87171 | — |
| markup.changed | #C084FC | — |
| string.regexp | #F9A8D4 | — |
| constant.character.escape | #F9A8D4 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #F9A8D4 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C084FC | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F9A8D4 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #86EFAC | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C084FC | — |
| markup.bold, markup.bold string | #FBCFE8 | bold |
| markup.italic | #FBCFE8 | italic |
| string.other.link.title.markdown | #F9A8D4 | — |
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}!`;
}