Brynrun
Publisher: Johnny JingleThemes in package: 1
A warm brown-grey colour theme for Dwarven eyes
A warm brown-grey colour theme for Dwarven eyes
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 |
|---|---|---|
| variable | #bfb9b3 | — |
| meta.object-literal.key | #8e8a86 | italic |
| punctuation, meta.brace | #ddd7ce | |
| keyword.operator, storage.type.function.arrow, punctuation.terminator.statement, punctuation.terminator.rule, punctuation.separator, punctuation.comma, punctuation.other.comma, punctuation.semi, punctuation.definition.typeparameters, punctuation.definition.entity.css, punctuation.brackets.angle, punctuation.accessor, punctuation.other.period, punctuation.section.angle-brackets, punctuation.vararg-ellipses | #7d9599 | bold |
| storage, keyword.operator.new, keyword.operator.expression, keyword.control, keyword.local, keyword.other, keyword.function, keyword.package, keyword.struct, keyword.var, storage.type.interface, storage.type.class, storage.type.function, storage.type.rust, storage.type.type, storage.type.template, storage.type.namespace.definition, meta.var.expr storage.type, punctuation.definition.directive | #db9c69 | |
| storage.type, keyword.type, entity.name.type, entity.name.module, entity.other.inherited-class | #9aeacc | |
| support.type.primitive, entity.name.type.primitive, entity.name.type.lifetime, entity.name.type.numeric, storage.type.boolean, keyword.type | #ef924f | — |
| constant.language, variable.other.enummember | #bce0d2 | — |
| variable.language, keyword.other.this | #ef924f | italic |
| comment | #7a8a8c | italic |
| punctuation.definition.comment | #7a8a8c | |
| entity.name.function, support.function | #e0c398 | — |
| string.quoted, string.template, string.other.link.title | #e8ba3c | — |
| punctuation.definition.string, string.quoted.byte.raw, punctuation.definition.char | #ffe542 | — |
| punctuation.definition.keyword.scss | #db9c69 | bold |
| constant.numeric | #c6e288 | — |
| meta.delimiter.decimal.period | #88cc2a | — |
| keyword.other.unit | #88cc2a | italic |
| support.constant.color.w3c-standard-color-name | #bce0d2 | italic |
| constant.other.color.rgb-value.hex | #bfb9b3 | — |
| punctuation.definition.constant | #ddd7ce | bold |
| entity.name.tag | #57a7af | — |
| entity.other.attribute-name | #8e8a86 | — |
| support.class.component | #8fd8e0 | — |
| heading, markup.heading | #e8ba3c | bold |
| punctuation.definition.heading | #ffe542 | bold |
| meta.link.inline | #ddd7ce | — |
| markup.underline.link | #ef924f | underline |
| markup.fenced_code, markup.inline.raw.string | #8fd8e0 | — |
| markup.fenced_code punctuation.definition, markup.inline.raw.string punctuation.definition | #57a7af | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.quote | #8e8a86 | — |
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}!`;
}