Patina
Publisher: Luis C. MarkmannThemes in package: 6
A warm, muted theme with earthy tones. Teal oxidation and amber warmth. Includes Dark, Dark Soft, Moss, Light, Lichen, and Stellar variants
A warm, muted theme with earthy tones. Teal oxidation and amber warmth. Includes Dark, Dark Soft, Moss, Light, Lichen, and Stellar variants
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 | #666e65 | — |
| punctuation, delimiter, delimiter.bracket, meta.brace, meta.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.input.void.html, meta.type.annotation, storage.type.function.arrow, meta.objectliteral.ts | #5b5b54 | — |
| punctuation.definition.string | #7a352788 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #645c52 | — |
| keyword, storage.type.class.jsdoc | #33644d | — |
| keyword.control.import, keyword.control.from, keyword.control.export, keyword.import, keyword.other.import | #666e65 | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.return, keyword.control.trycatch | #8b4646 | — |
| keyword.operator, keyword.operator.assignment.compound, keyword.operator.rest, keyword.operator.spread, keyword.operator.ternary, keyword.other.unit | #645c52 | — |
| keyword.operator.relational, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.type.annotation, keyword.operator.type | #5b5b54 | — |
| storage, storage.type, storage.modifier | #8b4646 | — |
| storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.struct | #33644d | — |
| string, string punctuation.section.embedded source, attribute.value | #7a3527 | — |
| string.regexp, source.regexp | #7f5031 | — |
| string variable | #7a3527 | — |
| entity.name.function, support.function | #2f5418 | — |
| entity.name.function.macro, support.function.macro | #8b4646 | — |
| entity, entity.name | #2f5418 | — |
| entity.name.tag, tag.html | #2a6361 | — |
| entity.name.type, support.type, support.type.primitive, support.type.builtin | #2a6361 | — |
| entity.name.namespace, entity.name.module | #2a6361 | — |
| entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name.html | #6e5831 | — |
| variable, identifier | #574d3a | — |
| variable.parameter, variable.parameter.function | #5e5c23 | — |
| variable.language | #8b4646 | — |
| variable.other.property, variable.other.member, variable.other.object.property, meta.object-literal.key | #574d3a | — |
| variable.other.enummember | #2a6361 | — |
| property, meta.property-name, support.type.property-name, entity.name.tag.yaml, attribute.name | #5e5c23 | — |
| punctuation.support.type.property-name | #5e5c2388 | — |
| support | #5e5c23 | — |
| constant, entity.name.constant, support.constant | #7f5031 | — |
| constant.numeric, number | #2e645d | — |
| constant.character | #7a3527 | — |
| constant.character.escape | #8b4646 | — |
| constant.language | #7f5031 | — |
| constant.language.boolean | #7f5031 | — |
| constant.language.null, constant.language.undefined | #8b4646 | — |
| namespace | #2a6361 | — |
| meta.module-reference | #33644d | — |
| entity.name.label | #7a3527 | — |
| markup.heading, markup.heading entity.name | #2f5418 | bold |
| markup.bold | #393a34 | bold |
| markup.italic | #393a34 | italic |
| markup.strikethrough | — | strikethrough |
| markup.quote | #2a6361 | — |
| markup.raw | #6e5831 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #33644d | underline |
| constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #7a3527 | — |
| punctuation.definition.list.begin.markdown | #8b4646 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #8b4646 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #33644d | — |
| markup.changed, punctuation.definition.changed | #7f5031 | — |
| markup.ignored, markup.untracked | #c2bdad | — |
| meta.diff.range | #2a6361 | bold |
| meta.diff.header | #35616d | — |
| keyword.operator.quantifier.regexp | #2e645d | — |
| string.regexp constant.character.escape | #8b4646 | — |
| invalid.broken | #a23333 | italic |
| invalid.deprecated | #a23333 | italic |
| invalid.illegal | #a23333 | italic |
| invalid.unimplemented | #a23333 | italic |
| message.error | #a23333 | — |
| text.html.derivative, storage.modifier.package, storage.modifier.import, storage.type.java | #393a34 | — |
| invalid.illegal.unrecognized-tag.html | — | normal |
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}!`;
}