Espresso Tutti
Publisher: huytdThemes in package: 1
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, string.comment | #6A737D | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #005CC5 | — |
| entity, entity.name | #6F42C1 | — |
| variable.parameter.function | #24292E | — |
| entity.name.tag | #22863A | — |
| keyword | #D73A49 | — |
| storage, storage.type | #D73A49 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292E | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #032F62 | — |
| support | #005CC5 | — |
| meta.property-name | #005CC5 | — |
| variable | #E36209 | — |
| variable.other | #24292E | — |
| invalid.broken | #B31D28 | italic |
| invalid.deprecated | #B31D28 | italic |
| invalid.illegal | #B31D28 | italic |
| invalid.unimplemented | #B31D28 | italic |
| carriage-return | #FAFBFC | italic underline |
| message.error | #B31D28 | — |
| string source | #24292E | — |
| string variable | #005CC5 | — |
| source.regexp, string.regexp | #032F62 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #032F62 | — |
| string.regexp constant.character.escape | #22863A | bold |
| support.constant | #005CC5 | — |
| support.variable | #005CC5 | — |
| meta.module-reference | #005CC5 | — |
| punctuation.definition.list.begin.markdown | #E36209 | — |
| markup.heading, markup.heading entity.name | #005CC5 | bold |
| markup.quote | #22863A | — |
| markup.italic | #24292E | italic |
| markup.bold | #24292E | bold |
| markup.raw | #005CC5 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #B31D28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863A | — |
| markup.changed, punctuation.definition.changed | #E36209 | — |
| markup.ignored, markup.untracked | #F6F8FA | — |
| meta.diff.range | #6F42C1 | bold |
| meta.diff.header | #005CC5 | — |
| meta.separator | #005CC5 | bold |
| meta.output | #005CC5 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #B31D28 | — |
| constant.other.reference.link, string.other.link | #032F62 | underline |
| source | #000000 | |
| comment | #AAAAAA | |
| keyword, storage | #2F6F9F | |
| entity.name.function, keyword.other.name-of-parameter.objc | #5724BB | |
| entity.name | #D44950 | — |
| entity.other.inherited-class | #060708 | bold italic |
| support | #4E279A | |
| constant.numeric | #CF4F5F | |
| variable | #7B8C4D | |
| constant | #7653C1 | |
| variable.other.constant | #7653C1 | — |
| constant.language | #7653C2 | |
| string | #73B00A | |
| support.function | #D71707 | |
| support.type | #0B51A6 | — |
| entity.name.tag, declaration.tag | #2F6F9F | |
| entity.other.attribute-name | #4F9FCF | |
| string.quoted.double.html | #D44950 | — |
| meta.tag | #4F9EEB | — |
| invalid | #F9F2CE | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #000000 | |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
| meta.selector.css, entity.other.attribute-name.pseudo-class.css, entity.name.tag.wildcard.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #2F6F9F | — |
| support.type.property-name.css | #C82E0E | |
| keyword.other.unit.css, constant.other.rgb-value.css, constant.numeric.css | #389507 | — |
| support.constant.font-name.css, constant.other.color.rgb-value.css | #389507 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}