Rosy Byte
Publisher: Andreea IsabelaThemes in package: 1
A dark theme with hot pink accents
A dark theme with hot pink accents
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 | #7A4060 | italic |
| keyword, keyword.control, storage.type, storage.modifier | #FF1493 | — |
| keyword.operator | #FF1493 | — |
| string, string.quoted | #FFB3C6 | — |
| string.template, string.interpolated | #FFB3C6 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #FF1493 | — |
| constant.character.escape | #FF69B4 | — |
| string.regexp | #FF69B4 | — |
| constant.numeric | #FF85A1 | — |
| constant.language | #FF1493 | italic |
| variable.other.constant, constant.other | #FF69B4 | — |
| entity.name.function, meta.definition.method entity.name.function | #FF69B4 | — |
| meta.function-call entity.name.function, support.function | #FF69B4 | — |
| variable.parameter | #E8A0BF | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #DDA0DD | — |
| meta.type.annotation, meta.return.type, support.type.primitive | #DDA0DD | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #E8A0BF | italic |
| variable, variable.other.readwrite | #F0C0D8 | — |
| variable.other.property, support.variable.property, meta.object-literal.key, variable.other.object.property | #FFD0E8 | — |
| variable.language.this, variable.language.self | #FF1493 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #FF1493 | — |
| entity.name.tag | #FF1493 | — |
| entity.other.attribute-name | #FF69B4 | — |
| string.quoted.double.html, string.quoted.single.html | #FFB3C6 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #DDA0DD | — |
| support.type.property-name.css | #FF69B4 | — |
| support.constant.property-value.css, constant.other.color, constant.other.unit | #FFB3C6 | — |
| keyword.control.at-rule | #FF1493 | — |
| support.type.property-name.json | #FF69B4 | — |
| markup.heading, entity.name.section.markdown | #FF1493 | bold |
| markup.bold | #FF69B4 | bold |
| markup.italic | #E8A0BF | italic |
| markup.inline.raw, markup.fenced_code.block | #FFB3C6 | — |
| string.other.link.title.markdown, markup.underline.link.markdown | #DDA0DD | — |
| punctuation.definition.list.begin.markdown | #FF1493 | — |
| punctuation.definition.block, punctuation.separator, punctuation.terminator, meta.brace | #C46A90 | — |
| invalid, invalid.deprecated | #FF1493 | strikethrough |
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}!`;
}