ghostlouise
Publisher: zazcThemes in package: 1
purple dark theme for louise <3
purple dark theme for louise <3
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 | #9682C8 | — |
| string.quoted.docstring.multi.python | #9682C8 | — |
| string | #a987e2 | — |
| constant.numeric | #956fd1 | — |
| constant.language | #b083f7 | — |
| constant.character, constant.other | #9b6e81 | — |
| variable | #9472e0 | bold |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #9b6e81 | — |
| keyword | #b083f7 | — |
| storage | #9B9FDE | bold |
| storage.type | #b77c8e | bold |
| entity.name.class | #9472e0 | bold |
| variable.language.this | #9472e0 | — |
| entity.other.inherited-class | #9472e0 | bold |
| entity.name.function | #b77c8e | bold |
| variable.parameter | #9472e0 | bold |
| entity.name.tag | #956fd1 | bold |
| entity.other.attribute-name | #b77c8e | bold |
| support.function | #b77c8e | bold |
| support.constant | #b083f7 | |
| support.type, support.class | #9472e0 | bold |
| invalid | #9b556b | |
| invalid.deprecated | #673947 | — |
| meta.diff, meta.diff.header | #a679ab | bold |
| token.info-token | #694e9d | — |
| token.warn-token | #8d4e61 | — |
| token.error-token | #9b556b | — |
| markup.quote | #705a96 | — |
| markup.bold | #9472e0 | bold |
| markup.italic | #705a96 | italic |
| markup.heading.markdown | #956fd1 | bold |
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}!`;
}