HearthCode Theme
Publisher: HearthCodeThemes in package: 4
HearthCode Theme: two flagship low-glare directions for VS Code: warm-neutral Ember and dry editorial Moss, each in dark and light.
HearthCode Theme: two flagship low-glare directions for VS Code: warm-neutral Ember and dry editorial Moss, each in dark and light.
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 | #756958 | italic |
| keyword, storage.type, storage.modifier, keyword.control | #ca5b41 | bold |
| keyword.operator, keyword.operator.assignment | #9c978f | |
| meta.function-call entity.name.function, meta.function-call.js entity.name.function.js, meta.function-call.ts entity.name.function.ts, meta.function-call.py entity.name.function.py, meta.function-call.python entity.name.function.python, meta.function-call.go entity.name.function.go, meta.function-call.rust entity.name.function.rust | #6f94a4 | — |
| meta.method-call entity.name.function, meta.method-call.js entity.name.function.js, meta.method-call.ts entity.name.function.ts, meta.method-call.py entity.name.function.py, meta.method-call.python entity.name.function.python, meta.method-call.go entity.name.function.go, meta.method-call.rust entity.name.function.rust | #ad6a45 | — |
| entity.name.function, support.function, meta.function-call.generic | #6f94a4 | — |
| entity.name.function.member, entity.name.function.member.python, entity.name.function.member.go, entity.name.function.member.rust | #ad6a45 | — |
| variable.other.property, variable.other.member, meta.property-name, support.type.property-name | #788058 | — |
| string, string.quoted, string.template, string.regexp | #8eaa79 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #aa7a94 | — |
| entity.name.type, entity.name.class, storage.type.java, storage.type.primitive.java, entity.name.struct.rust, entity.name.type.class, support.type, support.type.builtin, support.class | #99904c | italic |
| variable, variable.other.readwrite, variable.other.constant | #c3bfb9 | — |
| meta.object-literal.key | #b7774f | — |
| entity.other.attribute-name | #5ea2c4 | — |
| entity.name.tag, punctuation.definition.tag | #af513b | — |
| meta.decorator, punctuation.decorator | #caa46c | italic |
| punctuation, meta.brace | #a29663 | — |
| constant.other.color, support.constant | #aa7a94 | — |
| markup.heading | #e1ba73 | bold |
| markup.bold | #c26f59 | bold |
| markup.italic | #c89254 | italic |
| markup.inline.raw, markup.fenced_code | #8fbd79 | — |
| markup.underline.link | #8fbd79 | — |
| invalid.deprecated | #ca8364 | strikethrough |
| invalid.illegal | #ca8364 | 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}!`;
}