Luminara Theme
Publisher: carlossalgueroThemes in package: 1
A fantastical VS Code theme inspired by epic fantasy landscapes with a vibrant palette of blues, purples, and pinks
A fantastical VS Code theme inspired by epic fantasy landscapes with a vibrant palette of blues, purples, and pinks
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 | #6b4c7a | italic |
| string, string.quoted, string.template | #b3ffd9 | — |
| constant.numeric, constant.language.boolean | #ffd9b3 | — |
| keyword, storage.type, storage.modifier | #ff8fb3 | bold |
| entity.name.function, meta.function-call.generic, support.function | #8fb3ff | — |
| entity.name.class, entity.name.type.class, support.class | #b3d9ff | — |
| variable, variable.other, variable.parameter | #e8d5f2 | — |
| variable.other.property, support.type.property-name | #d9b3ff | — |
| entity.name.type, support.type | #b3d9ff | — |
| constant, variable.other.constant | #ffb3d9 | — |
| keyword.operator, punctuation | #ff8fb3 | — |
| entity.name.tag, punctuation.definition.tag | #8fb3ff | — |
| entity.other.attribute-name | #b3d9ff | — |
| keyword.control.import, keyword.control.export | #ff8fb3 | bold |
| string.regexp | #b3ffd9 | — |
| markup.heading | #ff8fb3 | bold |
| markup.underline.link | #8fb3ff | — |
| markup.bold | #ff8fb3 | bold |
| markup.italic | — | italic |
| support.type.property-name.json | #d9b3ff | — |
| entity.name.tag.css, entity.other.attribute-name.class.css | #8fb3ff | — |
| support.type.property-name.css | #b3d9ff | — |
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}!`;
}