Elizabeth Báthory theme
Publisher: CoachonkoThemes in package: 2
A collection of color themes dedicated to Elizabeth Báthory, who may or may not have been a vampire.
A collection of color themes dedicated to Elizabeth Báthory, who may or may not have been a vampire.
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, unused.comment, wildcard.comment | #9b7594 | — |
| keyword, punctuation.definition.keyword | #ebcb8b | — |
| entity.name.type | #8fbcbb | italic |
| entity.name.function | #8fbcbb | — |
| string, string.regexp, constant.other.symbol | #A3BE8C | — |
| constant.character.escape | #EBCB8B | — |
| constant, variable.other.constant | #bf616a | — |
| storage | #EBCB8B | — |
| constant.numeric, constant.character, constant.keyword, constant | #EBCB8B | — |
| punctuation | #A3BE8C | — |
| invalid | #D8DEE9 | — |
| meta.diff.range, meta.diff.index, meta.separator | #8FBCBB | — |
| meta.diff.header.from-file | #8FBCBB | — |
| meta.diff.header.to-file | #8FBCBB | — |
| entity.name.tag | #bf616a | — |
| fenced_code.block.language, markup.fenced_code.block.markdown punctuation.definition.markdown | #a3be8c | — |
| entity.other.attribute-name | #a3be8c | italic |
| markup.underline | — | underline |
| markup.underline.link, markup.underline.link.image | #6FA7B7 | — |
| markup.inline.raw | #a3be8c | — |
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}!`;
}