Vesper AMBS
Publisher: Rocketseat AMBSThemes in package: 4
Based on the Vesper Theme from raunofreiberg, with a little more color and a new identity
Based on the Vesper Theme from raunofreiberg, with a little more color and a new identity
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 | #5C6370 | italic |
| keyword, storage.type, storage.modifier, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #82AAFF | bold |
| string | #ECC48D | — |
| constant.numeric | #F78C6C | bold |
| entity.name.function, support.function | #C3E88D | bold underline |
| variable, identifier, variable.other, variable.other.property, variable.object.property, meta.object-literal.key | #E6E6E6 | — |
| entity.name.type, support.class | #B392F0 | — |
| invalid | #FFFFFF | underline |
| constant.language.boolean, constant.language, constant.language.null | #F78C6C | — |
| string.regexp, constant.character.escape | #ECC48D | — |
| entity.name.tag, meta.tag, meta.tag entity.name.tag | #82AAFF | — |
| entity.other.attribute-name.class, entity.other.class, support.type.property-name.css | #B392F0 | — |
| support.type.property-name.css, meta.property-name.css | #C3E88D | — |
| punctuation, operator, keyword.operator, punctuation.definition.operator | #5C6370 | — |
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json | #E6E6E6 | 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}!`;
}