Lo-Fi Green Dark
Publisher: Reas VynThemes in package: 1
Lo-Fi Green Dark 🌿
Lo-Fi Green Dark 🌿
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, comment.line, comment.block, punctuation.definition.comment, comment.block.documentation, comment.documentation, comment support.class, comment keyword.other.type | #3c553c | italic |
| string, meta.quoted, meta.class, keyword.control.return, keyword.control.throw, keyword.control.yield, storage, storage.type, storage.modifier, storage.class, punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, meta.brackets, variable.other.member, string.template, meta.template.expression | #66b366 | — |
| constant.character.escape, entity.name.class, entity.name.type.class, entity.other.inherited-class, support.class, keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.ternary, variable, meta.definition.variable.name, support.variable, variable.language.this, constant.language.boolean, constant.language.true, constant.language.false, variable.object.property, meta.property.object, entity.other.attribute-name, variable.other.attribute, markup.bold | #ffda55 | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, entity.name.function, support.function, meta.function-call, variable.function, entity.name.type.interface, support.type, support.type.primitive, entity.name.tag, meta.tag, meta.tag.sgml, string.other.link, meta.link.inline, markup.underline.link, entity.name.section, entity.name.function.blade | #39bcda | — |
| entity.name.type.namespace, constant.other, variable.parameter, meta.function.parameters, entity.name.variable.parameter, keyword.other.type, keyword.control.default, variable.other.constant, constant, constant.language, constant.numeric, constant.numeric.integer, constant.numeric.float, support.type.property-name.json, meta.structure.dictionary.key, markup.code, fenced_code.block | #f38357 | — |
| entity.name.type.enum | #d8c3ff | — |
| punctuation.definition.tag, punctuation.section.embedded, keyword.blade, support.function.construct.begin.blade, support.function.construct.end.blade | #83928a | — |
| invalid, invalid.illegal, invalid.illegal.character-not-allowed-here, invalid.deprecated | #ff6699 | underline |
| entity.name.class, entity.name.type.class, entity.other.inherited-class, support.class, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.return, keyword.control.throw, keyword.control.yield, variable.language.this, markup.bold | — | bold |
| comment, comment.line, comment.block, punctuation.definition.comment, comment.block.documentation, comment.documentation, comment support.class, comment keyword.other.type, markup.italic, meta.embedded.block.shellscript | — | italic |
| string.other.link, meta.link.inline, markup.underline.link, invalid, invalid.illegal, invalid.illegal.character-not-allowed-here, invalid.deprecated | — | underline |
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}!`;
}