Eidolon Theme
Publisher: Eurico Magalhães NetoThemes in package: 5
Um tema baseado na paleta de cores sóbrias e minimalista.
Um tema baseado na paleta de cores sóbrias e minimalista.
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 | #63658b | italic |
| string, punctuation.definition.string, text.html.basic string.quoted.double.html, text.html.basic string.quoted.single.html, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, meta.tag string.quoted.double, meta.tag string.quoted.single, text.html.derivative meta.tag string.quoted.double, text.html.derivative meta.tag string.quoted.single, source.js.jsx meta.tag.jsx string.quoted, source.ts.tsx meta.tag.tsx string.quoted, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, source.js.jsx meta.tag.jsx punctuation.definition.string.begin, source.js.jsx meta.tag.jsx punctuation.definition.string.end, source.ts.tsx meta.tag.tsx punctuation.definition.string.begin, source.ts.tsx meta.tag.tsx punctuation.definition.string.end, meta.tag punctuation.definition.string.begin, meta.tag punctuation.definition.string.end, string.quoted.single.css, string.quoted.double.css, source.css punctuation.definition.string.begin, source.css punctuation.definition.string.end | #e5dca4 | — |
| string.regexp | #e2b88d | — |
| constant.numeric, constant.language, constant.other.enum.php, keyword.other.unit.css, constant.numeric.css | #74d2b7 | — |
| constant.character, constant.other, support.constant | #94aef9 | — |
| variable | #daddff | — |
| keyword, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.word, storage.type, storage.modifier, variable.language.this, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #9f95e9 | — |
| support.class.component.jsx, support.class.component.tsx | #88a4f7 | — |
| keyword.control, variable.language.this | — | italic |
| keyword.operator, punctuation | #a0a3cc | — |
| storage.modifier.package, storage.modifier.import | #daddff | — |
| entity.name.type, entity.other.inherited-class, support.class, support.type.primitive, entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.id.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, support.type.property-name.css, meta.property-name.css | #88a4f7 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #87bff7 | — |
| variable.parameter | #d0d3ff | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.array.json support.type.property-name.json | #87bff7 | — |
| source.json meta.structure.dictionary.value.json string.quoted.double.json | #e5dca4 | — |
| source.json meta.structure.dictionary.json constant.language.json | #9486e4 | — |
| punctuation.definition.heading.markdown | #9f95e9 | — |
| markup.inline.raw.string.markdown | #e5dca4 | — |
| markup.bold | #e2b88d | bold |
| markup.italic | #9f95e9 | italic |
| markup.heading | #87bff7 | bold |
| markup.underline.link | #88a4f7 | — |
| markup.inserted | #74d2b7 | — |
| markup.deleted | #bd4277 | — |
| markup.changed | #e2b88d | — |
| entity.name.function.macro.rust | #8fc8fa | — |
| entity.name.type.rust | #88a4f7 | — |
| entity.name.module.rust | #94aef9 | — |
| entity.name.type.struct.rust | #88a4f7 | — |
| entity.name.type.enum.rust | #88a4f7 | — |
| entity.name.type.trait.rust | #9be9f8 | — |
| entity.name.lifetime.rust | #d0d3ff | italic |
| keyword.other.crate.rust | #c45a99 | — |
| entity.name.type.self.rust | #9f95e9 | italic |
| entity.name.super.rust | #9f95e9 | — |
| keyword.operator.comparison.rust, keyword.operator.arithmetic.rust, keyword.operator.bitwise.rust, keyword.operator.logical.rust, keyword.operator.misc.rust, punctuation.operator.assignment.rust | #a0a3cc | — |
| punctuation.separator.colon.rust, punctuation.separator.comma.rust, punctuation.separator.type-classification.rust, keyword.operator.arrow.skinny.rust | #a0a3cc | — |
| meta.attribute.rust punctuation.definition.attribute.rust | #daddff | 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}!`;
}