PureDark OLED Theme
Publisher: Sebithaz-devThemes in package: 2
A pure black OLED-friendly theme pack for Visual Studio Code with two variants: amethyst purple and Akatsuki red. Designed to reduce light emission and save power on OLED displays.
A pure black OLED-friendly theme pack for Visual Studio Code with two variants: amethyst purple and Akatsuki red. Designed to reduce light emission and save power on OLED displays.
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 | #6D4C41 | italic |
| comment.block.documentation, comment.block.documentation punctuation.definition.comment | #5D4037 | italic |
| constant | #FF8A65 | — |
| constant.character, constant.language, constant.numeric, constant.other | #FFD54F | — |
| constant.language.boolean | #FFAB91 | — |
| entity.name.type | #FF8A65 | — |
| entity.name.class | #FF7043 | — |
| entity.name.function | #FFAB91 | — |
| entity.name.method | #FFAB91 | — |
| entity.name.section | #E53935 | — |
| entity.name.tag | #E53935 | — |
| entity.other.attribute-name | #FF8A65 | — |
| entity.other.inherited-class, entity.other.attribute-name.language | #FF7043 | — |
| invalid | #ef4444 | — |
| invalid.deprecated | #f59e0b | underline |
| keyword | #E53935 | — |
| keyword.control, keyword.operator, keyword.other | #E53935 | — |
| keyword.control.import | #FF7043 | — |
| keyword.control.export | #FF7043 | — |
| keyword.operator.expression | #E53935 | — |
| keyword.operator.new | #E53935 | — |
| keyword.other.unit | #FFD54F | — |
| markup.bold, markup.italic | #FFAB91 | — |
| markup.heading | #E53935 | bold |
| markup.list, markup.list punctuation.definition.list | #FFAB91 | — |
| markup.inline.raw, markup.fenced_code.block | #FFD54F | — |
| markup.quote | #6D4C41 | italic |
| markup.underline.link, markup.underline.link.image | #FF8A65 | — |
| markup.strikethrough | #ef4444 | — |
| meta.link | #FF8A65 | — |
| meta.preprocessor, meta.preprocessor.namespace, meta.preprocessor.string | #6D4C41 | — |
| meta.paragraph | #d4d4d4 | — |
| meta.separator | #52525b | — |
| punctuation | #8D6E63 | — |
| punctuation.definition.interpolation, punctuation.section.interpolation | #E53935 | — |
| punctuation.definition.template-expression | #E53935 | — |
| storage, storage.type | #E53935 | — |
| storage.modifier | #E53935 | — |
| string | #FFD54F | — |
| string.key, string.quoted | #FFD54F | — |
| string.regexp | #FFAB91 | — |
| string.template, string.template punctuation.definition.string | #FFD54F | — |
| string.unquoted, string.quoted.docstring | #6D4C41 | — |
| string.quoted.docstring, string.quoted.other.lt.variable | #FFD54F | italic |
| string.other.link | #FF8A65 | — |
| support.class | #FF7043 | — |
| support.function | #FFAB91 | — |
| support.function.builtin | #FFAB91 | — |
| support.type | #FF8A65 | — |
| support.variable | #E53935 | — |
| support.constant | #FF8A65 | — |
| variable | #e0e0e0 | — |
| variable.language | #E53935 | italic |
| variable.other.constant | #FF8A65 | — |
| variable.other.property | #e0e0e0 | — |
| variable.parameter | #FFD54F | — |
| variable.parameter.function.language.special.self.python | #E53935 | 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}!`;
}