Lascavo Dark Theme
Publisher: mdrshThemes in package: 3
Neutral dark theme, calm colors
Neutral dark theme, calm colors
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 | #ffffff60 | italic |
| string.template, meta.property-value | — | italic |
| punctuation.definition.template-expression, meta.template.expression | — | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation, punctuation.definition.keyword, punctuation.definition.tag | #ffffff88 | — |
| keyword, punctuation.definition.string, storage.type, storage.modifier, keyword.operator.type.annotation, keyword.operator.optional | #ffffffaa | — |
| keyword.operator, keyword.operator.expression, keyword.operator.new, meta.property-value, meta.jsx.children.js.jsx | #ffffffcc | — |
| keyword.control, constant.numeric, support.variable.property, punctuation.definition.entity.css | #ffffff | — |
| variable.other, variable.other.constant, variable.other.readwrite, support.type.property-name.json | #50a6ff | — |
| support.function, entity.name.function, entity.name.tag, meta.selector.css | #1fe21f | — |
| keyword.control.flow, entity.name.type, storage.type.function.arrow, keyword.operator.ternary, keyword.operator.logical, meta.attribute.id, entity.other.attribute-name.id, keyword.other.debugger, entity.name.type.alias, entity.name.type.enum | #ff194f | — |
| keyword.other.important.css | #ff194f | bold |
| string | #ffe65b | — |
| string.template, variable.other.object, constant.character.entity | #ffee9c | — |
| variable.other.property, meta.attribute.class, entity.other.attribute-name.class | #ff962f | — |
| variable.language.this, meta.tag.metadata.doctype entity.name.tag, meta.tag.structure.html entity.name.tag, meta.tag.structure.head entity.name.tag, meta.tag.structure.body entity.name.tag, meta.tag.structure.header entity.name.tag, meta.tag.structure.main entity.name.tag, meta.tag.structure.nav entity.name.tag, meta.tag.structure.section entity.name.tag, meta.tag.structure.article entity.name.tag, meta.tag.structure.footer entity.name.tag, meta.tag.structure.div entity.name.tag, meta.tag.structure.form entity.name.tag, meta.tag.structure.figure entity.name.tag, meta.tag.js entity.name.tag.js, meta.tag.jsx entity.name.tag.jsx | #ff6eeb | — |
| entity.name.type.interface | #ff6eeb | italic |
| variable.parameter, constant.language.boolean, entity.other.attribute-name.js.jsx, meta.attribute, support.type.property-name.css | #8bcfff | — |
| support.type.primitive, support.type, support.class, support.class.component.js.jsx, support.class.component.tsx | #67de67 | — |
| string.regexp, constant.character.escape.backslash.regexp | #ffffffaa | — |
| string.regexp keyword.other, punctuation.definition.string.regexp keyword.other, punctuation.definition.group.regexp | #ffffff40 | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.range.regexp | #e7c463dd | — |
| punctuation.definition.character-class.regexp, punctuation.definition.group.no-capture.regexp | #ddaa20bb | — |
| keyword.operator.negation.regexp, keyword.operator.or.regexp, meta.assertion.negative-look-ahead.regexp | #ff6161bb | — |
| keyword.control.anchor.regexp | #ff0000AA | — |
| meta.assertion.look-ahead.regexp | #33c049bb | — |
| keyword.operator.quantifier.regexp | #3392e499 | — |
| keyword.other.back-reference.regexp | #d55fdecc | — |
| meta.paragraph | #ffffffcc | — |
| markup.bold | #ffffff | bold |
| markup.italic | — | italic |
| markup.bold markup.italic, markup.italic markup.bold | — | bold italic |
| punctuation.definition | #ffffff60 | — |
| meta.separator | #ffffff60 | bold |
| markup.heading, entity.name.section, heading.1 punctuation.definition | #ff194f | — |
| heading.1 | — | bold |
| string.other.link.title, string.other.link.description | #50a6ff | — |
| markup.underline.link, markup.underline.link.image | #986ee5 | italic underline |
| markup.inline.raw, markup.raw.block | #ffee9c | — |
| markup.fenced_code | #8bcfff | — |
| entity.name.tag.yaml | #50a6ff | — |
| markup.quote, markup.quote meta.paragraph | #ffe65b | italic |
| punctuation.definition.list.begin | #1fe21f | — |
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}!`;
}