Pink Byte
Publisher: mariah santosThemes in package: 1
Tons suaves de rosa para programar com estilo e conforto visual! Design aprimorado para melhor UX/UI.
Tons suaves de rosa para programar com estilo e conforto visual! Design aprimorado para melhor UX/UI.
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, string.comment | #8A7F8A | italic |
| comment.todo, comment.fixme, comment.note, comment.warning | #D42D6E | bold |
| constant.numeric, constant.language.boolean, constant.other, constant.language, constant.other.null, constant.other.undefined | #F4A4B6 | — |
| constant.numeric.string | #FFB7C5 | bold |
| constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #FFB7C5 | bold |
| string, string.quoted, string.template, string.attribute-value.html, string.quoted.double.html | #E55A8C | — |
| string.quoted.multi, string.template | #E55A8C | italic |
| variable, variable.other, support.variable, meta.definition.variable.name, meta.property-name | #A8365E | — |
| variable.parameter, variable.language | #D87A95 | italic |
| variable.local, variable.other.readwrite | #E891A6 | — |
| keyword, storage, storage.type, keyword.control, keyword.operator | #B86CB9 | bold |
| entity.name.function, support.function, meta.function-call, support.function.builtin | #B86CB9 | italic |
| entity.name.type, support.type, support.class, support.class.builtin, support.type.primitive | #FF87AB | italic |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, support.class.component | #B86CB9 | bold |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx | #E55A8C | — |
| entity.other.attribute-name.boolean.html, entity.other.attribute-name.event.html | #E55A8C | italic |
| punctuation, meta.brace, meta.delimiter | #8A7F8A | — |
| invalid, invalid.illegal, markup.error | #D42D6E | underline |
| markup.warning | #E55A8C | italic |
| markup.info | #B86CB9 | italic |
| markup.heading | #B86CB9 | bold |
| markup.bold | #E55A8C | bold |
| markup.italic | #B86CB9 | italic |
| markup.underline.link, markup.underline.link.image | #E55A8C | underline |
| support.constant, support.type.property-name | #F4A4B6 | — |
| meta.preprocessor, meta.preprocessor.string | #B86CB9 | — |
| meta.decorator, annotation | #E55A8C | italic |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}