Void Protocol OLED
Publisher: Sanket MukherjeeThemes in package: 1
A pure-black OLED theme with purple energy accents on active elements only. Every idle surface is #000000; purple marks what's alive.
A pure-black OLED theme with purple energy accents on active elements only. Every idle surface is #000000; purple marks what's alive.
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 | #4A2A6A | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage, storage.type, storage.modifier | #A855F7 | bold italic |
| entity.name.function, support.function, meta.function-call, meta.function-call.generic, variable.function | #22D3EE | bold italic |
| string, string.quoted, string.template, punctuation.definition.string | #34D399 | — |
| constant.numeric, constant.language, constant.character, constant.other, variable.other.constant | #FB923C | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.decorator, punctuation.decorator, storage.type.annotation | #F472B6 | — |
| variable, variable.parameter, variable.other, variable.other.readwrite, meta.parameter | #D8CFE8 | — |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor | #8B5CF6 | — |
| variable.other.property, variable.other.object.property, support.type.property-name | #D8CFE8 | — |
| entity.name.tag, support.class.component | #A855F7 | — |
| entity.other.attribute-name | #FB923C | — |
| entity.name.namespace, entity.name.module | #A855F7 | italic |
| string.regexp | #22D3EE | — |
| constant.character.escape | #F472B6 | — |
| invalid, invalid.deprecated | #F87171 | — |
| markup.heading | #F472B6 | bold |
| markup.bold | #FB923C | bold |
| markup.italic | #22D3EE | italic |
| markup.underline.link, string.other.link | #C084FC | — |
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}!`;
}