Blue & Rose
Publisher: restardThemes in package: 2
A playful, vintage-inspired theme with cobalt blue, turquoise, cream and roses. Includes Light, Dark, floral file icons and product icons.
A playful, vintage-inspired theme with cobalt blue, turquoise, cream and roses. Includes Light, Dark, floral file icons and product icons.
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 | #655D54 | — |
| keyword, storage.type, storage.modifier | #AA2845 | — |
| string | #006576 | — |
| constant.numeric, constant.language, constant.character | #795205 | — |
| entity.name.function, support.function | #174CAA | — |
| entity.name.type, entity.name.class, support.type | #436143 | — |
| variable | #302C35 | — |
| variable.other.property, entity.other.attribute-name, support.type.property-name | #4C586C | — |
| entity.name.tag | #AA2845 | — |
| punctuation | #655D54 | — |
| markup.heading, entity.name.section | #AA2845 | bold |
| markup.bold | #302C35 | bold |
| markup.italic | #302C35 | italic |
| markup.underline.link | #174CAA | — |
| markup.inserted | #286642 | — |
| markup.deleted | #B42332 | — |
| invalid | #B42332 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.ternary, keyword.operator.spread | #655D54 | — |
| support.type.primitive, support.type.builtin, support.class | #704873 | — |
| variable.other.constant | #245C8A | — |
| punctuation.definition.string | #006576 | — |
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}!`;
}