Wonderland Theme
Publisher: mlyzhngThemes in package: 1
simple dark background and lovely cool pastel colors
simple dark background and lovely cool pastel colors
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 | #5e686e | — |
| string | #ade2e4 | — |
| constant.numeric | #7b84ff | — |
| constant.language | #7b84ff | — |
| constant.character, constant.other | #7b84ff | — |
| variable | — | |
| keyword | #75cea9 | bold |
| storage | #75cea9 | bold |
| storage.type | #29cdeb | italic |
| entity.name.class | #abb2f0 | underline |
| entity.other.inherited-class | #abb2f0 | italic underline |
| entity.name.function | #abb2f0 | |
| variable.parameter | #ff94c6 | italic |
| entity.name.tag | #75cea9 | bold |
| entity.other.attribute-name | #abb2f0 | |
| support.function | #29cdeb | |
| support.constant | #29cdeb | |
| support.type, support.class | #29cdeb | italic |
| support.other.variable | #ff94c6 | |
| invalid | #f0f3f8 | bold |
| invalid.deprecated | #f0f3f8 | — |
| meta.structure.dictionary.json, string.quoted.double.json | #c2cfce | — |
| meta.diff, meta.diff.header | #5e7075 | — |
| markup.deleted | #75cea9 | — |
| markup.inserted | #abb2f0 | — |
| markup.changed | #ade2e4 | — |
| constant.numeric.line-number.find-in-files - match | #7b84ffA0 | — |
| entity.name.filename.find-in-files | #ade2e4 | — |
| variable.language | #abb2f0 | — |
| heading.1.markdown | #abb2f0 | bold |
| punctuation.definition.heading.markdown | #abb2f0 | — |
| entity.name.section.markdown | #abb2f0 | — |
| punctuation.definition.list.begin.markdown | #7b84ff | — |
| meta.image.inline.markdown | #ade2e4 | — |
| markup.bold.markdown | #dbdbdb | bold |
| markup.italic.markdown | #dbdbdb | italic |
| markup.inline.raw.string.markdown | #29cdeb | — |
| meta.separator.markdown | #9eced1 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #7b84ff | — |
| variable.other.object, punctuation.accessor, meta.brace.round, variable.other.readwrite, punctuation.separator.comma | #dbdbdb | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #3247ff | — |
| token.error-token | #d84a80 | — |
| token.debug-token | #6967e6 | — |
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}!`;
}