Oria
Publisher: Quentin LavievilleThemes in package: 1
Fresh matching colors with a touch of darkness for your eyes. Inspired by GPEM and 4 Colors.
Fresh matching colors with a touch of darkness for your eyes. Inspired by GPEM and 4 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 | #FF2E71 | |
| storage.modifier | #21FFB5 | italic |
| storage.type | #2EFF44 | |
| entity.name.function, meta.function-call.generic | #2ED2FF | |
| entity.name.type | #14CCFF | |
| entity.other.inherited-class | #81F900 | |
| entity.name.tag | #FF3F4F | |
| entity.name.section | #FF3F4F | |
| entity.other.attribute-name | #81F900 | |
| variable.language | #FF8714 | |
| constant.language | #BD93F9 | |
| variable.parameter | #FF9700 | italic |
| string | #FFD945 | |
| constant.numeric | #13E8D6 | |
| constant.language.boolean, constant.language.json | #FF4DFF | |
| variable.other.property | #FFFFFF | |
| 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.accessor, punctuation.definition.entity | #FFFFFF | |
| punctuation.separator.key-value | #FF3F4F | |
| punctuation.separator.key-value.mapping | #FFFFFF | |
| punctuation.definition.heading | #ABABAB | |
| keyword | #FF2E71 | |
| keyword.type | #FF2E71 | |
| support | #19D1E5 | |
| support.function | #81F900 | |
| support.class | #45A1ED | |
| 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}!`;
}