Aoki
Publisher: LuizsanThemes in package: 1
Very simple color theme with teal accents and monokai inspired syntax highlighting
Very simple color theme with teal accents and monokai inspired syntax highlighting
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 |
|---|---|---|
| source | #ffffff | |
| support.type, keyword.type, storage.type, entity.name.type, entity.name.type.alias | #59deff | |
| support.function, meta.function-call.generic, entity.name, entity.name.type.class, entity.name.type.namespace, entity.other | #3affc4 | |
| constant, entity.name.variable.enum-member | #bb86ff | |
| variable, support, meta, entity.name.variable | #ffffff | |
| variable.parameter, entity.name.variable.parameter, meta.parameters | #ffbe69 | |
| support.type.property-name | #ffdba4 | |
| storage.modifier, keyword | #ff3d88 | |
| keyword.control, entity.name.tag, punctuation.definition.keyword | #ff3d88 | |
| variable.language | #ffc7dd | |
| storage.type.is, keyword.other, keyword.operator | #ff88b5 | bold |
| invalid | #ff5e5e | |
| punctuation, meta.brace | #969696 | |
| comment, punctuation.definition.comment | #646464 | |
| string, punctuation.definition.string, entity.name.import, meta.object-literal.key | #ffdba4 |
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}!`;
}