Purple Cake
Publisher: jkerThemes in package: 1
Purple dark theme, lovely and deliciously crafted
Purple dark theme, lovely and deliciously crafted
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 | #7F7F7F | italic |
| keyword, storage.type.js, storage.type.function.js, variable.other.flowtype.js, storage.type.extends.js, storage.type.function.js, storage.type.class.js | #858585 | — |
| variable.function.js, meta.class meta.group.braces.curly meta.function-call variable.function.js, entity.name.tag.jsx, variable.function.constructor.js | #ffe2a9 | — |
| entity.name.function.js, meta.class.js entity.name.class, meta.class meta.function-call variable.function.js, source.js keyword.control.loop.js, storage.type.function.arrow.js | #a5f1ce | — |
| keyword.control.flow.js, keyword.control.trycatch.js, source.js meta.group.braces.curly.js keyword.control.loop.js, keyword.control.switch.js | #f1a5ab | — |
| keyword.operator.assignment | #ffe2a9 | — |
| keyword.operator.logical.js | #ffe2a9 | — |
| keyword.operator.comparison.js, keyword.operator.relational.js | #f1a5ab | — |
| string.quoted, string.interpolated | #a9cfa4 | — |
| constant.language, constant.numeric, support.constant, constant.character, constant.other.color, constant.other.symbol, constant.other.key, keyword.other.unit | #dbbbeb | — |
| *url*, *link*, *uri* | — | underline |
| entity.name.filename.find-in-files | #99C794 | — |
| source.js entity.other.attribute-name.js | #eeeeee | italic |
| text.html.basic entity.other.attribute-name.html | — | italic |
| entity.name.tag.html | #cf7981 | — |
| entity.name.tag.js | #c3f0be | — |
| entity.other.attribute-name.id | #80aa7b | — |
| entity.other.attribute-name.class.css | #a9cfa4 | — |
| entity.name.tag.css | #cf7981 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #c0e7bb | — |
| entity.other.attribute-name.attribute.css | #eeeeee | — |
| constant.numeric.css, support.constant.property-value.css | #f3c7a4 | — |
| keyword.other.unit, meta.property-value.css, keyword.other.important.css | #e4ad80 | — |
| variable.other.less, variable.other.scss | #9ae0dd | — |
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}!`;
}