Oriole Themes
Publisher: ZushiHThemes in package: 4
Warm amber/honey theme family — Light, Light Contrast, Night, Honey. Tuned for Ruby/Rails, Vue, JS and Svelte.
Warm amber/honey theme family — Light, Light Contrast, Night, Honey. Tuned for Ruby/Rails, Vue, JS and Svelte.
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 |
|---|---|---|
| keyword, keyword.control, storage, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, variable.language, keyword.other.special-method, keyword.control.directive, entity.name.tag, meta.tag.sgml, punctuation.definition.tag, keyword.control.svelte, entity.other.keyword.directive, punctuation.section.embedded | #8f3f00 | — |
| string, string.quoted, string.template, string.interpolated, string.regexp, constant.other.symbol, constant.other.symbol.ruby, punctuation.definition.string | #3a5613 | — |
| entity.name.function, entity.name.method, support.function, meta.function-call, variable.function, meta.definition.method | #2d4653 | — |
| entity.name.type, entity.name.class, entity.name.type.class, entity.other.inherited-class, support.class, support.type, entity.name.namespace, entity.name.type.module, variable.other.constant.ruby, entity.name.tag.component | #6f4519 | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, support.constant, variable.other.constant | #6d4310 | — |
| variable, variable.other, variable.parameter, variable.other.readwrite, variable.other.property, variable.other.object.property, variable.other.readwrite.instance.ruby, meta.object-literal.key, entity.other.attribute-name, support.type.property-name | #463514 | — |
| comment, punctuation.definition.comment, string.comment | #585129 | italic |
| punctuation, meta.brace, keyword.operator, punctuation.separator, punctuation.terminator, punctuation.definition.template-expression | #3a2c14 | — |
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}!`;
}