Hackpot
Publisher: wwmyersThemes in package: 10
Batman, Garden, & Purple Themes
Batman, Garden, & Purple Themes
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, markup.quote.markdown | #486484 | italic |
| markup.deleted, support.type.exception, token.error-token | #ff661a | — |
| variable.language | #ff704d | — |
| entity.name.function, entity.name.tag, meta.function-call, entity.name.type, meta.embedded.block.html, variable.other.global, string.other.link.description.markdown, variable.other.property, keyword.other.unit, markup.list, string.other.link.title | #33cc33 | — |
| storage.type | #00994d | — |
| support | #0585e1 | — |
| meta.function.url, markup.underline.link, meta.link.reference, variable.parameter.url | #7ebbe7 | — |
| constant.language, entity.name.section.markdown, storage.modifier | #cc99ff | — |
| constant.numeric, constant.character.numeric | #e56697 | — |
| string.quoted, punctuation.definition.string, markup.fenced_code.block.markdown, string.interpolated, string.template, markup.inline.raw.string | #1fada6 | — |
| constant.character.escape, constant.other.placeholder, constant.other.character-class, constant.character.entity, keyword.operator.new, keyword.operator.ternary, keyword.operator.quantifier, keyword.operator.negation, keyword.operator.unpacking, keyword.operator.arithmetic, keyword.operator.increment, keyword.operator.decrement, keyword.operator.channel, keyword.operator.redirect, keyword.operator.expansion, keyword.operator.spread, keyword.operator.rest, keyword.operator.address, keyword.operator.ellipsis, punctuation.vararg-ellipses, meta.separator.markdown, markup.inserted.math.display.markdown | #f1414a | — |
| keyword, storage.type.js, storage.type.function, entity.other, support.type.property-name, entity.name.tag.localname, entity.other.attribute-name.html, markup.raw.block.markdown | #a64dff | — |
| punctuation, keyword.operator, meta.brace, constant.character, markup.heading.setext, punctuation.definition.list, storage.type.function.arrow, constant.other.color | #ffdb4d | — |
| meta.embedded.block, meta.assertion, meta.group.assertion, meta.function-call.arguments, variable.other, variable.other.property, entity.other.attribute-name, string.unquoted.html, meta.object, constant.other, variable.other.constant | #bbd1dd | — |
| variable.parameter | #ffb84d | — |
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}!`;
}