PastelPunk
Publisher: Parham GhafourianThemes in package: 1
A dark theme for VS Code with pastel colors, cyberpunk atmosphere, and a celestial touch.
A dark theme for VS Code with pastel colors, cyberpunk atmosphere, and a celestial touch.
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 | #728993 | italic |
| keyword.control | #FF87CA | bold |
| string | #fce4f8 | italic |
| constant.numeric | #ffeeb4 | — |
| variable | #fab392 | — |
| variable.parameter | #F6F193 | italic |
| entity.name.function | #c4a8ff | bold |
| meta.function-call | #ACE1AF | bold |
| entity.name.type.class | #c448bd | bold italic |
| punctuation.definition.string | #ffc0e8 | — |
| storage.type | #b93636 | bold |
| support.function | #FF87CA | — |
| keyword.operator.logical.python | #ff7a7a | bold |
| constant.language.python | #fab392 | bold |
| keyword.operator.assignment.python | #c448bd | bold |
| support.module | #ACE1AF | — |
| meta.function-call.arguments.python | #56b6c2 | — |
| variable.other.property | #c448bd | bold |
| meta.function-call.python | #c448bd | bold |
| torage.modifier.declaration.python | #569CD6 | bold |
| variable.other.readwrite | #56b6c2 | bold |
| meta.function-call.python | #56b6c2 | bold |
| source.python | #d7faff | — |
| source.cs | #d7faff | — |
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}!`;
}