Tenda Theme
Publisher: Tenda-ThemeThemes in package: 1
Cozy dark theme with Cursor-style fluorescent accents, soft neon colors, a modern UI, and optimized typography
Cozy dark theme with Cursor-style fluorescent accents, soft neon colors, a modern UI, and optimized typography
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 |
|---|---|---|
| keyword, storage.type | #ff47d1 | bold |
| variable, meta.definition.variable.name, entity.name.variable | #41f0ff | — |
| entity.name.function, meta.function-call, support.function | #00ffaa | — |
| string, constant.other.symbol | #faff7f | — |
| constant.numeric | #ff9147 | — |
| comment | #6e7090 | italic |
| meta.import.java, storage.modifier.import.java, storage.type.java, meta.import, keyword.import, keyword.other.import.java, punctuation.separator.java | #ff47d1 | bold |
| entity.name.type.class.java, support.class.java, entity.other.inherited-class | #41f0ff | — |
| storage.type.annotation.java, punctuation.definition.annotation | #ff9147 | — |
| invalid | #ff0000 | underline |
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}!`;
}