Aurora Nightfall
Publisher: Subin AbrahamThemes in package: 1
A vibrant rainbow-themed dark VS Code theme with uniquely colored syntax highlights across the spectrum.
A vibrant rainbow-themed dark VS Code theme with uniquely colored syntax highlights across the spectrum.
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 | #5c7a99 | italic |
| variable.language.this | #e28f3f | bold |
| variable.language.super | #d07c60 | italic |
| variable.language, support.variable | #6a8dbf | — |
| variable.other.property | #5fb4a2 | — |
| variable.other.readwrite, variable | #9ab468 | — |
| entity.name.function, meta.function-call | #6a8dbf | — |
| entity.name.type, support.type, storage.type.class | #a77dd4 | — |
| entity.name.namespace, entity.name.module | #6a8dbf | — |
| entity.name.tag | #6a8dbf | — |
| entity.name.attribute | #a77dd4 | — |
| entity.other.inherited-class | #d07c60 | — |
| string, constant.other.symbol, constant.character | #d4a96c | — |
| string.regexp | #8fbf7f | — |
| constant.numeric, constant.language.boolean | #d65b6f | — |
| constant.language.null, constant.language.undefined | #e28f3f | — |
| constant.other | #d07c60 | — |
| keyword, storage.type, storage.modifier | #a77dd4 | bold |
| keyword.control | #d07c60 | — |
| keyword.operator | #66c1b2 | — |
| keyword.other.using, keyword.other.package | #d4a96c | — |
| meta.import, keyword.control.import | #d07c60 | — |
| punctuation.definition.string, punctuation.definition.parameters | #cdd6df | — |
| punctuation.separator, punctuation.terminator | #d9dee6 | — |
| punctuation.section.embedded | #d07c60 | — |
| support.function, support.constant | #6a8dbf | — |
| support.class, support.type | #a77dd4 | — |
| support.variable.property | #5fb4a2 | — |
| meta.template.expression | #a77dd4 | — |
| markup.heading, markup.heading entity.name | #6a8dbf | bold |
| markup.bold | #d07c60 | bold |
| markup.italic | #a77dd4 | italic |
| markup.inserted | #8fbf7f | — |
| markup.deleted | #d65b6f | — |
| markup.changed | #6a8dbf | — |
| invalid, invalid.deprecated | #ffffff | — |
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}!`;
}