Ghosts I Theme
Publisher: oldjoboboThemes in package: 1
Ghosts I color theme for VS Code, matched to the Omarchy and Neovim palette.
Ghosts I color theme for VS Code, matched to the Omarchy and Neovim palette.
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 | #7a6a5f | italic |
| keyword, storage, storage.type, keyword.control, keyword.operator.new | #b44949 | — |
| string, string.quoted, string.template, string.regexp | #61897d | — |
| constant.numeric, constant.language, constant.character, constant.other | #c19359 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #c19359 | — |
| entity.name.type, entity.name.class, support.type, support.class, storage.type | #d9b67e | — |
| variable.other.property, meta.property-name, support.variable.property | #61897d | — |
| variable, meta.definition.variable, meta.parameter | #d8c8b4 | — |
| entity.name.tag, entity.other.attribute-name, meta.tag | #ab7f53 | — |
| keyword.operator, punctuation, meta.delimiter | #7a6a5f | — |
| invalid, invalid.deprecated | #b44949 | strikethrough |
| markup.heading, markup.heading punctuation.definition.heading | #c19359 | bold |
| markup.bold | #e6d7c3 | bold |
| markup.italic | #d2aa73 | italic |
| markup.inserted | #61897d | — |
| markup.deleted | #b44949 | — |
| markup.changed | #c19359 | — |
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}!`;
}