Nordic Electric AI Nocturne
Publisher: freyja-oneThemes in package: 1
An electric AI-inspired colorscheme with Nordic/Freyja elements
An electric AI-inspired colorscheme with Nordic/Freyja elements
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 | #607090 | italic |
| string, string.quoted, string.template | #5df0b0 | — |
| constant.numeric | #ff9e4f | — |
| constant.language | #ff9e4f | — |
| constant.character, constant.other | #ff9e4f | — |
| variable | #d6e5ff | — |
| variable.language | #9966ff | italic |
| keyword | #9966ff | — |
| storage | #9966ff | — |
| storage.type | #9966ff | italic |
| entity.name.class | #e6c276 | — |
| entity.name.type | #e6c276 | — |
| entity.name.function | #20e6d6 | — |
| variable.parameter | #d6e5ff | italic |
| entity.name.tag | #3b9eff | — |
| entity.other.attribute-name | #e6c276 | — |
| support.function | #20e6d6 | — |
| support.constant | #ff9e4f | — |
| support.type | #e6c276 | italic |
| support.class | #e6c276 | — |
| invalid | #ff5d8f | — |
| invalid.deprecated | #ff5d8f | italic underline |
| meta.function-call.generic | #20e6d6 | — |
| meta.tag | #d6e5ff | — |
| meta.selector | #9966ff | — |
| punctuation.definition.tag | #3b9eff | — |
| meta.preprocessor, entity.name.function.preprocessor | #9966ff | — |
| meta.preprocessor.string | #5df0b0 | — |
| meta.preprocessor.numeric | #ff9e4f | — |
| meta.structure.dictionary.key | #3b9eff | — |
| meta.diff.header | #9966ff | — |
| storage.type.cs | #e6c276 | — |
| entity.name.function.cs | #20e6d6 | — |
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}!`;
}