Ava Night
Publisher: Ava StudioThemes in package: 1
A calm midnight Visual Studio Code theme with balanced contrast, semantic accents, and a focused coding experience.
A calm midnight Visual Studio Code theme with balanced contrast, semantic accents, and a focused coding experience.
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 | #8B95A7 | — |
| string, string.quoted, constant.other.symbol | #98C379 | — |
| constant.numeric, constant.language | #E5C07B | — |
| keyword, storage.type, storage.modifier | #B48EFA | — |
| entity.name.type, entity.name.class, support.type | #FFD166 | — |
| entity.name.function, support.function, variable.function | #61AFEF | — |
| entity.name.tag, entity.other.attribute-name | #7FDBFF | — |
| variable, variable.other.readwrite, meta.definition.variable | #D8DEE9 | — |
| markup.heading, entity.name.section | #7FDBFF | bold |
| markup.bold | #D8DEE9 | bold |
| markup.italic | #D8DEE9 | italic |
| markup.strikethrough | #8B95A7 | strikethrough |
| markup.underline.link, string.other.link | #61AFEF | — |
| markup.inline.raw, markup.fenced_code | #98C379 | — |
| markup.quote | #8B95A7 | — |
| markup.list | #B48EFA | — |
| punctuation.definition.heading, punctuation.definition.bold, punctuation.definition.italic, punctuation.definition.strikethrough | #8B95A7 | — |
| invalid, invalid.illegal | #F07178 | — |
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}!`;
}