Endless Bounty
Publisher: chronickThemes in package: 2
A warm, organic VS Code color theme inspired by fresh-picked vegetables at the farmers market. Featuring spinach greens, carrot oranges, apple reds, and earthy soil tones.
A warm, organic VS Code color theme inspired by fresh-picked vegetables at the farmers market. Featuring spinach greens, carrot oranges, apple reds, and earthy soil tones.
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 | #788068 | italic |
| keyword, storage.type, storage.modifier | #d05010 | — |
| string, string.quoted | #2d7818 | — |
| entity.name.function, support.function, meta.function-call | #c03030 | — |
| variable, variable.other, variable.language | #a06008 | — |
| entity.name.type, entity.name.class, support.type, support.class | #7030a0 | — |
| constant.numeric | #b07020 | — |
| constant, constant.language, constant.character | #b82020 | — |
| variable.other.property, meta.object-literal.key, entity.name.tag.yaml | #5a4830 | — |
| punctuation, meta.brace | #605040 | — |
| keyword.operator | #605040 | — |
| variable.parameter | #5a4830 | italic |
| entity.name.tag, punctuation.definition.tag | #c03030 | — |
| entity.other.attribute-name | #a06008 | — |
| support.type.property-name.css | #2858a0 | — |
| support.constant.property-value.css | #2d7818 | — |
| string.regexp | #108860 | — |
| constant.character.escape | #108860 | — |
| invalid, invalid.illegal | #c03030 | underline |
| heading.1.markdown, markup.heading.setext.1, entity.name.section.markdown | #d05010 | bold |
| heading.2.markdown, markup.heading.setext.2 | #c03030 | bold |
| heading.3.markdown | #a06008 | bold |
| heading.4.markdown | #2d7818 | bold |
| heading.5.markdown | #7030a0 | bold |
| heading.6.markdown | #2858a0 | bold |
| markup.bold | #a06008 | bold |
| markup.italic | #7030a0 | italic |
| markup.underline.link, string.other.link | #2858a0 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #2d7818 | — |
| markup.inline.raw, markup.fenced_code | #108860 | — |
| markup.quote | #788068 | italic |
| punctuation.definition.list.begin.markdown | #d05010 | — |
| entity.name.ingredient.cooklang, punctuation.definition.ingredient.cooklang | #2d7818 | bold |
| entity.name.cookware.cooklang, punctuation.definition.cookware.cooklang | #c03030 | bold |
| entity.name.timer.cooklang, punctuation.definition.timer.cooklang | #7030a0 | — |
| constant.numeric.cooklang | #b07020 | — |
| keyword.other.unit.cooklang | #a06008 | — |
| entity.name.tag.metadata.cooklang | #2858a0 | — |
| string.unquoted.metadata.cooklang | #108860 | — |
| support.type.property-name.json | #2858a0 | — |
| entity.name.tag.yaml | #2858a0 | — |
| variable.language.this, variable.language.self | #b82020 | italic |
| keyword.control.import, keyword.control.from, keyword.control.export | #d05010 | — |
| entity.name.module, entity.name.namespace | #a06008 | — |
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}!`;
}