ByteWave Themes
Publisher: CodetownThemes in package: 4
A pastel, vaporwave-inspired VS Code theme with soft purple, pink, and blue tones. Distinct from other ByteWave themes.
A pastel, vaporwave-inspired VS Code theme with soft purple, pink, and blue tones. Distinct from other ByteWave 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 | #b8c0ff | italic |
| string, constant.other.symbol | #f6c177 | — |
| variable, variable.parameter | #a3c9f1 | — |
| keyword, storage.type | #00ff9d | — |
| constant.numeric, constant.language | #f6c177 | — |
| entity.name.function, support.function | #ff9e64 | — |
| entity.name.type, support.type | #b8c0ff | — |
| entity.name.class, support.class | #f6c177 | — |
| entity.name.tag, support.constant | #b8c0ff | — |
| entity.name.tag.style | #a3c9f1 | — |
| support.type.property-name.css | #f6c177 | — |
| support.constant.property-value.css | #b8c0ff | — |
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}!`;
}