Forró
Publisher: yerko-escalonaThemes in package: 10
A dark theme built from Chilean-Brazilian-Viennese roots. Terracotta, ochre, forest green, ivory.
A dark theme built from Chilean-Brazilian-Viennese roots. Terracotta, ochre, forest green, ivory.
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 |
|---|---|---|
| source, text | #F5E6D3 | — |
| comment, punctuation.definition.comment | #70604E | italic |
| comment.block.documentation | #7A6A58 | italic |
| keyword, keyword.control, keyword.other, storage.type.class, storage.type.function, storage.type.import, storage.type.interface, storage.modifier | #BE6A1E | — |
| keyword.operator.logical, keyword.operator.expression, keyword.operator.new, keyword.operator.delete | #C8622A | — |
| keyword.operator, punctuation.operator | #8A7A68 | — |
| storage | #BE6A1E | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.constant | #F5E6D3 | — |
| variable.language.this, variable.language.self, variable.language.super | #BE6A1E | italic |
| variable.parameter, meta.function.parameter | #D4916A | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, entity.name.tag.yaml | #E8A055 | — |
| entity.name.function, meta.function entity.name.function, meta.definition.function entity.name.function | #C8622A | — |
| meta.function-call entity.name.function, meta.function-call.generic, support.function | #C8622A | — |
| support.function.builtin, support.function.console | #BE6A1E | — |
| entity.name.type, entity.name.class, entity.name.struct, support.class, support.type | #5A9A5A | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.type-parameter | #6AAA70 | italic |
| entity.name.namespace, entity.name.module, support.module | #6AAA70 | — |
| entity.name.type.primitive, support.type.primitive, support.type.builtin | #5A9A5A | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #D4916A | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple | #E8A055 | — |
| string.template, punctuation.definition.template-expression | #E8A055 | — |
| meta.template.expression | #F5E6D3 | — |
| constant.character.escape | #C8622A | — |
| string.regexp | #D4916A | — |
| constant.numeric | #C8622A | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #BE6A1E | — |
| constant, constant.other, variable.other.constant, constant.language | #BE6A1E | — |
| punctuation.definition.block, punctuation.brackets, meta.brace, punctuation.section.block, punctuation.section.array | #8A7A68 | — |
| punctuation.accessor, punctuation.separator, punctuation.terminator | #7A6A58 | — |
| entity.name.tag, meta.tag, support.class.component | #BE6A1E | — |
| punctuation.definition.tag | #70604E | — |
| entity.other.attribute-name | #D4916A | — |
| entity.name.tag.css, meta.selector | #BE6A1E | — |
| support.type.property-name.css, support.type.property-name | #D4916A | — |
| support.constant.property-value.css, support.constant.color | #E8A055 | — |
| variable.parameter.function.language.special.self.python | #BE6A1E | italic |
| entity.name.function.decorator.python | #D4916A | italic |
| support.function.magic.python | #5A9A5A | — |
| markup.heading, entity.name.section | #BE6A1E | bold |
| markup.bold | #F5E6D3 | bold |
| markup.italic | #D4916A | italic |
| markup.inline.raw | #E8A055 | — |
| markup.underline.link | #C8622A | — |
| support.type.property-name.json | #D4916A | — |
| entity.name.tag.yaml | #D4916A | — |
| invalid, invalid.illegal | #F5E6D3 | — |
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}!`;
}