Ellora - OLED Mood Themes
Publisher: Dhruv_SinghThemes in package: 12
Mood-based dark themes on true black. Pick how you're coding today.
Mood-based dark themes on true black. Pick how you're coding today.
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 | #737d8c | italic |
| comment keyword, comment storage.type, punctuation.definition.block.tag | #8f99a7 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, storage, storage.type, storage.modifier, variable.language.this, variable.language.self, variable.language.super | #94aed4 | |
| entity.name.function, support.function, meta.function-call entity.name.function, meta.method-call entity.name.function, meta.decorator entity.name.function, entity.name.function.decorator, punctuation.decorator | #b8d6f2 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.other.inherited-class, support.type, support.class, entity.name.tag, meta.type.annotation entity.name.type | #85c0d4 | — |
| string, punctuation.definition.string, string.template | #a3cfc4 | — |
| string.regexp, constant.character.escape, constant.other.character-class | #b1d1d1 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #94aed4 | — |
| constant.numeric, constant.language, constant.other, variable.other.enummember, keyword.other.unit, support.constant | #c6d3e5 | — |
| variable.other.property, variable.other.object.property, support.type.property-name, entity.other.attribute-name, meta.object-literal.key, support.type.vendored.property-name | #7fa3c4 | — |
| variable.parameter, meta.function.parameters variable | #a1b8cf | — |
| variable, variable.other.readwrite, meta.definition.variable, variable.other.constant, support.variable | #c2ccd9 | — |
| keyword.operator, punctuation, meta.brace, punctuation.separator, punctuation.terminator, punctuation.accessor | #919cad | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #85c0d4 | — |
| support.constant.property-value, constant.numeric.css, keyword.other.unit.css | #c6d3e5 | — |
| support.type.property-name.json | #7fa3c4 | — |
| entity.name.tag.yaml | #7fa3c4 | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading | #92afc9 | bold |
| markup.bold | #c2ccd9 | bold |
| markup.italic | #c2ccd9 | italic |
| markup.underline.link, string.other.link, constant.other.reference.link | #b8d6f2 | underline |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #a3cfc4 | — |
| markup.quote | #737d8c | italic |
| punctuation.definition.list.begin.markdown | #92afc9 | — |
| markup.inserted | #8cbfae | — |
| markup.deleted | #d98a96 | — |
| markup.changed | #85aed9 | — |
| meta.diff.header, meta.diff.range | #92afc9 | — |
| invalid.illegal | #d98a96 | — |
| invalid.deprecated | #737d8c | strikethrough |
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}!`;
}