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 | #50fa7b | — |
| meta.annotation | #50fa7b | — |
| variable.annotation | #50fa7b | — |
| comment | #6272a4 | italic |
| punctuation.definition.comment | #6272a4 | italic |
| constant | #bd93f9 | — |
| entity.name.constant | #bd93f9 | — |
| variable.other.constant | #bd93f9 | — |
| variable.language | #bd93f9 | — |
| constant.numeric | #bd93f9 | — |
| constant.language.boolean | #bd93f9 | — |
| entity | #50fa7b | — |
| entity.name | #50fa7b | — |
| variable.parameter.function | #ffb86c | italic |
| entity.name.tag | #ff79c6 | — |
| keyword | #ff79c6 | italic |
| storage | #ff79c6 | — |
| storage.type | #8be9fd | italic |
| storage.modifier.package | #ff79c6 | — |
| storage.modifier.import | #ff79c6 | — |
| string | #f1fa8c | — |
| punctuation.definition.string | #f1fa8c | — |
| support | #8be9fd | — |
| property | #50fa7b | — |
| meta.property-name | #50fa7b | — |
| variable | #f8f8f2 | — |
| variable.other | #f8f8f2 | — |
| variable.other.readwrite | #f8f8f2 | — |
| entity.name.variable | #f8f8f2 | — |
| variable.other.object | #f8f8f2 | — |
| variable.other.property | #50fa7b | — |
| support.variable.property | #50fa7b | — |
| meta.object-literal.key | #50fa7b | — |
| support.type.property-name | #50fa7b | — |
| meta.property-name | #50fa7b | — |
| entity.name.function | #50fa7b | bold |
| support.function | #50fa7b | — |
| support.class | #8be9fd | — |
| entity.name.type | #8be9fd | — |
| entity.name.type.struct | #8be9fd | — |
| entity.name.type.enum | #bd93f9 | — |
| entity.name.type.trait | #8be9fd | italic |
| entity.name.type.interface | #8be9fd | italic |
| entity.name.type.class | #8be9fd | — |
| entity.name.type.alias | #8be9fd | — |
| support.type.primitive | #8be9fd | — |
| storage.type | #8be9fd | italic |
| entity.name.function.macro | #ff79c6 | bold |
| support.type | #8be9fd | — |
| support.class | #8be9fd | — |
| support.constant | #bd93f9 | — |
| constant.other.placeholder | #ffb86c | — |
| variable.other.constant | #bd93f9 | — |
| variable.language.special | #bd93f9 | — |
| keyword.operator | #ff79c6 | — |
| punctuation.separator | #f8f8f2 | — |
| punctuation.terminator | #f8f8f2 | — |
| punctuation.delimiter | #f8f8f2 | — |
| punctuation.section | #f8f8f2 | — |
| meta.brace.round | #f8f8f2 | — |
| meta.brace.square | #f8f8f2 | — |
| meta.brace.curly | #f8f8f2 | — |
| variable.other.member | #50fa7b | — |
| entity.name.variable.field | #50fa7b | — |
| variable.language.this | #bd93f9 | italic |
| keyword.other.unit | #bd93f9 | — |
| punctuation.separator.key-value | #ff79c6 | — |
| markup.heading | #bd93f9 | bold |
| markup.italic | #f1fa8c | italic |
| markup.bold | #ffb86c | bold |
| markup.underline | #8be9fd | underline |
| markup.inline.raw | #50fa7b | — |
| markup.list | #f1fa8c | — |
| markup.quote | #f1fa8c | italic |
| meta.link | #8be9fd | — |
| markup.underline.link | #8be9fd | underline |
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}!`;
}