Lexifry Theme
Publisher: Alex FrydlThemes in package: 1
A pretty, practical theme.
A pretty, practical theme.
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 |
|---|---|---|
| support.class.component.tsx | #FFBAE9 | — |
| comment, punctuation.definition.comment | #61495C | — |
| keyword, storage.modifier, storage.type, keyword.operator.question.rust, keyword.operator.borrow.and.rust, keyword.operator.dereference, punctuation.definition.keyword.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.css punctuation | #fc0fc0 | — |
| keyword.operator, punctuation, meta.brace | #CE83DF | — |
| keyword.operator.access.dot.rust, punctuation.accessor, punctuation.definition.array, meta.brace.square.ts, source.css keyword.other.unit, constant.other.color.rgb-value.hex.css punctuation, source.tsx punctuation.section.embedded | #A9C0C2 | — |
| punctuation.brackets.angle.rust, keyword.operator.namespace.rust, meta.brace.angle.ts | #A6BEBF | — |
| punctuation.brackets.round.rust, meta.brace.round.ts | #A19CB8 | — |
| keyword.operator.comparison, keyword.operator.math, keyword.operator.logical | #FFFAF0 | — |
| keyword.operator.comparison.rust, keyword.operator.dereference.rust, keyword.operator.math.rust, keyword.operator.logical.rust | #FFBAE9 | — |
| string, punctuation.definition.string, meta.property-value.css, entity.other.attribute-name.id.css, entity.other.attribute-name.id.css punctuation, entity.other.attribute-name.class.css, entity.other.attribute-name.class.css punctuation | #FDA43A | — |
| punctuation.definition.interpolation, meta.interpolation, constant.character.escape | #FDD50D | — |
| entity.name.type | #9FF6FE | — |
| constant.language | #FDD50D | — |
| constant.numeric | #FDD50D | — |
| support.type.property-name.json, support.type.property-name.json punctuation | #fc0fc0 | — |
| source.json string, source.json string punctuation.definition.string | #FFFAF0 | — |
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}!`;
}