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 |
|---|---|---|
| — | #d8dee9ff | — |
| emphasis | — | italic |
| strong | — | bold |
| comment, punctuation.definition.comment | #8290ab | italic |
| constant.character, constant.character.escape, constant.regexp | #EBCB8B | — |
| constant.language | #81A1C1 | — |
| constant.numeric | #B48EAD | — |
| entity.name.class, entity.name.type.class, entity.name.type, support.class, support.type, support.type.exception | #8FBCBB | — |
| entity.name.function, support.function | #88C0D0 | — |
| entity.name.tag | #81A1C1 | — |
| entity.other.attribute-name | #8FBCBB | — |
| entity.other.inherited-class | #8FBCBB | bold |
| invalid.deprecated | #D8DEE9 | — |
| invalid.illegal | #D8DEE9 | — |
| keyword, keyword.operator, keyword.other.new, storage, variable.language | #81A1C1 | — |
| markup.bold | — | bold |
| markup.changed | #EBCB8B | — |
| markup.deleted | #BF616A | — |
| markup.inserted | #A3BE8C | — |
| markup.heading, text.html.markdown constant.other.reference.link, text.html.markdown string.other.link.description, text.html.markdown string.other.link.title | #88C0D0 | — |
| text.html.markdown markup.italic | — | italic |
| text.html.markdown markup.underline.link | — | underline |
| text.html.markdown markup.inline.raw, text.html.markdown markup.fenced_code.block, text.html.markdown markup.fenced_code.block punctuation.definition | #8FBCBB | — |
| text.html.markdown markup.quote | #8290ab | — |
| text.html.markdown punctuation.definition.heading, text.html.markdown beginning.punctuation.definition.list, text.html.markdown punctuation.definition.constant, text.html.markdown punctuation.definition.string | #81A1C1 | — |
| meta.preprocessor | #5E81AC | — |
| punctuation, punctuation.section, punctuation.definition.parameters | #ECEFF4 | — |
| punctuation.definition.tag, punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.terminator, punctuation.definition.variable | #81A1C1 | — |
| string | #A3BE8C | — |
| string.regexp | #EBCB8B | — |
| support.constant, support.function.construct | #81A1C1 | — |
| variable.other, variable.parameter | #D8DEE9 | — |
| source.ts punctuation.decorator, source.ts meta.decorator variable.other.readwrite, source.ts meta.decorator entity.name.function, source.tsx punctuation.decorator, source.tsx meta.decorator variable.other.readwrite, source.tsx meta.decorator entity.name.function, source.js punctuation.decorator, source.js meta.decorator variable.other.readwrite, source.js meta.decorator entity.name.function, source.python entity.name.function.decorator, source.python meta.function.decorator support.type | #D08770 | — |
| source.js meta.object-literal.key, source.ts meta.object-literal.key, source.tsx meta.object-literal.key | #D8DEE9 | — |
| source.ts meta.object-literal.key entity.name.function, source.tsx meta.object-literal.key entity.name.function, source.js meta.object-literal.key entity.name.function | #88C0D0 | — |
| source.ts support.class, source.ts support.type, source.ts entity.name.type, source.ts entity.name.class, source.tsx support.class, source.tsx support.type, source.tsx entity.name.type, source.tsx entity.name.class, source.js variable.other.readwrite.alias, source.js storage.type.class.jsdoc | #8FBCBB | — |
| source.js support.type.primitive, source.ts support.type.primitive, source.tsx support.type.primitive | #81A1C1 | — |
| source.js string.quoted.template punctuation.quasi.element.begin, source.js string.quoted.template punctuation.quasi.element.end, source.js string.template punctuation.definition.template-expression, source.ts string.template punctuation.definition.template-expression, source.tsx string.template punctuation.definition.template-expression | #81A1C1 | — |
| source.python meta.function-call.generic, source.python support.type | #88C0D0 | — |
| source.python meta.function.parameters variable.parameter.function.language.special.self | #81A1C1 | — |
| source.css support.type.property-name | #D8DEE9 | — |
| source.css meta.property-value | #88C0D0 | — |
| source.css keyword.control.at-rule.media, source.css keyword.control.at-rule.media punctuation.definition.keyword | #D08770 | — |
| source.css constant.other.color.rgb-value | #B48EAD | — |
| source.yaml entity.name.tag | #8FBCBB | — |
| source.diff meta.diff.range.context, source.diff meta.diff.header.from-file, source.diff punctuation.definition.from-file, source.diff punctuation.definition.range | #8FBCBB | — |
| source.diff punctuation.definition.separator | #81A1C1 | — |
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}!`;
}