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 |
| keyword.control, keyword.operator.logical, keyword.operator.word, keyword.operator.new, keyword.operator.expression | #9486e4 | — |
| storage.type, storage.modifier, keyword.declaration, keyword.other.rust, entity.name.function.declaration, entity.name.type.class, entity.name.type.struct, entity.name.type.enum, entity.name.type.trait | #9f95e9 | — |
| string, punctuation.definition.string | #d0d3ff | — |
| string.regexp | #d4d7ff | — |
| constant.numeric | #d7daff | — |
| constant.language, constant.other.enum.php, constant.other, support.constant | #daddff | — |
| variable, support.variable, meta.definition.variable.js, support.type.property-name, meta.object-literal.key | #cccfff | — |
| variable.language.this, variable.language.self, variable.language.super | #cccfff | — |
| keyword.operator | #a0a3cc | — |
| entity.name.type, support.class, support.type.primitive, meta.primitive.rust | #d7daff | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #daddff | — |
| variable.parameter | #cccfff | — |
| entity.name.tag | #d0d3ff | — |
| entity.other.attribute-name | #d4d7ff | — |
| support.type.property-name.css, meta.property-name.css | #d7daff | — |
| support.constant.property-value.css, meta.property-value.css, constant.other.color.css | #d0d3ff | — |
| keyword.other.unit.css | #d4d7ff | — |
| punctuation, meta.brace, meta.delimiter, meta.bracket | #595b7e | — |
| meta.decorator punctuation.decorator, meta.decorator entity.name.function, storage.type.annotation, meta.attribute.rust | #daddff | italic |
| entity.name.module.rust | #d0d3ff | — |
| entity.name.lifetime.rust | #cccfff | 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}!`;
}