Pink Moon Theme
Publisher: Cem GeçgelThemes in package: 1
A medium-dark theme with tale blue and salmon red.
A medium-dark theme with tale blue and salmon red.
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 | #6d8b7b | italic |
| comment.block | #6d7b8b | — |
| keyword, storage, variable.language.this | #6f98b3 | bold |
| keyword.operator | — | |
| string | #fdf8ce | |
| constant, keyword.other.unit | #a5b7cb | |
| constant.other, constant.character.escape, punctuation.definition.template-expression, keyword.interpolation | #ffd17f | |
| entity.name.type, entity.name.class, entity.other.inherited-class, storage.type.generic, storage.type.java | #fcdbd9 | |
| entity.name.function | #d08785 | |
| entity.name.function.preprocessor | #d08785 | underline |
| variable | #f0fdff | |
| variable.other.enummember, variable.other.constant | — | italic |
| variable.parameter | — | bold |
| heading.1 | #6f98b3 | bold underline |
| heading.2 | #6f98b3 | bold |
| heading.3 | #6f98b3 | |
| heading.4 | #6f98b3 | italic |
| markup.inline | #ffd17f | |
| markup.list | #d08785 | |
| markup.italic | #fcdbd9 | italic |
| markup.bold | #fcdbd9 | bold |
| markup.underline | #fcdbd9 | underline |
| markup.quote | #ffd17f | italic |
| support.type.property-name | #d08785 | |
| entity.name.tag | #d08785 |
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}!`;
}