Axiomatic
Publisher: xcuzalexThemes in package: 2
A premium, high-contrast theme series with semantic precision and a sophisticated aesthetic.
A premium, high-contrast theme series with semantic precision and a sophisticated aesthetic.
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 |
|---|---|---|
| meta.attribute, meta.annotation, variable.annotation | #50A14F | — |
| comment, punctuation.definition.comment | #A0A1A7 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language | #986801 | — |
| entity, entity.name | #4078F2 | — |
| variable.parameter.function | #986801 | italic |
| entity.name.tag | #E45649 | — |
| keyword | #A626A4 | italic |
| storage | #A626A4 | — |
| storage.type | #C18401 | italic |
| storage.modifier.package, storage.modifier.import | #A626A4 | — |
| string, punctuation.definition.string | #50A14F | — |
| support | #0184BC | — |
| property, meta.property-name | #E45649 | — |
| variable | #986801 | — |
| variable.other | #986801 | — |
| variable.other.readwrite | #986801 | — |
| entity.name.variable | #986801 | — |
| variable.other.object | #986801 | — |
| variable.other.property | #50A14F | — |
| support.variable.property | #50A14F | — |
| meta.object-literal.key | #50A14F | — |
| support.type.property-name | #50A14F | — |
| meta.property-name | #50A14F | — |
| entity.name.function | #0184BC | bold |
| support.function | #50A14F | — |
| support.class | #50A14F | — |
| entity.name.type | #A626A4 | — |
| entity.name.type.struct | #A626A4 | — |
| entity.name.type.enum | #E45649 | — |
| entity.name.type.trait | #0184BC | italic |
| variable.other.member | #0184BC | — |
| entity.name.variable.field | #0184BC | — |
| variable.language.this | #E45649 | 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}!`;
}