Nyx Theme: Purple Void
Publisher: Nyxar0thThemes in package: 1
A dark, soft-contrast purple theme with custom file icons and clean .env highlighting, built for late-night coding sessions.
A dark, soft-contrast purple theme with custom file icons and clean .env highlighting, built for late-night coding sessions.
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 | #7A6FA2 | italic |
| keyword, storage.type, storage.modifier | #E9D5FF | bold |
| string | #CFFAFE | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #A3A1C0 | — |
| constant.numeric | #FDE047 | — |
| variable.other.constant | #F472B6 | — |
| entity.name.function, support.function | #7DD3FC | — |
| variable | #F5F3FF | — |
| punctuation, meta.brace, meta.brackets | #6B7280 | — |
| source.env variable, source.env variable.other, source.env support.type.property-name, source.env entity.name.section, source.env meta.definition.variable | #E9D5FF | bold |
| source.env punctuation.separator.key-value, source.env keyword.operator.assignment | #C7C7D6 | — |
| source.env string.unquoted, source.env string.quoted, source.env constant.character.escape | #B9F3FF | — |
| source.env comment, comment.line.number-sign.env | #6E6689 | italic |
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}!`;
}