Lain Light
Publisher: alchepicThemes in package: 1
Lain light theme for vscode.
Lain light theme for vscode.
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 | #A0A1A7 | italic |
| comment markup.link | #A0A1A7 | — |
| entity.name.type | #CC7A00 | — |
| entity.other.inherited-class | #CC7A00 | — |
| keyword | #A626A4 | — |
| keyword.control | #A626A4 | — |
| keyword.operator | #3d3b4f | — |
| keyword.other.special-method | #006699 | — |
| keyword.other.unit | #CC7A00 | — |
| storage | #A626A4 | — |
| storage.type.annotation, storage.type.primitive | #A626A4 | — |
| storage.modifier.package, storage.modifier.import | #3d3b4f | — |
| constant | #CC7A00 | — |
| constant.variable | #CC7A00 | — |
| constant.character.escape | #006699 | — |
| constant.numeric | #CC7A00 | — |
| constant.other.color | #006699 | — |
| constant.other.symbol | #006699 | — |
| variable | #B366FF | — |
| variable.interpolation | #B366FF | — |
| variable.parameter | #3d3b4f | — |
| string | #00B386 | — |
| string > source, string embedded | #3d3b4f | — |
| string.regexp | #006699 | — |
| string.regexp source.ruby.embedded | #CC7A00 | — |
| string.other.link | #B366FF | — |
| punctuation.definition.comment | #A0A1A7 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #3d3b4f | — |
| punctuation.definition.heading, punctuation.definition.identity | #006699 | — |
| punctuation.definition.bold | #CC7A00 | bold |
| punctuation.definition.italic | #A626A4 | italic |
| punctuation.section.embedded | #B366FF | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #3d3b4f | — |
| support.class | #CC7A00 | — |
| support.type | #006699 | — |
| support.function | #006699 | — |
| support.function.any-method | #006699 | — |
| entity.name.function | #006699 | — |
| entity.name.class, entity.name.type.class | #CC7A00 | — |
| entity.name.section | #006699 | — |
| entity.name.tag | #B366FF | — |
| entity.other.attribute-name | #CC7A00 | — |
| entity.other.attribute-name.id | #006699 | — |
| meta.class | #CC7A00 | — |
| meta.class.body | #3d3b4f | — |
| meta.method-call, meta.method | #3d3b4f | — |
| meta.definition.variable | #B366FF | — |
| meta.link | #CC7A00 | — |
| meta.require | #006699 | — |
| meta.selector | #A626A4 | — |
| meta.separator | #3d3b4f | — |
| meta.tag | #3d3b4f | — |
| none | #3d3b4f | — |
| invalid.deprecated | #000000 | — |
| markup.bold | #CC7A00 | bold |
| markup.changed | #A626A4 | — |
| markup.deleted | #B366FF | — |
| markup.italic | #A626A4 | italic |
| markup.heading | #B366FF | — |
| markup.heading punctuation.definition.heading | #006699 | — |
| markup.link | #006699 | — |
| markup.inserted | #00B386 | — |
| markup.quote | #CC7A00 | — |
| markup.raw | #00B386 | — |
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}!`;
}