Laurë Dark Theme
Publisher: KuaiThemes in package: 2
An elegant dark theme inspired by the golden light of Lothlórien. Warm amber tones, natural hues, and soft contrast designed for long coding sessions without eye strain.
An elegant dark theme inspired by the golden light of Lothlórien. Warm amber tones, natural hues, and soft contrast designed for long coding sessions without eye strain.
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 |
|---|---|---|
| — | #d8e2d3 | — |
| comment, punctuation.definition.comment | #4a5d67 | italic |
| string, string.quoted, constant.other.symbol | #9bc48a | — |
| constant.numeric, constant.language, constant.character | #d98f4e | — |
| keyword, storage.type, storage.modifier, keyword.control | #d4a949 | bold |
| keyword.operator | #9fb8a8 | — |
| entity.name.function, support.function, meta.function-call | #7fa89c | — |
| entity.name.class, entity.name.type, support.class, storage.type.class | #e0935a | bold |
| variable, variable.other, variable.parameter | #c3d3bd | — |
| variable.other.property, meta.object-literal.key, support.type.property-name | #a9c4b3 | — |
| entity.name.tag, meta.tag | #d4a949 | — |
| entity.other.attribute-name | #d98f4e | — |
| punctuation, meta.brace, meta.delimiter | #7a9186 | — |
| markup.heading | #e0935a | bold |
| markup.bold | #e0c07a | bold |
| markup.italic | #a9c4b3 | italic |
| markup.underline.link, string.other.link | #7fa89c | — |
| invalid, invalid.illegal | #c97a7a | underline |
| string.regexp | #6fd9b8 | — |
| constant.language.python | #d98f4e | italic |
| entity.name.function.decorator.python, meta.function.decorator.python support.type.python, punctuation.definition.decorator.python | #d98f4e | italic |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python | #c78fd9 | italic |
| support.function.magic.python, meta.function.python entity.name.function.magic | #7fa89c | italic |
| string.quoted.docstring.multi.python, string.quoted.docstring.python | #8fc9c0 | italic |
| punctuation.definition.template-expression.python, punctuation.section.embedded.python | #d98f4e | — |
| variable.parameter.function.python | #c3d3bd | italic |
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 |
|---|---|---|
| — | #e3eaf6 | — |
| comment, punctuation.definition.comment | #7285b7 | italic |
| string, string.quoted, constant.other.symbol | #a9d18a | — |
| constant.numeric, constant.language, constant.character | #e0a468 | — |
| keyword, storage.type, storage.modifier, keyword.control | #f5a623 | bold |
| keyword.operator | #7a93b8 | — |
| entity.name.function, support.function, meta.function-call | #7ec4e0 | — |
| entity.name.class, entity.name.type, support.class, storage.type.class | #e8961e | bold |
| variable, variable.other, variable.parameter | #c7d3ea | — |
| variable.other.property, meta.object-literal.key, support.type.property-name | #a9bcdc | — |
| entity.name.tag, meta.tag | #f5a623 | — |
| entity.other.attribute-name | #e0a468 | — |
| punctuation, meta.brace, meta.delimiter | #5f7aa3 | — |
| markup.heading | #e8961e | bold |
| markup.bold | #7ec4e0 | bold |
| markup.italic | #a9bcdc | italic |
| markup.underline.link, string.other.link | #7ec4e0 | — |
| invalid, invalid.illegal | #e08a90 | underline |
| string.regexp | #9fd8ee | — |
| storage.type.function.python, storage.type.class.python | #f5a623 | bold |
| keyword.control.flow.python, keyword.control.import.python | #f5a623 | bold |
| keyword.operator.logical.python | #f5a623 | — |
| constant.language.python | #e0a468 | italic |
| entity.name.function.python, meta.function.python entity.name.function | #7ec4e0 | — |
| entity.name.class.python, entity.name.type.class.python | #e8961e | bold |
| entity.name.function.decorator.python, meta.function.decorator.python support.type.python | #e0a468 | italic |
| punctuation.definition.decorator.python | #e0a468 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python | #b79bd9 | italic |
| support.function.builtin.python, support.function.magic.python | #9fd8ee | — |
| support.function.magic.python, meta.function.python entity.name.function.magic | #7ec4e0 | italic |
| string.quoted.docstring.multi.python, string.quoted.docstring.python | #8fb0d9 | italic |
| punctuation.definition.template-expression.python, punctuation.section.embedded.python, meta.fstring.python punctuation.definition.string.begin.python | #e0a468 | — |
| variable.parameter.function.python | #c7d3ea | italic |
| support.type.exception.python | #e8961e | — |
| meta.item-access.python | #a9bcdc | — |
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}!`;
}
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}!`;
}