Pastel Night Theme
Publisher: leolorenzatoThemes in package: 1
🌃 Color theme with night vibes and pastel lights
🌃 Color theme with night vibes and pastel lights
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 | #8c91a8 | — |
| string, punctuation.definition.string | #9ad395 | — |
| string.regexp | #efab81 | — |
| constant.character.escape | #ebb9dd | — |
| constant.numeric | #efab81 | — |
| constant.language, constant.language.boolean | #efab81 | — |
| constant.other, variable.other.constant | #efab81 | — |
| keyword, keyword.control, storage.type, storage.modifier | #e783a0 | — |
| keyword.operator | #83acee | — |
| keyword.control.import, keyword.control.export, meta.import | #e783a0 | — |
| keyword.control.return | #e783a0 | — |
| keyword.control.conditional | #e783a0 | — |
| keyword.control.repeat | #e783a0 | — |
| entity.name.function, support.function | #edd7a6 | — |
| entity.name.method | #edd7a6 | — |
| entity.name.tag | #83acee | — |
| entity.other.attribute-name | #edd7a6 | — |
| punctuation.definition.tag | #8cd6ca | — |
| entity.name.type, support.type | #8cd6ca | — |
| meta.function.decorator support.type | #ebb9dd | — |
| entity.other.inherited-class | #8cd6ca | — |
| support.type.primitive, entity.name.type.primitive | #abb4f2 | — |
| entity.name.type.interface | #8cd6ca | — |
| variable | #c0c7e1 | — |
| variable.language.this, variable.language.self, variable.language.cls, variable.language.special.this, variable.language.special.self, variable.language.special.cls, variable.parameter.function.language.special.this, variable.parameter.function.language.special.self, variable.parameter.function.language.special.cls | #c09deb | — |
| variable.parameter | #ebc7c7 | — |
| variable.parameter.function-call | #abb4f2 | — |
| variable.other.member, variable.other.property | #83acee | — |
| support.variable | #c09deb | — |
| entity.name.namespace, storage.modifier.namespace | #abb4f2 | — |
| punctuation, punctuation.separator, punctuation.terminator | #8c91a8 | — |
| punctuation.bracket, punctuation.section.brackets | #8c91a8 | — |
| markup.bold | #ebc7c7 | bold |
| markup.italic | #ebc7c7 | — |
| markup.underline.link | #83acee | — |
| meta.property-name, support.type.property-name | #83acee | — |
| entity.name.function.preprocessor, keyword.control.directive, punctuation.definition.directive | #ebb9dd | — |
| meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, punctuation.decorator | #ebb9dd | — |
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}!`;
}