Ember Theme
Publisher: DonPedroTVThemes in package: 1
A cozy dark theme with warm coral accents, soft contrast, and muted syntax colors that stay easy on the eyes through long sessions.
A cozy dark theme with warm coral accents, soft contrast, and muted syntax colors that stay easy on the eyes through long sessions.
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 | #787f78 | italic |
| string, constant.other.symbol | #b8ce7b | — |
| constant.numeric, constant.language | #c792ea | — |
| keyword, storage, storage.type | #ca8d78 | — |
| entity.name.function, support.function | #83b7c6 | — |
| entity.name.type, support.class, support.type | #ceb478 | — |
| variable.parameter, variable.language | #b8bcb5 | — |
| keyword.operator, punctuation | #999f97 | — |
| invalid | #ffffff | — |
| entity.name.tag.yaml, entity.name.tag property.yaml, support.type.property-name.yaml, variable.other.key.yaml | #78b9d6 | — |
| string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.out.yaml | #b9d978 | — |
| constant.numeric.yaml, constant.language.yaml | #c792ea | — |
| keyword.control.flow.yaml, punctuation.definition.block.sequence.item.yaml | #91c0cf | — |
| punctuation.separator.key-value.yaml, punctuation.definition.mapping.yaml | #6f7882 | — |
| comment.line.number-sign.yaml | #697482 | italic |
| variable.other.php, variable.language.php, variable.parameter.php | #8fc7e3 | — |
| variable.other.property.php, meta.property.object.php | #95b8c8 | — |
| entity.name.function.php, support.function.php, meta.function-call.php | #d6c17a | — |
| entity.name.type.class.php, support.class.php, support.type.php | #83c5b2 | — |
| keyword.control.php, storage.type.php, storage.modifier.php | #c58bc3 | — |
| constant.numeric.php | #c792ea | — |
| string.quoted.php, string.unquoted.php | #b8ce7b | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.parameter.js, variable.parameter.ts | #b8bcb5 | — |
| entity.name.function.js, entity.name.function.ts, support.function.js, support.function.ts | #83b7c6 | — |
| entity.name.type.ts, entity.name.type.module.ts, support.class.js, support.class.ts | #ceb478 | — |
| keyword.control.js, keyword.control.ts, storage.type.js, storage.type.ts | #ca8d78 | — |
| string.quoted.js, string.quoted.ts, template.expression.js | #b8ce7b | — |
| markup.heading | #e5924f | bold |
| markup.bold | #e5dfd2 | bold |
| markup.italic | #d5d0c5 | italic |
| markup.underline.link, string.other.link | #78b9d6 | — |
| markup.inline.raw | #83c5b2 | — |
| markup.quote | #9c978d | italic |
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}!`;
}