Will-o'-Wisp Theme
Publisher: Simon JägerThemes in package: 1
Like a will-o'-wisp in the night – a cold and dark theme for Visual Studio Code.
Like a will-o'-wisp in the night – a cold and dark theme for Visual Studio Code.
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 |
|---|---|---|
| — | #b3b3b3 | — |
| constant.language.import-export-all, entity.name.tag.yaml, entity.name.type.module, meta.jsx, support.class, support.constant, support.type.property-name, support.variable, variable | #b3b3b3 | — |
| comment, markup.underline.link, meta.brace, meta.tag, meta.jsx keyword.operator.assignment.js, punctuation | #5d6a83 | — |
| constant.language, entity.name.tag, keyword, markup.fenced_code, markup.inline, storage, support.class.component, support.constant.property-value.css, support.type.primitive, variable.language | #8294c9 | — |
| constant.language.infinity, constant.language.nan, constant.numeric, entity.other, keyword.operator.quantifier.regexp | #aa83aa | — |
| constant.other.reference.link, string | #78ab81 | — |
| constant.character.escape, constant.other.character-class, keyword.control.anchor | #b88e2e | — |
| entity.name.function, entity.name.type, entity.other.inherited-class, markup.quote, meta.function-call variable.language.super, meta.class storage.type.js, support.class.builtin, support.class.component, support.function | #72b2b8 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.heading, meta.export string, meta.import string | — | underline |
| meta.export punctuation, meta.import punctuation | — |
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}!`;
}