Nord Pastel
Publisher: andreaThemes in package: 1
A refined Nord-based theme with pastel tones, soft contrasts, and improved syntax highlighting.
A refined Nord-based theme with pastel tones, soft contrasts, and improved syntax highlighting.
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, string.comment | #A3B1C2 | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #D6999F | — |
| entity.name.function, meta.function-call, variable.function | #8FAEC9 | — |
| variable.parameter | #C1BFA7 | — |
| variable, entity.name.variable | #8FAEC9 | — |
| keyword, storage.type, storage.modifier | #D99694 | — |
| storage.type.class, entity.name.type.class, entity.name.class | #A3BE8C | — |
| string, constant.other.symbol, constant.character.escape | #B0C4A7 | — |
| support.function, support.constant | #8FAEC9 | — |
| entity.name.type.enum, entity.name.enum | #D6999F | — |
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}!`;
}