NeoMelon Theme
Publisher: instantfredThemes in package: 3
A VS Code theme collection with three variants: Watermelon (pastel), Synthwave (neon), and Light (clean). Inspired by the sweet world of melons!
A VS Code theme collection with three variants: Watermelon (pastel), Synthwave (neon), and Light (clean). Inspired by the sweet world of melons!
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 | #A3C4A3 | italic |
| keyword, storage.type, storage.modifier, variable.language.this, support.type.primitive | #FF5A36 | italic bold |
| string, markup.inline.raw.string | #00E5E5 | — |
| constant.numeric, constant.language, constant.other | #FF00FF | — |
| entity.name.function, support.function | #FFD23F | bold |
| variable, variable.other, variable.readwrite, variable.other.readwrite, variable.declaration | #FF847C | |
| variable.parameter, meta.parameter | #FF00FF | italic |
| variable.other.property, variable.other.object, support.variable | #E84A5F | — |
| entity.name.type, support.class, entity.other.inherited-class | #00E5E5 | — |
| punctuation | #A3C4A3 | — |
| operator | #FFD23F | — |
| support.constant | #FF847C | — |
| tag, entity.name.tag | #FF00FF | bold |
| punctuation.definition.tag | #FF00FF | — |
| entity.other.attribute-name | #FFD23F | — |
| support.type.property-name | #FF847C | — |
| support.constant.property-value | #00E5E5 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #FF00FF | — |
| markup.heading | #FF5A36 | bold |
| markup.list | #00E5E5 | — |
| markup.link | #FFD23F | underline |
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}!`;
}