Lemain Labs Theme
Publisher: Lemain LabsThemes in package: 3
Lemain Studio, Studio Light and Studio Midnight themes for VS Code/Cursor.
Lemain Studio, Studio Light and Studio Midnight themes for VS Code/Cursor.
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 |
|---|---|---|
| source, text | #E5EAF1 | — |
| comment, punctuation.definition.comment | #94A3B8 | italic |
| comment.block.documentation, comment.block.documentation.java, comment.block.documentation.phpdoc.php, comment.block.documentation.python | #A8B3C2 | italic |
| keyword, keyword.control, keyword.operator.expression, keyword.operator.new, keyword.other.using, storage.modifier, storage.type | #F0A070 | |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.return, keyword.control.throw, keyword.control.trycatch, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.declaration.function, keyword.declaration.class, keyword.declaration.interface, keyword.declaration.struct, keyword.declaration.enum | #F0A070 | bold |
| keyword.operator, punctuation.separator.key-value, punctuation.separator.pointer-access, punctuation.separator.namespace, punctuation.accessor | #CBD5E1 | — |
| string, string.quoted, string.template | #7FCB86 | — |
| meta.template.expression, punctuation.definition.template-expression, source.js.embedded.expression, source.ts.embedded.expression | #E5EAF1 | — |
| constant.numeric, constant.language, constant.character, constant.other | #89B4D8 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #D5A7F4 | bold |
| entity.name.function, support.function, meta.function-call, variable.function, meta.method-call, entity.name.function.member, support.function.builtin | #7AB7FF | — |
| meta.definition.function entity.name.function, meta.function entity.name.function, entity.name.function.go, entity.name.function.python, entity.name.function.java, entity.name.function.php, entity.name.function.c, entity.name.function.cpp | #9DCCFF | bold |
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name, meta.object-literal.key | #D7DEE8 | — |
| variable.parameter, meta.function.parameters, meta.parameters | #CBD5E1 | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object, entity.other.attribute-name, support.type.property-name, meta.object-literal.key string, meta.mapping.key, meta.structure.dictionary.key.python | #D7DEE8 | — |
| meta.object-literal.key entity.name.function, meta.object-literal.key entity.name.tag, meta.object-literal.key constant.language, support.type.property-name.json, string.quoted.double.json punctuation.support.type.property-name | #FFB15C | bold |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.class, support.type, storage.type.cs, storage.type.java, storage.type.go, storage.type.php, storage.type.primitive.c, storage.type.primitive.cpp | #E8DD8C | bold |
| entity.name.namespace, entity.name.package, support.other.namespace, support.other.module | #D5A7F4 | — |
| meta.decorator, entity.name.function.decorator, storage.type.annotation, punctuation.definition.annotation | #D5A7F4 | italic |
| entity.name.tag, meta.tag, support.class.component | #F0A070 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #E8DD8C | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.section, punctuation.terminator | #B6C2D1 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp | #67D8C2 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.scss, entity.name.tag.scss | #F0A070 | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css, meta.property-name.scss | #E8DD8C | — |
| support.constant.property-value.css, support.constant.property-value.scss, support.constant.color, constant.other.color | #7FCB86 | — |
| support.type.property-name.json | #FFC680 | bold |
| markup.heading, entity.name.section.markdown | #FFB15C | bold |
| markup.italic | #E8DD8C | italic |
| markup.bold | #E8DD8C | bold |
| markup.underline.link, string.other.link | #7AB7FF | — |
| markup.deleted, meta.diff.header.from-file | #FF8A8A | — |
| markup.inserted, meta.diff.header.to-file | #7FCB86 | — |
| markup.changed | #E8DD8C | — |
| invalid, invalid.illegal | #FF8A8A | underline |
| meta.structure.dictionary.json support.type.property-name.json, meta.mapping.key string.quoted.double.json, meta.object-literal.key string.quoted.double.json | #FFC680 | bold |
| punctuation.support.type.property-name.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.key-value.json | #A8B3C2 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #7FCB86 | — |
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}!`;
}