October Theme
Publisher: l5d.liThemes in package: 1
A warm dark theme 🍂☕️
A warm dark 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 |
|---|---|---|
| string.template meta.template.expression, meta.type punctuation | #d0d0de | — |
| comment | #5b5e6b | — |
| entity.name.function, meta.function.definition | #fadc83 | — |
| variable, string.json.comments, support.type.property-name.json, keyword.other.definition | #fca664 | — |
| meta.object-literal.key | #e5c2a8 | — |
| constant | #f75d49 | — |
| entity.name.type.class, entity.name.namespace | #b5b4ff | — |
| meta.type, entity.name.type, support.type, meta.interface entity.other.inherited-class | #e3958c | — |
| string.quoted, string.template, string.regexp, heading | #92df81 | — |
| meta.attribute | #80dfb1 | — |
| meta.link | #7f7fc8 | — |
| markup.fenced_code, markup.inline | #909094 | — |
| entity.name.tag | #fbbd8e | — |
| meta.tag.attributes | #cb9e7b | — |
| storage | #fa8383 | — |
| keyword.control, keyword.other | #fb97fa | — |
| keyword.operator | #f2c4f1 | — |
| text | #c0c3cd | — |
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}!`;
}