elly
Publisher: ulwluThemes in package: 1
nostalgic brown theme
nostalgic brown theme
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 |
|---|---|---|
| entity.name.function, entity.name.module.js, entity.name.tag, keyword.other.special-method, markup.deleted.git_gutter, markup.raw.block, meta.function-call, meta.tag.sgml, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json support.type.property-name.json, source.shell, string.other.link.description.title.markdown, support.function, variable.function, variable.import.parameter.js, variable.other.class.js | #8D7856 | — |
| constant.other.key, constant.other.symbol, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, markup.underline, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, string | #798362 | — |
| constant.other.reference.link.markdown, entity.other.attribute-name.class, keyword, storage.modifier, storage.type, support.type, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, variable.language | #9B9257 | — |
| meta.separator, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json support.type.property-name.json, variable.language.fenced.markdown | #63768A | — |
| *link*, *uri*, *url*, constant.character, constant.escape, constant.language, constant.numeric, constant.other.color, entity.name.method.js, entity.other.attribute-name, keyword.control, keyword.other.substitution, keyword.other.template, keyword.other.unit, keyword.other, markdown.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.heading, markup.inserted, meta.class-method.js entity.name.function.js, meta.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, punctuation.definition.tag, punctuation.section.embedded, punctuation.separator.inheritance.php, punctuation, string.other.link.title.markdown, support.constant, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, variable.function.constructor, variable.parameter | #738C9C | — |
| constant.character.escape, string.regexp | #6998B3 | — |
| markup.changed.git_gutter, markup.raw.block.fenced.markdown, markup.table, meta.block variable.other, meta.use.php, punctuation.definition.list_item.markdown, punctuation.section.class.end, source.css support.type.property-name, source.less support.type.property-name, source.postcss support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.stylus support.type.property-name, string constant.other.placeholder, support.class, support.other.namespace.php, support.other.namespace.use.php, support.type.sys-types, support.type, text.html.markdown, variable.language.fenced.markdown, variable | #9A9A9A | — |
| comment, punctuation.definition.comment, text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, text.html.markdown markup.inline.raw.markdown | #5A5A5A | — |
| constant.other.color, invalid.illegal, invalid, markup.deleted, string.other.link, support.other.variable | #FF2222 | — |
| markup.changed | #817E00 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | — |
| markup.bold markup.italic string, markup.bold markup.italic, markup.bold string, markup.bold, markup.italic markup.bold string, markup.italic markup.bold, markup.quote markup.bold string, markup.quote markup.bold, meta.separator, meta.separator | — | bold |
| comment, entity.name.method.js, markup.italic, markup.quote, punctuation.definition.comment, source.js constant.other.object.key.js string.unquoted.label.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, variable.language | — | italic |
| *link*, *uri*, *url*, markup.underline | — | 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}!`;
}