calabaza
Publisher: calabazaThemes in package: 1
calabaza
calabaza
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 | #aaaaaa | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448c27 | — |
| invalid.illegal | #660000 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #828282 | — |
| meta.class entity.name.type.class.tsx | #7c2cbd | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #7c2cbd | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #4a668f | — |
| keyword.operator | #29f4ce | — |
| keyword, storage | #00ff1a | italic bold |
| string.template punctuation.definition.string | #ff0303 | bold |
| storage.type, support.type | #1accf9fe | italic bold |
| constant.language, support.constant, variable.language | #08b319 | bold |
| variable, support.variable | #0e05bc | bold |
| variable.parameter | #94041c | — |
| entity.name.tag | #0444ac | |
| entity.name.type | #0444ac | — |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts | #10709d | italic bold |
| entity.name.function, support.function | #c6046f | bold |
| entity.name.type, entity.other.inherited-class, support.class | #fd44bf | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #e8009b | bold |
| constant.language.boolean | #ff7300 | — |
| string | #d946ef | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4b83cd | — |
| constant.other.symbol | #ab6526 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #09f115 | — |
| entity.name.tag | #8a02c5 | bold |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #29dd18 | italic bold |
| constant.character.entity, punctuation.definition.entity | #ab6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #f930e1 | — |
| meta.property-name, support.type.property-name | #04aec8 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #098e05e7 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #aa3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4b83cd | — |
| markup.bold, markup.italic | #448c27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| support.constant.json | #497803 | — |
| meta.structure.dictionary.value.json string.quoted.double | #fe26fa | — |
| string.quoted.double.json punctuation.definition.string.json | #2b8c82 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #ae408b | — |
| source.json support | #6dbdfa | — |
| source.json string, source.json punctuation.definition.string | #05f721 | — |
| markup.list | #207bb8 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #4FB4D8 | |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #87429a | — |
| punctuation | #ff0000 | — |
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}!`;
}