Autumn Serenity
Publisher: CarlesBusquetsDevThemes in package: 1
Autumn dark-theme. Immerse yourself in autumn’s tranquility with this dark theme. A cozy cabin, warm fire, and earthy tones create a calm, focused coding environment.
Autumn dark-theme. Immerse yourself in autumn’s tranquility with this dark theme. A cozy cabin, warm fire, and earthy tones create a calm, focused coding environment.
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 | #a57c5a | — |
| markup.underline.link.markdown, markup.underline.link | #d25c3a | — |
| keyword, variable.language | #d25c3a | — |
| variable, variable.other | #ff9334 | — |
| string | #e09b5c | — |
| constant, constant.numeric | #ff6735 | — |
| function | #e1c6b0 | — |
| type | #e1c6b0 | — |
| support | #d25c3a | — |
| entity.name.tag | #ff9334 | — |
| meta.object.key | #e1c6b0 | — |
| meta.object.value | #3d2f26 | — |
| punctuation.section.block.begin, punctuation.section.block.end | #bda27c | — |
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}!`;
}