Icefall
Publisher: arzgThemes in package: 1
A cold, clear theme
A cold, clear theme
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 |
|---|---|---|
| punctuation.separator | #A0AAD6 | |
| keyword | #A0AAD6 | |
| storage | #A0AAD6 | |
| variable.language.self | #A0AAD6 | |
| keyword.control.directive | #DF9D6F | |
| keyword.preprocessor | #DF9D6F | |
| punctuation.separator.hash.cs | #DF9D6F | |
| variable.parameter | #DF9D6F | |
| entity.name.variable.parameter | #DF9D6F | |
| comment | #F6F8FF | italic |
| comment.block.documentation | #F6F8FF | |
| comment.block.javadoc | #F6F8FF | |
| entity.name.type | #F6F8FF | |
| entity.name.package | #F6F8FF | |
| entity.name.function.go | #F6F8FF | |
| entity.name.function.python | #F6F8FF | |
| variable.other.enummember | #F6F8FF | |
| string | #7BA7B2 | |
| constant | #B1A5D9 | |
| support.constant | #B1A5D9 | |
| entity.name.variable.preprocessor | #B1A5D9 | |
| entity.name.type.rust | #81A1CA | |
| storage.type.cs | #81A1CA | |
| entity.name.variable.field | #9DA471 | |
| variable.other.object.property | #9DA471 | |
| support.type.property-name | #9DA471 | |
| entity.other.attribute-name.html | #9DA471 | |
| entity.name.namespace | #A0AAD6 | |
| entity.name.type.namespace | #A0AAD6 | |
| entity.name.tag | #81A1CA | |
| punctuation.definition.tag | #737B9E | |
| punctuation.section.embedded.begin.hugo | #737B9E | |
| punctuation.section.embedded.end.hugo | #737B9E | |
| entity.other.attribute-name | #81A1CA | |
| entity.name.function.decorator | #737B9E | |
| markup.heading | #F6F8FF | |
| markup.bold | — | bold |
| markup.italic | — | italic |
| string.other.link.title.markdown | #C3C5CC | |
| constant.other.reference.link.markdown | #C3C5CC | |
| punctuation.definition.heading.markdown | #81A1CA | |
| punctuation.definition.bold.markdown | #81A1CA | |
| punctuation.definition.italic.markdown | #81A1CA | |
| punctuation.definition.raw.markdown | #81A1CA | |
| punctuation.definition.string.begin.markdown | #81A1CA | |
| punctuation.definition.string.end.markdown | #81A1CA | |
| punctuation.definition.metadata.markdown | #81A1CA | |
| punctuation.definition.list.begin.markdown | #81A1CA | |
| punctuation.definition.constant.markdown | #81A1CA | |
| punctuation.definition.constant.begin.markdown | #81A1CA | |
| punctuation.definition.constant.end.markdown | #81A1CA | |
| punctuation.separator.key-value.markdown | #81A1CA | |
| punctuation.definition.markdown | #81A1CA | |
| fenced_code.block.language.markdown | #81A1CA | |
| meta.separator.markdown | #81A1CA | |
| meta.scope.message.git-commit | #F6F8FF | |
| invalid.deprecated.line-too-long.git-commit | #DF9D6F | |
| invalid.illegal.line-too-long.git-commit | #E69688 | |
| markup.inserted | #9DA471 | |
| markup.deleted | #E69688 | |
| markup.changed | #DF9D6F | |
| meta.diff.range | #737B9E | |
| meta.diff.header | #737B9E | |
| meta.diff.index | #737B9E | |
| comment.line.number-sign.git-commit | #737B9E | |
| magit.header | #F6F8FF | |
| magit.subheader | #81A1CA | |
| magit.entity | #B1A5D9 |
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}!`;
}