Lumex-R — Theme & Icon Customizer
Publisher: Ripan Kumar DebThemes in package: 2
A gorgeous default dark/light theme with per-file SVG icons, fully customisable via color names, hex codes, or uploaded PNG/JPG images — with a one-click reset.
A gorgeous default dark/light theme with per-file SVG icons, fully customisable via color names, hex codes, or uploaded PNG/JPG images — with a one-click reset.
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, comment.block, comment.line | #475569 | italic |
| string, string.quoted, string.template, string.interpolated | #4ADE80 | — |
| constant.character.escape, string.regexp | #3ECFCF | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal | #FBBF24 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #7C6AF7 | — |
| constant.language, support.constant, variable.language.this, variable.language.super, variable.language.self | #7C6AF7 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.other.using, keyword.other.operator, storage.modifier.import, storage.modifier.package | #F472B6 | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #94A3B8 | — |
| storage.type, storage.modifier, keyword.declaration | #F472B6 | — |
| entity.name.function, meta.function entity.name.function, support.function | #60A5FA | — |
| meta.function-call, meta.function-call.generic, entity.name.function.call | #60A5FA | — |
| entity.name.class, entity.name.type, entity.name.type.class, support.class | #FBBF24 | — |
| entity.name.function.constructor, entity.name.function.destructor | #FBBF24 | — |
| entity.name.type.interface | #3ECFCF | italic |
| entity.name.type.enum | #FBBF24 | — |
| entity.name.type.parameter, meta.type.parameters | #3ECFCF | — |
| variable, variable.other, variable.other.readwrite | #E2E8F0 | — |
| variable.parameter, meta.parameters variable.other | #E2E8F0 | italic |
| variable.other.property, support.variable.property, meta.object-literal.key | #E2E8F0 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #3ECFCF | italic |
| entity.name.module, meta.import string, string.quoted.single.import | #4ADE80 | — |
| entity.name.tag, meta.tag.sgml | #F472B6 | — |
| entity.other.attribute-name | #FBBF24 | — |
| meta.attribute-with-value string | #4ADE80 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #FBBF24 | — |
| support.type.property-name.css, meta.property-name.css | #60A5FA | — |
| support.constant.property-value.css, meta.property-value.css | #4ADE80 | — |
| keyword.other.unit.css, constant.numeric.css | #FBBF24 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #3ECFCF | — |
| support.type.property-name.json, meta.object-literal.key string | #60A5FA | — |
| entity.name.tag.yaml, meta.tag.yaml | #60A5FA | — |
| markup.heading, entity.name.section.markdown | #7C6AF7 | bold |
| markup.bold | #FBBF24 | bold |
| markup.italic | #F472B6 | italic |
| markup.inline.raw.string.markdown | #3ECFCF | — |
| markup.fenced_code.block.markdown | #E2E8F0 | — |
| markup.underline.link, markup.underline.link.image | #60A5FA | underline |
| markup.quote | #94A3B8 | italic |
| punctuation.definition.tag, meta.brace, punctuation.definition.block | #94A3B8 | — |
| invalid, invalid.illegal, invalid.deprecated | #F87171 | strikethrough |
| markup.inserted | #4ADE80 | — |
| markup.deleted | #F87171 | — |
| markup.changed | #FBBF24 | — |
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}!`;
}