Dark Pink
Publisher: FerThemes in package: 1
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 |
|---|---|---|
| — | #F8F8F8 | — |
| comment | #956585 | italic |
| constant | #ffb452 | |
| keyword | #ff419a | |
| entity | #ff59c8 | |
| storage | #ff52a8 | bold |
| string | #e8ffe5 | bold |
| support | #ff66e0 | bold |
| variable | #8f8 | italic |
| invalid | #ffffffff | — |
| text source | — | — |
| text.html.ruby source | — | — |
| entity.other.inherited-class | #aa5507ff | underline |
| string.quoted source | #9df39fff | |
| string constant | #ffe862ff | |
| string.regexp | #ffb454ff | — |
| string variable | #edef7dff | — |
| support.function | #ffb454ff | |
| support.constant | #eb939aff | |
| declaration.sgml.html declaration.doctype, declaration.sgml.html declaration.doctype entity, declaration.sgml.html declaration.doctype string, declaration.xml-processing, declaration.xml-processing entity, declaration.xml-processing string | #73817dff | |
| declaration.tag, meta.tag | #ff8250 | bold |
| declaration.tag.inline, declaration.tag.inline entity, source entity.name.tag, source entity.other.attribute-name, meta.tag.inline, meta.tag.inline entity, entity.other.bracket | #ff00aa | bold |
| meta.tag, entity.other | #fee | |
| declaration.tag attribute-name, meta.tag entity.other.attribute-name | #ebe71f | bold |
| meta.selector.css entity.name.tag | #9bf199ff | |
| meta.selector.css entity.other.attribute-name.id | #fec758ff | — |
| meta.selector.css entity.other.attribute-name.class | #ff8ae2 | |
| support.type.property-name.css | #ffccf0 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #ffe862ff | italic |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #ffe862ff | |
| meta.preprocessor.at-rule keyword.control.at-rule | #fd6209ff | — |
| meta.constructor.argument.css | #ec9799ff | |
| meta.diff, meta.diff.header | #f8f8f8ff | italic |
| markup.deleted | #ec9799ff | — |
| markup.changed | #f8f8f8ff | — |
| markup.inserted | #41a83eff | — |
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}!`;
}