Umbra Charcoal
Publisher: Eduardo AugustoThemes in package: 2
Ambientes digitais com menos ruído e mais presença. Editor dark charcoal com sintaxe semântica e acentos controlados.
Ambientes digitais com menos ruído e mais presença. Editor dark charcoal com sintaxe semântica e acentos controlados.
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 | #697271 | italic |
| comment.block.documentation, comment.line.documentation | #858A89 | italic |
| string, punctuation.definition.string | #CDA27C | — |
| punctuation.definition.template-expression | #C78995 | — |
| string.regexp | #C78995 | — |
| constant.character.escape | #A9B4C8 | — |
| constant.numeric | #D0B07C | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #83B89A | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier | #C78995 | bold |
| keyword.operator, punctuation.accessor | #C78995 | — |
| entity.name.type, entity.name.namespace, entity.name.scope, support.type, support.class, support.variable, constant, variable.other.constant, support.constant | #A9B4C8 | — |
| entity.name.function, entity.name.method, entity.name.function.constructor, support.function, variable.function, support.class.component, meta.function-call | #B79BDD | — |
| meta.new.expr entity.name.type | #B79BDD | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, storage.type.annotation, entity.other.attribute | #9D7FD1 | — |
| entity.name.tag | #CDA27C | — |
| punctuation.definition.tag | #858A89 | — |
| entity.other.attribute-name, meta.attribute | #B79BDD | — |
| meta.object-literal.key, string.unquoted.label | #CDA27C | — |
| support.type.property-name.css, meta.property-name.css | #B4BEC0 | — |
| support.constant.property-value.css, meta.property-value.css | #CDA27C | — |
| meta.structure.dictionary.key, meta.mapping.key, entity.name.tag.yaml, support.type.property-name.json | #A9B4C8 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property-name, entity.other.label | #B4BEC0 | — |
| variable, variable.other, variable.language, meta.embedded | #C5C7C5 | — |
| variable.parameter, meta.parameter | #B4BEC0 | italic |
| variable.language.this, variable.language.self, variable.language.super | #9D7FD1 | — |
| variable.other.special, variable.language.special | #9D7FD1 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition | #7E8787 | — |
| punctuation.section, punctuation.definition.block, meta.brace, meta.bracket | #858A89 | — |
| markup.raw, string.other.link, markup.code | #B892B7 | — |
| markup.heading, entity.name.section | #C5C7C5 | bold |
| markup.bold | #C5C7C5 | bold |
| markup.italic | #C5C7C5 | italic |
| markup.strikethrough | #858A89 | strikethrough |
| markup.underline.link, string.other.link, meta.link | #9AB7B0 | — |
| markup.inserted | #75A88A | — |
| markup.deleted | #C9858D | — |
| markup.changed | #B9A16B | — |
| invalid, invalid.illegal | #E0A0A7 | — |
| invalid.deprecated | #B9A16B | italic 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}!`;
}