Chiubaca Aura
Publisher: Alex ChiuThemes in package: 3
An amber and midnight blue VS Code theme with light and pastel variants - inspired by chiubaca's aura
An amber and midnight blue VS Code theme with light and pastel variants - inspired by chiubaca's aura
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, punctuation.definition.comment, string.comment | #484f58 | italic |
| constant, constant.character, constant.language, constant.numeric, constant.other | #79c0ff | — |
| entity, entity.name, entity.name.class, entity.name.function, entity.name.method, entity.name.namespace, entity.name.tag, entity.name.type | #f0a500 | — |
| invalid, invalid.illegal, invalid.deprecated | #ff7b72 | |
| keyword, keyword.control, keyword.operator, keyword.other | #ff7b72 | — |
| markup, markup.bold, markup.heading, markup.italic, markup.list, markup.quote, markup.raw, markup.underline | #c9d1d9 | — |
| meta, meta.block, meta.function, meta.function-call, meta.property-name, meta.return-type, meta.selector | #c9d1d9 | — |
| storage, storage.type | #ff7b72 | — |
| string, string.html, string.markdown, string.quoted, string.unquoted | #7ee787 | — |
| support, support.class, support.constant, support.function, support.type | #79c0ff | — |
| variable | #c9d1d9 | — |
| variable.other | #c9d1d9 | — |
| variable.parameter | #ffa657 | — |
| entity.name.function, entity.name.type | #f0a500 | — |
| constant.numeric, constant.language | #79c0ff | — |
| string | #7ee787 | — |
| keyword, storage.type, punctuation | #ff7b72 | — |
| entity.name.decorator | #d2a8ff | — |
| entity.name.tag | #f0a500 | — |
| entity.other.attribute-name | #79c0ff | — |
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}!`;
}