Nocturne Spectrum (Ashish Verma)
Publisher: ashish-vermaThemes in package: 1
Dark-room friendly VS Code theme with distinct, full-spectrum syntax highlighting (semantic + TextMate).
Dark-room friendly VS Code theme with distinct, full-spectrum syntax highlighting (semantic + TextMate).
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 | #6f7886 | italic |
| keyword, storage.type, storage.modifier | #c6a5ff | — |
| entity.name.function, support.function, variable.function | #8ab4f8 | — |
| entity.name.method | #9cc6ff | — |
| variable, meta.definition.variable.name | #e8edf5 | — |
| variable.parameter | #ffd3a1 | — |
| variable.other.property, meta.object-literal.key | #80cbc4 | — |
| entity.name.type, support.type, entity.other.inherited-class | #7fd2e3 | — |
| entity.name.class, support.class | #a2b6ff | bold |
| string, punctuation.definition.string | #b7e4a4 | — |
| string.regexp, constant.other.regex | #ffd166 | — |
| constant.numeric, constant.character.numeric | #f8b585 | — |
| constant.language, support.constant | #f2a8c9 | — |
| constant.other.symbol | #f6c177 | — |
| keyword.operator, storage.operator | #9aa7b5 | — |
| punctuation, meta.brace, meta.delimiter | #8b97a6 | — |
| markup.heading | #a1c2ff | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw | #ffd49a | — |
| markup.quote | #9aa7b5 | — |
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}!`;
}