janartau
Publisher: ozekThemes in package: 1
A high-fidelity Horizon-Reddish Hybrid theme with bold syntax and midnight-optimized contrast.
A high-fidelity Horizon-Reddish Hybrid theme with bold syntax and midnight-optimized contrast.
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, punctuation.definition.comment | #6A6560 | italic |
| variable, variable.other, variable.other.readwrite, variable.language, support.other.variable, meta.block variable.other | #D4CFC6 | — |
| string constant.other.placeholder | #C47D9E | — |
| variable.parameter | #C4A882 | italic |
| constant.language, constant.character, constant.escape, constant.other.symbol, constant.other.key | #FF7F50 | bold |
| support.constant | #FF7F50 | — |
| entity.name.tag, meta.tag.sgml | #6DC4A8 | bold |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #78746E | — |
| keyword, keyword.control, keyword.other.template, keyword.other.substitution | #FF6347 | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic | #A0503A | — |
| storage.type, storage.modifier, punctuation.separator.inheritance.php | #FF6347 | bold |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.module.js | #C47D9E | bold |
| string, string.other.link | #89C99A | — |
| punctuation.definition.string | #6EAD7E | — |
| string.regexp, punctuation.definition.string.regexp | #89C99A | — |
| constant.numeric, keyword.other.unit | #6DC4A8 | bold |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #6DC4A8 | bold |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id | #6DC4A8 | — |
| punctuation, meta.delimiter, meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.terminator.statement | #78746E | — |
| invalid, invalid.illegal | #FF4500 | bold |
| markup.heading, markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #FF6347 | bold |
| markup.bold | #FF7F50 | bold |
| markup.italic | #FFA07A | italic |
| markup.inline.raw, markup.raw.block | #C4A882 | — |
| markup.underline.link, string.other.link | #C47D9E | — |
| support.type.property-name.json | #6DC4A8 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #6DC4A8 | — |
| support.constant.property-value.css, support.constant.property-value.scss | #C4A882 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #C47D9E | 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}!`;
}