Moonlit Cherry Blossoms
Publisher: MakennzaThemes in package: 1
A dark cherry blossom themed UI for VS Code. Features purples, pinks, and some cozy greens.
A dark cherry blossom themed UI for VS Code. Features purples, pinks, and some cozy greens.
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 | #A6D18A | italic |
| variable, string constant.other.placeholder | #eb9f9f | — |
| keyword, storage, storage.type, storage.modifier | #E67DA3 | bold |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #bbe6f2 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class | #F8C8DC | — |
| constant.numeric, constant.language, constant.character, constant.escape, variable.parameter | #F78C6C | — |
| keyword.operator, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| entity.name.tag, meta.tag, markup.deleted.git_gutter | #E67DA3 | — |
| entity.name.class, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFCB6B | — |
| entity.other.attribute-name | #C792EA | — |
| markup.heading, markup.heading entity.name | #C3E88D | bold |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.italic | #f07178 | italic |
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}!`;
}