PastelLight Themes
Publisher: StoxfiThemes in package: 10
Soft and elegant pastel light themes for Visual Studio Code. Ideal for minimalists, frontend devs, and anyone who prefers soothing syntax highlighting with aesthetic code palettes.
Soft and elegant pastel light themes for Visual Studio Code. Ideal for minimalists, frontend devs, and anyone who prefers soothing syntax highlighting with aesthetic code palettes.
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 | #6A8F79 | italic |
| keyword | #C94F6D | bold italic |
| string | #E67C50 | — |
| variable | #4C9797 | — |
| entity.name.function | #4C9CCF | bold |
| constant.numeric | #8B62B0 | — |
| constant.language.boolean | #8B62B0 | — |
| entity.name.type | #3C9C88 | — |
| storage.type | #C94F6D | bold italic |
| storage.modifier | #D9A2B6 | — |
| punctuation | #627C6B | — |
| meta.brace | #627C6B | — |
| support.constant | #4C9CCF | — |
| constant.character | #4C9CCF | — |
| meta.import | #4C9797 | italic |
| keyword.control.import | #4C9797 | — |
| entity.other.attribute-name | #D9A2B6 | — |
| markup.heading | #6C9C96 | bold |
| markup.inserted | #3C9C88 | — |
| markup.deleted | #C94F6D | — |
| markup.changed | #E67C50 | — |
| invalid | #FFFFFF | — |
| meta.function-call | #4C9CCF | — |
| meta.annotation | #D9A2B6 | italic |
| support.function | #4C9CCF | — |
| support.variable | #4C9797 | — |
| constant.other.symbol | #E67C50 | — |
| string.regexp | #D9A2B6 | — |
| entity.name.section | #6C9C96 | — |
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}!`;
}