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 |
|---|---|---|
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json | #A78BFA | bold |
| entity.name.function, support.function | #FFC799 | — |
| storage.type.function, keyword.function, keyword.declaration.function, storage.type.function.go | #d1a3ff | — |
| comment | #6B7280 | — |
| punctuation.definition.comment | #6B728080 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #f871c7 | bold |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #f871c7 | — |
| storage.type, storage.modifier | #be84f7 | — |
| variable.other.property, variable.object.property, meta.object-literal.key | #A78BFA | — |
| variable.other | #E5E7EB | — |
| string | #7DD3FC | — |
| constant.numeric | #F9A8D4 | — |
| entity.name.type, support.class | #C4B5FD | — |
| variable, identifier | #E5E7EB | — |
| constant.language.boolean, constant.language, constant.language.null | #F9A8D4 | — |
| string.regexp, constant.character.escape | #A0A0A0 | — |
| entity.name.tag, meta.tag, meta.tag entity.name.tag | #A78BFA | — |
| entity.other.attribute-name.class, entity.other.class, support.type.property-name.css | #C4B5FD | — |
| support.type.property-name.css, meta.property-name.css | #7DD3FC | — |
| punctuation, operator | #9CA3AF | — |
| keyword.operator, punctuation.definition.operator | #6B7280 | — |
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}!`;
}