Frost-Theme
Publisher: FrozenProductionsThemes in package: 5
A modern theme blending winter frost aesthetics with Discord's signature colors.
A modern theme blending winter frost aesthetics with Discord's signature colors.
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 | #6A7AA3 | italic |
| variable, variable.parameter, variable.other.object, variable.language | #D0DDEE | — |
| keyword, keyword.control, storage.type, storage.modifier | #88A4FF | — |
| string, string.template, string.quoted.single, string.quoted.double | #B4FFD0 | — |
| constant.numeric, constant.language, constant.character, constant.other | #FFA3A9 | — |
| entity.name.function, support.function, meta.function-call | #ADD6FF | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class | #FFE08F | — |
| entity.name.tag, punctuation.definition.tag | #88A4FF | — |
| entity.other.attribute-name | #C9B3FF | italic |
| keyword.operator | #95F5FF | — |
| meta.decorator, meta.decorator variable.other.readwrite, meta.decorator entity.name.function | #FFE08F | italic |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #95F5FF | — |
| support.constant.property-value, support.constant.font-name, support.constant.color | #B4FFD0 | — |
| invalid, invalid.illegal | #FF6B88 | — |
| terminal.ansiBlack | #1A1B26 | — |
| terminal.ansiBrightBlack | #565A73 | — |
| punctuation.definition.tag.jsx, punctuation.definition.tag.tsx | #88A4FF | — |
| support.class.component.jsx, support.class.component.tsx | #FFE08F | — |
| markup.heading, entity.name.section.markdown | #88A4FF | bold |
| markup.underline.link, string.other.link | #95F5FF | underline |
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}!`;
}