Hyperlink Theme
Publisher: Nik KaleThemes in package: 1
A dark theme with great colors, inspired by Stef Kors' Hyperlink theme for Nova editor.
A dark theme with great colors, inspired by Stef Kors' Hyperlink theme for Nova editor.
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 | #A8ADB7 | — |
| meta.preprocessor | #A8ADB7 | — |
| keyword, storage, storage.type, keyword.control | #FDD46B | — |
| punctuation.definition, punctuation.section, meta.brace, punctuation.accessor, punctuation.separator | #ffffff | — |
| keyword.operator | #ffffff | — |
| invalid, invalid.illegal | #ffffff | — |
| meta.link | #FDD46B | — |
| constant.language.boolean | #FDD46B | — |
| constant.language.null | #FDD46B | — |
| constant.numeric | #FDD46B | — |
| entity.name | #FDD46B | — |
| constant.other.symbol | #FDD46B | — |
| entity.name.type, entity.name.class, support.type, support.class | #53E0FC | bold |
| variable.other, support.variable | #F08261 | — |
| variable.other.global | #F08261 | — |
| entity.name.function, meta.method-call entity.name.function, meta.function-call entity.name.function | #B8E97B | — |
| support.function | #B8E97B | — |
| variable.other.property, entity.name.method, meta.decorator | #C67BE9 | — |
| support.variable.property | #C67BE9 | — |
| meta.object-literal.key | #FDD46B | — |
| variable.parameter | #F08261 | — |
| string, string.quoted, string.template | #FDD46B | — |
| meta.object-literal.key string | #53E0FC | — |
| string.regexp | #53E0FC | — |
| constant.character.escape.regexp | #B8E97B | — |
| string.unquoted.cdata | #FDD46B | — |
| markup.heading | #FDD46B | — |
| markup.underline | #B8E97B | — |
| markup.bold | #53E0FC | bold |
| markup.italic | #B8E97B | italic |
| markup.strikethrough | #F08261 | strikethrough |
| markup.list | #53E0FC | — |
| markup.fenced_code, markup.inline.raw | #F08261 | — |
| entity.name.tag | #53E0FC | — |
| entity.name.tag.custom, entity.name.tag.other | #B8E97B | — |
| entity.other.attribute-name | #FDD46B | — |
| string.quoted.double.html | #F08261 | — |
| string.quoted.double.html meta.attribute-with-value.href | #C67BE9 | — |
| keyword.control.at-rule | #F08261 | — |
| entity.name.tag.css | #53E0FC | — |
| entity.other.attribute-name.id.css, punctuation.definition.entity.css | #B8E97B | — |
| entity.other.attribute-name.class.css | #FDD46B | — |
| entity.other.attribute-name.pseudo-class.css | #F08261 | — |
| entity.other.attribute-name.pseudo-element.css | #B8E97B | — |
| support.type.property-name.css | #53E0FC | — |
| constant.numeric.css | #F08261 | — |
| support.constant.color.w3c-standard-color-name.css, constant.other.color.rgb-value.css | #C67BE9 | — |
| constant.other.color.rgb-value.hex.css | #C67BE9 | — |
| support.constant.property-value.css | #FDD46B | — |
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}!`;
}