Vaporwave Watermelon Theme
Publisher: AnhhTuannThemes in package: 1
A chill pastel Vaporwave Watermelon theme (Pink & Green) for VS Code and Oh My Posh.
A chill pastel Vaporwave Watermelon theme (Pink & Green) for VS Code and Oh My Posh.
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, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #848BBD | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.word, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage, punctuation.definition.keyword, entity.name.tag | #FF8DA1 | italic |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method, support.method, meta.method-call, support.function.builtin | #FFA8C5 | bold |
| string, string.quoted, string.template, string.unquoted, punctuation.definition.string, string.regexp, constant.character.escape | #82E0AA | — |
| variable, variable.other, variable.parameter, support.variable, variable.language, meta.variable, variable.other.readwrite, entity.other.attribute-name | #A8E6CF | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.other.inherited-class, entity.name.namespace, entity.name.module, support.module, meta.type, meta.class, entity.name.interface, entity.name.enum, entity.name.struct, entity.name.union, support.type.primitive | #D7BDE2 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language, constant.other, constant.character, keyword.other.unit, support.constant | #F9E79F | — |
| invalid, invalid.illegal, invalid.deprecated, message.error, string.regexp.error | #FF6B6B | bold underline |
| keyword.operator, punctuation, meta.brace, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.map, punctuation.definition.binding-pattern, punctuation.section, punctuation.terminator, punctuation.separator | #FF8DA1CC | — |
| support.type.property-name.json, entity.name.tag.yaml, meta.object-literal.key, variable.other.property, variable.other.object.property, meta.property-name | #82E0AA | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #82E0AA | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.scss | #D7BDE2 | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx | #FF8DA1 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #A8E6CF | — |
| markup.heading, entity.name.section | #FF8DA1 | bold |
| markup.inline.raw, markup.raw.block | #82E0AA | — |
| support.class.component, support.class.component.js, support.class.component.jsx, support.class.component.ts, support.class.component.tsx, entity.name.tag.jsx, entity.name.tag.tsx | #D7BDE2 | bold |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, meta.tag.attributes.jsx, meta.tag.attributes.tsx | #A8E6CF | italic |
| support.function.react, support.function.builtin.react | #FFA8C5 | bold italic |
| variable.other.env | #A8E6CF | bold |
| keyword.control.flow, keyword.control.trycatch, storage.modifier.async | #D7BDE2 | bold italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, storage.type.module | #FF8DA1 | bold italic |
| variable.language.this, variable.language.super, variable.language.self, keyword.other.this | #D7BDE2 | bold italic |
| string.template, punctuation.definition.template-expression, punctuation.section.embedded | #82E0AA | — |
| variable.css, variable.scss, variable.other.less, support.type.custom-property.css, variable.argument.css | #A8E6CF | italic |
| string.other.link.title.markdown, string.other.link.description.markdown, markup.underline.link.markdown, markup.underline.link.image.markdown | #848BBD | underline |
| variable.other.readwrite.alias, meta.import variable.other.readwrite, meta.export variable.other.readwrite, meta.variable.declaration.js variable.other.readwrite | #FF6B6B | bold italic |
| string.regexp, constant.character.escape.regexp, support.other.match.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #D7BDE2 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #A8E6CF | bold |
| markup.bold.markdown, markup.italic.markdown, markup.heading.markdown, entity.name.section.markdown | #FF8DA1 | bold |
| markup.quote.markdown, markup.list.unnumbered.markdown, markup.list.numbered.markdown, markup.inline.raw.markdown | #82E0AA | — |
| markup.inserted.diff, markup.deleted.diff, meta.diff.header | #FFA8C5 | — |
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}!`;
}