Horizon Reimagined
Publisher: ArchySThemes in package: 6
Dark theme based on Horizon, adjusted highlighting by @ArchyS
Dark theme based on Horizon, adjusted highlighting by @ArchyS
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 | #33333380 | italic |
| constant | #DC3318 | — |
| constant.character.escape | #1D8991 | — |
| entity.name | #F77D26 | — |
| entity.name.function | #1D8991 | — |
| entity.name.tag | #DA103F | bold |
| entity.name.type, storage.type.cs | #F77D26 | — |
| entity.other.attribute-name | #DC3318 | bold |
| entity.other.inherited-class | #F6661E | — |
| entity.other.attribute-name.id | #1D8991 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #F6661E | — |
| entity.name.variable, variable | #DA103F | — |
| keyword | #8A31B9 | bold |
| keyword.operator | #333333 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete | #8A31B9 | — |
| keyword.other.unit | #DC3318 | — |
| markup.quote | #F6661EB3 | italic |
| markup.heading, entity.name.section | #DA103F | — |
| markup.bold | #8A31B9 | bold |
| markup.italic | #1D8991 | italic |
| markup.inline.raw, markup.fenced_code.block | #DC3318 | — |
| markup.underline.link | #F6661E | — |
| storage | #8A31B9 | bold |
| string.quoted, string.template | #F6661E | — |
| string.regexp | #DC3318 | — |
| string.other.link | #DC3318 | — |
| support | #F77D26 | — |
| support.function | #1D8991 | — |
| support.variable | #DA103F | — |
| support.type.property-name, meta.object-literal.key | #DA103F | — |
| support.type.property-name.css | #333333 | — |
| variable.language | #F77D26 | italic |
| variable.parameter | — | italic |
| string.template meta.embedded | #333333 | — |
| punctuation.definition.tag | #DA103FB3 | bold |
| punctuation.separator | #333333 | — |
| punctuation.definition.template-expression | #8A31B9 | — |
| punctuation.section.embedded | #8A31B9 | — |
| punctuation.definition.list | #DC3318 | — |
| string.quoted, string.template | #5AAA87 | — |
| entity.name.variable, variable | #E95678E6 | — |
| variable.parameter | #52D1E2 | italic |
| variable.struct | #AAA160 | — |
| variable.other.readwrite | #E05F75 | — |
| variable.other.property | #ff714d | — |
| variable.interface | #FFAE00 | — |
| string.quoted.docstring | #719e95 | — |
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}!`;
}