Ario
Publisher: Quentin LavievilleThemes in package: 1
Ario is a dark theme which aims to improve productivity by using eyes friendly colors.
Ario is a dark theme which aims to improve productivity by using eyes friendly colors.
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 | #ABABAB | |
| storage.type.class.jsdoc | #19D1E5 | |
| variable.other.jsdoc | #FFFFFF | |
| keyword.operator | #DEEBFF80 | |
| storage.modifier | #ABD5FF | italic |
| storage.type | #21FFB5 | italic |
| entity.name.function, meta.function-call.generic | #45A1ED | |
| entity.name.type | #14CCFF | |
| entity.other.inherited-class | #ABD5FF | |
| entity.name.tag | #FF3F4F | |
| entity.name.section | #FF3F4F | |
| entity.other.attribute-name | #FF5370 | italic |
| variable.language | #FF8714 | |
| constant.language | #17FF93 | |
| variable.parameter | #FF9700 | italic |
| string | #FFCC66 | |
| constant.numeric | #13E8D6 | |
| constant.language.boolean, constant.language.json | #FF4DFF | |
| variable.other.property | #FF8714 | |
| variable.other.object | #45A1ED | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.interpolation.begin.bracket.curly, punctuation.definition.interpolation.end.bracket.curly | #FF3F4F | |
| punctuation | #DEEBFF80 | |
| punctuation.accessor, punctuation.definition.entity | #FFFFFF | |
| punctuation.separator.key-value | #FF3F4F | |
| punctuation.separator.key-value.mapping | #FFFFFF | |
| punctuation.definition.heading | #ABABAB | |
| keyword | #DEEBFF80 | |
| keyword.type | #DEEBFF80 | |
| support | #F0F8FF | |
| support.type.property-name.css | #45B8FF | |
| support.function | #21FFB5 | italic |
| support.class | #FF5370 | |
| support.class.component | #FF3F4F | |
| support.class.builtin | #45A1ED | |
| markup.underline | #19D1E5 |
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}!`;
}