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 | #e5dca4 | — |
| string.regexp | #e2b88d | — |
| constant.numeric | #74d2b7 | — |
| constant.language, constant.other.enum.php | #9486e4 | — |
| constant.character, constant.other | #94aef9 | — |
| variable | #daddff | — |
| variable.language.this | #c45a99 | — |
| keyword, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.word | #9f95e9 | — |
| keyword.operator | #88a4f7 | — |
| keyword.control | #9f95e9 | italic |
| storage.type, storage.modifier | #c45a99 | — |
| storage.modifier.package, storage.modifier.import | #daddff | — |
| entity.name.type, entity.other.inherited-class, support.class, support.type.primitive | #88a4f7 | — |
| entity.name.function | #87bff7 | — |
| variable.parameter | #d0d3ff | italic |
| entity.name.tag | #c45a99 | — |
| entity.other.attribute-name | #74d2b7 | — |
| support.function | #8fc8fa | — |
| support.constant | #94aef9 | — |
| punctuation | #a0a3cc | — |
| meta.property-name | #87bff7 | — |
| meta.property-value | #e5dca4 | — |
| markup.bold | #e2b88d | bold |
| markup.italic | #9486e4 | italic |
| markup.heading | #87bff7 | bold |
| markup.underline.link | #88a4f7 | — |
| markup.inserted | #74d2b7 | — |
| markup.deleted | #bd4277 | — |
| markup.changed | #e2b88d | — |
| 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 | — |
| 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 | #c45a99 | italic |
| entity.name.super.rust | #c45a99 | — |
| keyword.operator.comparison.rust, keyword.operator.arithmetic.rust, keyword.operator.bitwise.rust, keyword.operator.logical.rust, keyword.operator.misc.rust, punctuation.operator.assignment.rust | #88a4f7 | — |
| 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 | #7ed7c0 | — |
| string.interpolated.rust constant.other.placeholder.rust | #e2b88d | — |
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}!`;
}