halcyon-dark-theme
Publisher: James PatrickThemes in package: 1
My first theme. Releatively high-constrast black-yellow combo.
My first theme. Releatively high-constrast black-yellow combo.
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 | #888888 | — |
| string | #3cd31e | — |
| constant.language.boolean | #f77669 | — |
| constant.numeric | #f77669 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #ffcc00 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #ffcc00 | — |
| entity.name.function | #ede574 | |
| meta.function entity.name.function | #f115df | — |
| meta.function-call.python | #c1f6f8 | — |
| meta.function-call.arguments.python | #c1f6f8 | — |
| meta.function.parameters.python | #c1f6f8 | — |
| punctuation.definition.decorator.python | #ffcc00 | — |
| entity.name.function, support.function | #f115df | — |
| variable.parameter.function.python | #ffcc00 | |
| storage.type, storage.modifier | #ffcc00 | — |
| support.module, support.node | #82AAFF | — |
| support.type | #e200f6 | — |
| entity.name.type, entity.other.inherited-class | #FFCB6B | — |
| entity.name.type.class | #6be9ff | — |
| variable.object.property | #C3E88D | — |
| meta.definition.method entity.name.function | #FFCB6B | — |
| template.expression.begin, template.expression.end | #C3E88D | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #7FCAC3 | — |
| constant.language.json | #C3E88D | — |
| entity.other.attribute-name.class | #FFCB6B | — |
| entity.other.attribute-name.id | #FFCB6B | — |
| source.css entity.name.tag | #FA6981 | — |
| meta.tag, punctuation.definition.tag | #B2CCD6 | — |
| entity.name.tag | #FA6981 | — |
| entity.other.attribute-name | #FFCB6B | — |
| markup.heading | #B2CCD6 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #B2CCD6 | — |
| text.html.markdown markup.quote | #FFCB6B | — |
| text.html.markdown beginning.punctuation.definition.list | #C3E88D | — |
| markup.italic | #C3E88D | italic |
| markup.bold | #C3E88D | bold |
| markup.bold markup.italic, markup.italic markup.bold | #C3E88D | italic bold |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}