Luiciff Themes Pack
Publisher: luiciffThemes in package: 3
A VS Code theme
A VS Code theme
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 | #9893a5 | |
| constant | #286983 | — |
| constant.numeric, constant.language | #d7827e | — |
| entity.name | #d7827e | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #179299 | — |
| entity.other.attribute-name, entity.other.inherited-class | #8c4fd1 | |
| invalid | #c44569 | — |
| invalid.deprecated | #797593 | — |
| keyword, variable.language.this | #286983 | — |
| markup.inserted.diff | #179299 | — |
| markup.deleted.diff | #c44569 | — |
| markup.heading | — | bold |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | |
| meta.diff.range | #8c4fd1 | — |
| meta.tag, meta.brace | #575279 | — |
| meta.import, meta.export | #286983 | — |
| meta.directive.vue | #8c4fd1 | |
| meta.property-name.css | #179299 | — |
| meta.property-value.css | #ea9d34 | — |
| meta.tag.other.html | #797593 | — |
| punctuation | #797593 | — |
| punctuation.accessor | #286983 | — |
| punctuation.definition.string | #ea9d34 | — |
| punctuation.definition.tag | #9893a5 | — |
| storage.type, storage.modifier | #286983 | — |
| string | #ea9d34 | — |
| support | #179299 | — |
| support.constant | #ea9d34 | — |
| support.function | #c44569 | |
| variable | #d7827e | |
| variable.other, variable.language, variable.function, variable.argument | #575279 | — |
| variable.parameter | #8c4fd1 | — |
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}!`;
}