Vapor Gleam
Publisher: StreekThemes in package: 1
A vibrant Gleam-inspired color theme with vapor wave and neon aesthetics
A vibrant Gleam-inspired color theme with vapor wave and neon aesthetics
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 | #6c7086 | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.other.import, keyword.other.package | #c4a7e7 | bold |
| variable, variable.other, variable.language.this | #ffc1eb | — |
| variable.parameter, meta.parameter, entity.name.variable.parameter | #e4c87b | italic |
| string, string.quoted, string.template, constant.other.symbol | #7dd3fc | — |
| constant.numeric, constant.language, constant.character, constant.other | #e4c87b | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #8bbec7 | — |
| entity.name.type, entity.other.inherited-class, support.type | #ffc1eb | — |
| entity.name.class, entity.other.attribute-name, entity.name.tag | #c4a7e7 | — |
| punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator | #ffc1eb | — |
| support.type, support.class, support.constant | #ffc1eb | — |
| entity.name.module, entity.name.namespace | #c4a7e7 | — |
| markup.heading | #ffffff | bold |
| markup.italic | #e0def4 | italic |
| markup.bold | #e0def4 | bold |
| markup.underline | — | underline |
| markup.quote | #6c7086 | italic |
| markup.inline.raw, markup.fenced_code | #f2cb7c | — |
| invalid, invalid.illegal | #ffc1eb | bold underline |
| string.regexp | #8bbec7 | — |
| constant.character.escape | #c4a7e7 | — |
| meta.import entity.name, meta.import variable.other | #8bbec7 | — |
| source.gleam entity.name.function, source.gleam meta.function | #8bbec7 | — |
| source.gleam keyword, source.gleam storage.type | #c4a7e7 | bold |
| source.gleam string | #7dd3fc | — |
| source.gleam comment | #6c7086 | 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}!`;
}