Limfinity
Publisher: Liminity ABThemes in package: 1
A sleek, modern dark theme with clean syntax highlighting
A sleek, modern dark theme with clean syntax highlighting
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 |
|---|---|---|
| string.quoted.binary.single.python, keyword.control.directive | #a8cc7c | — |
| constant.language.false.cpp, constant.language.true.cpp, variable.language.this.cpp | #82d2ce | — |
| punctuation.definition.delayed.unison, punctuation.definition.list.begin.unison, punctuation.definition.list.end.unison, punctuation.definition.ability.begin.unison, punctuation.definition.ability.end.unison, punctuation.operator.assignment.as.unison, punctuation.separator.pipe.unison, punctuation.separator.delimiter.unison, punctuation.definition.hash.unison, support.variable.magic.python, punctuation.separator.period.python, punctuation.separator.element.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, storage.modifier.lifetime.rust, variable.language.rust, variable | #d6d6dd | — |
| constant.other.ellipsis.python | #d1d1d1 | — |
| variable.other.generic-type.haskell, support.constant.edge, keyword | #83d6c5 | — |
| punctuation.definition.tag | #898989 | — |
| storage.type.haskell | #f8c762 | — |
| — | #bce7ff | — |
| meta.paragraph.markdown, string.other.link.description.title.markdown | #EEFFFF | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown | #5ABEB0 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, markup.quote.markdown, constant.character, constant.other | #82AAFF | — |
| markup.bold.markdown, punctuation.definition.bold.markdown | #57cdff | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown, storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts | #C792EA | — |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown, variable.other.object.property, entity.name.class, variable.other.readwrites, meta.definition.variable, entity.other.attribute-name, punctuation.decorator, support.function | #f7ecb5 | — |
| punctuation.definition.metadata.markdown | #f3b8c2 | — |
| markup.underline.link.image.markdown, markup.underline.link.markdown, storage, entity.name.tag, source.json support, markup.list | #6dbdfa | — |
| comment, punctuation.definition.comment | #6d6d6d | italic |
| punctuation.definition.string, string, string.quoted, meta.structure.dictionary.value.json string.quoted.double, string.quoted.double.json punctuation.definition.string.json, source.json string, source.json punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end | #4FC9B0 | — |
| constant.numeric, constant.language.boolean | #8dec95 | — |
| constant | #A170C6 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #92b6f4 | — |
| variable | #a4ceee | — |
| variable.other.object.js | #d6deeb | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #d6deeb | — |
| meta.class entity.name.type.class.tsx | #d29ffcff | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #d29ffcff | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #a1bde6 | — |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, support.variable.property, support.type, support.class | #7fdbca | — |
| variable.other.readwrite.js, variable.parameter | #d7dbe0 | — |
| string.template meta.template.expression | #c63ed3 | — |
| string.template punctuation.definition.string, punctuation.definition.block, punctuation.definition.tag, meta.paragraph.markdown | #ffffff | — |
| keyword, storage.type, storage.modifier, variable.language.this, keyword.operator | #00bff9 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #d3eed6 | — |
| entity.other.inherited-class, markup.heading punctuation.definition.heading, entity.name.section | #4FB4D8 | — |
| entity.name.function | #87aff4 | — |
| entity.name.type | #d29ffc | — |
| support.constant | #ec9cd2 | — |
| support.other.variable | #CBCDD2 | — |
| invalid, invalid.deprecated | #6dbdfa | bold underline |
| support.type.property-name.json | #91dacd | — |
| support.constant.json | #addb67 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #f29fd8 | — |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown, markup.quote, meta.link | #78bd65 | — |
| source.dockerfile | #99d0f7 | — |
| variable.parameter.function.language.special.self.python, entity.name.lifetime.rust, entity.name.function, meta.require, support.function, variable.function, entity.name.class, variable.other.class.js, variable.other.class.ts, entity.name.type | #efb080 | — |
| support.function.std.rust, entity.other.attribute-name | #aaa0fa | — |
| variable.other.property | #AA9BF5 | — |
| variable.language | #C1808A | — |
| support.class, entity.name.type.class, entity.name.tag | #87c3ff | — |
| constant.numeric | #ebc88d | — |
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}!`;
}