Middle-earth Themes
Publisher: bryceThemes in package: 26
Twenty-six color themes drawn from thirteen realms of Middle-earth, each in a dark and a light mode.
Twenty-six color themes drawn from thirteen realms of Middle-earth, each in a dark and a light mode.
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 | #8a7c58 | italic |
| keyword, keyword.control, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #97651e | — |
| entity.name.function, support.function, meta.function-call.generic, meta.function-call | #b5832a | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class, entity.name.namespace | #8a6a2e | — |
| string, string.quoted, string.template, punctuation.definition.string | #7a6a2a | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, support.constant | #a5402a | — |
| constant.character.escape, constant.other.placeholder, constant.character | #a5402a | — |
| variable, variable.other.readwrite, meta.definition.variable.name, variable.parameter | #3a2e1a | — |
| variable.other.constant, variable.other.enummember | #a5402a | — |
| variable.other.property, support.variable.property, meta.object-literal.key | #5a4e30 | — |
| variable.language, variable.language.this, keyword.other.self | #8a6a2e | italic |
| keyword.operator, punctuation.separator, punctuation.terminator, punctuation.accessor | #6e6244 | — |
| entity.name.tag, punctuation.definition.tag | #97651e | — |
| entity.other.attribute-name | #b5832a | — |
| support.type.property-name.css, support.type.property-name | #8a6a2e | — |
| markup.heading, markup.heading entity.name, entity.name.section | #b5832a | bold |
| markup.bold | #a5402a | bold |
| markup.italic | #7a6a2a | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #8a5a1a | — |
| markup.quote | #8a7c58 | italic |
| markup.underline.link, string.other.link | #97651e | — |
| punctuation.definition.list.begin.markdown, markup.list | #b5832a | — |
| invalid, invalid.illegal | #a5402a | — |
| entity.name.label, keyword.control.directive, meta.preprocessor | #a5402a | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #8a6a2e | 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}!`;
}