Lourdes
Publisher: Kyle BridgemohansinghThemes in package: 4
Lourdes (Light UI | Dark Editor)
Lourdes (Light UI | Dark Editor)
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, string.quoted.docstring. | #c2a987 | — |
| meta.preprocessor, keyword.control.import | #000000 | |
| string | #7cb2c2 | — |
| meta.template.expression, keyword.operator.assignment | #ffc800 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #15dfb3 | — |
| constant.numeric | #23acca | — |
| constant.language | #00d0ff | — |
| constant.character | #54b593 | — |
| variable | #a2b4af | — |
| variable.other.property | #78a499 | — |
| keyword | #d16a87 | — |
| keyword.operator, keyword.operator.arithmetic, storage.type.function.arrow | #d16a87 | — |
| storage | #000000 | |
| support.type.property-name | #85b14f | — |
| entity.name.type.class | #3db061 | underline |
| entity.other.inherited-class | #2d884a | — |
| entity.name.function | #64b131 | — |
| entity.name.function.method | #ffffff | — |
| variable.parameter | #9da7ac | — |
| variable.language | #000000 | — |
| entity.name.tag | #000000 | — |
| entity.other.attribute-name | #d16a87 | — |
| support.function | #eeb03c | — |
| support.constant | #27aaec | — |
| support.type, support.class | #38b76b | — |
| support.other.variable | #2bc1e2 | — |
| invalid | — | — |
| token.info-token | #3773ec | — |
| token.warn-token | #e6a626 | — |
| token.error-token | #f11b1b | — |
| token.debug-token | #820f82 | — |
| markup.heading | #2d884a | bold |
| markup.heading.1.html | #2d884a | — |
| markup.heading.2.html | #3c8e51 | — |
| markup.heading.3.html | #4b9458 | — |
| markup.heading.4.html | #5a9a5f | — |
| markup.heading.5.html | #6aa066 | — |
| markup.heading.6.html | #597f64 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.quote | #7cb2c2 | — |
| markup.inline.raw | #000000 | — |
| markup.underline.link | #4da4fb | — |
| markup.list | #9da7ac | — |
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}!`;
}